Crate gxt

Crate gxt 

Source
Expand description

§GXT (Game Exchange Token)

Minimal, encrypted, signed and copy-pasteable tokens for manual data exchange between games.

For details check out spec.md.

Structs§

Envelope
Parsed, verified GXT record.

Enums§

GxtError
Errors that can occur while encoding, decoding, compressing, or verifying GXT tokens.
PayloadKind
What kind of payload was sent

Functions§

decrypt_message
Verify the signature of a message, decrypt its payload and return a parsed Envelope.
encrypt_message
Create an encrypted message for the owner of the ID card that was passed in.
make_id_card
Creates an ID card containing the necessary data for the encrypted communication and some opaque meta data.
make_key
Creates a private key for a peer.
verify_message
Verify the signature of a message and return a parsed Envelope.