Expand description
Macros§
- json
- Construct a
serde_json::Valuefrom a JSON literal.
Structs§
- Envelope
- Parsed, verified GXT record.
Enums§
- GxtError
- Errors that can occur while encoding, decoding, compressing, or verifying GXT tokens.
- Payload
Kind - 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::Valueas an instance of typeT. - 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
Tintoserde_json::Valuewhich is an enum that can represent any valid JSON data. - verify_
message - Verify the signature of a message and return a parsed
Envelope.