Package: ski
The ski package is the protobuf designed for common e2ee instant messenger applications.
e2ees/AcceptMsg.proto
AcceptMsg
Msg form invitee for completing a key agreement.
Field | Type | Label | Description |
---|---|---|---|
from | E2eeAddress | The sender's address. | |
to | E2eeAddress | The receiver's address. | |
e2ees_pack_id | uint32 | The E2EE Security pack ID. | |
encaps_ciphertext | bytes | The ciphertext encapsulated by the inviter's identity public key, empty in ECC. | |
ratchet_key | bytes | The invitee's ratchet key. |
e2ees/AcceptRequest.proto
AcceptRequest
Request for sending an accept msg.
Field | Type | Label | Description |
---|---|---|---|
msg | AcceptMsg | The included msg for this request. |
e2ees/AcceptResponse.proto
AcceptResponse
Response for sending Accept msg.
Field | Type | Label | Description |
---|---|---|---|
code | ResponseCode | The response code given by the server. | |
msg | string | The message given by the server. |
e2ees/Account.proto
Account
Account for keeping keys and registeration information.
Field | Type | Label | Description |
---|---|---|---|
version | string | The version used for this account. | |
e2ees_pack_id | uint32 | The e2ee pack ID used for this account. | |
address | E2eeAddress | The address with device ID for this account. | |
server_cert | Certificate | The certificate of the server that create this account. | |
identity_key | IdentityKey | The identity key pair. | |
signed_pre_key | SignedPreKey | The signed pre-key pair. | |
one_time_pre_key_list | OneTimePreKey | repeated | The one-time pre-key pairs. |
next_one_time_pre_key_id | uint32 | Next one-time pre-key pair ID. | |
saved | bool | The account is saved or not. | |
password | string | The password for logining to server. | |
auth | string | The jwt for authorizing request to server. | |
expires_in | int64 | The expiration time of auth. |
e2ees/AcquireSyncMsg.proto
AcquireSyncMsg
Msg for acquiring un-processed msgs form server.
Field | Type | Label | Description |
---|---|---|---|
last_proto_msg_tag | ProtoMsgTag | The last handled tag for acquiring un-handled msg from server. |