issues
search
Zapix
/
mtpylon
Library to build backend with MTProto's protocol
MIT License
10
stars
0
forks
source link
Implement AuthKeyManager and it's Protocol
#48
Closed
Zapix
closed
3 years ago
Zapix
commented
3 years ago
[x] Create AuthKey class.
[x] Init with
auth_key
auth key is large integer number computed through create authorization process(
https://core.telegram.org/mtproto/auth_key
)
[x] compute
auth_key_hash
as
sha1(auth_key)
[x] compute
auth_key_aux_hash
as 64 high-order bits of
auth_key_hash
[x] compute
auth_key_id
as 64 low-order bits of
auth_key_hash
[x] Create protocol for AuthKeyManager.
[ ] Create in memory AuthKeyManager.
auth_key
auth key is large integer number computed through create authorization process(https://core.telegram.org/mtproto/auth_key)auth_key_hash
assha1(auth_key)
auth_key_aux_hash
as 64 high-order bits ofauth_key_hash
auth_key_id
as 64 low-order bits ofauth_key_hash