minor update
This commit is contained in:
parent
cc6e2c6116
commit
cc5f2b888e
@ -17,6 +17,8 @@ Just put the toxygen/toxygen directory on your PYTHONPATH
|
|||||||
You also need to link your libtoxcore.so and libtoxav.so
|
You also need to link your libtoxcore.so and libtoxav.so
|
||||||
and libtoxencryptsave.so into toxygen/toxygen/libs/
|
and libtoxencryptsave.so into toxygen/toxygen/libs/
|
||||||
Link all 3 from libtoxcore.so files if you have only libtoxcore.so
|
Link all 3 from libtoxcore.so files if you have only libtoxcore.so
|
||||||
|
There is an updated and bugfixed version in:
|
||||||
|
<https://git.plastiras.org/emdee/toxygen_wrapper>
|
||||||
|
|
||||||
If you want to read the GROUPS section, you need Python msgpack:
|
If you want to read the GROUPS section, you need Python msgpack:
|
||||||
<https://pypi.org/project/msgpack/>
|
<https://pypi.org/project/msgpack/>
|
||||||
|
@ -236,7 +236,7 @@ The integers in this structure are stored in Big Endian format.
|
|||||||
|
|
||||||
assert len(mod_list) == 2, mod_list
|
assert len(mod_list) == 2, mod_list
|
||||||
num_moderators = mod_list[0]
|
num_moderators = mod_list[0]
|
||||||
LOG.info(f"{dSTATE_TYPE[data_type]} #{i} num moderators={mod_list[0]}")
|
LOG.debug(f"{dSTATE_TYPE[data_type]} #{i} num moderators={mod_list[0]}")
|
||||||
#define CRYPTO_SIGN_PUBLIC_KEY_SIZE 32
|
#define CRYPTO_SIGN_PUBLIC_KEY_SIZE 32
|
||||||
mods = mod_list[1]
|
mods = mod_list[1]
|
||||||
assert len(mods) % 32 == 0, len(mods)
|
assert len(mods) % 32 == 0, len(mods)
|
||||||
@ -246,7 +246,7 @@ The integers in this structure are stored in Big Endian format.
|
|||||||
LOG.info(f"{dSTATE_TYPE[data_type]} group#{i} mod#{j} sig_pk={bin_to_hex(mod)}")
|
LOG.info(f"{dSTATE_TYPE[data_type]} group#{i} mod#{j} sig_pk={bin_to_hex(mod)}")
|
||||||
|
|
||||||
assert len(keys) == 4, keys
|
assert len(keys) == 4, keys
|
||||||
LOG.info(f"{dSTATE_TYPE[data_type]} #{i} {repr(list(map(len, keys)))}")
|
LOG.debug(f"{dSTATE_TYPE[data_type]} #{i} {repr(list(map(len, keys)))}")
|
||||||
chat_public_key, chat_secret_key, self_public_key, self_secret_key = keys
|
chat_public_key, chat_secret_key, self_public_key, self_secret_key = keys
|
||||||
LOG.info(f"{dSTATE_TYPE[data_type]} #{i} chat_public_key={bin_to_hex(chat_public_key)}")
|
LOG.info(f"{dSTATE_TYPE[data_type]} #{i} chat_public_key={bin_to_hex(chat_public_key)}")
|
||||||
if int(bin_to_hex(chat_secret_key), 16) != 0:
|
if int(bin_to_hex(chat_secret_key), 16) != 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user