[−][src]Crate cashweb_relay
cashweb-relay
is a library providing serialization/deserialization, encryption/decryption/verification of
structures in the Relay Protocol
.
Modules
secp | This module contains re-exported |
stamp | This module contains the |
Structs
InvalidHmac | Message authentication failed, the calculated HMAC did not match the one given. |
Message | The primary message used in communication over the relay protocol. |
MessagePage | A page of messages. Pulled from server via HTTP. |
MessageSet | Collection of messages. Pushed from client to server via HTTP. |
Opened | The result of |
ParsedMessage | Represents a Message post-parsing. |
Payload | Payload is the user-specified data section of the message that is encrypted by the shared secret. |
PayloadPage | A page of payloads. Pulled from server via HTTP. |
Profile | A profile attached to an address. |
Enums
DigestError | Error associated with getting the |
EncryptionScheme | Represents an encryption scheme. |
OpenError | Error associated with |
ParseError | Error associated with |
Functions
authenticate | Authenticate the |
create_merged_key | Create the merged key from the source public key and destination private key. |
create_shared_key | Create shared key. |
encrypt_payload | Encrypt a payload using a shared key. |
encrypt_payload_in_place | Encrypt a payload, in place, using a shared key. |