xep_0384: document encode_public_key fn

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2018-11-19 21:45:50 +01:00
parent 41919a7a5e
commit 8117248bc7

View file

@ -36,6 +36,8 @@ except ImportError as e:
TRUE_VALUES = {True, 'true', '1'}
# TODO: Upstream bug has been fixed. https://github.com/Syndace/python-omemo/issues/7
# Use the API provided by the lib.
def encode_public_key(key: bytes) -> bytes:
return b'\x05' + key