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.

Macros§

json
Construct a serde_json::Value from a JSON literal.

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.
from_value
Interpret a serde_json::Value as an instance of type T.
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.
to_value
Convert a T into serde_json::Value which is an enum that can represent any valid JSON data.
verify_message
Verify the signature of a message and return a parsed Envelope.