Expand description
cashweb-relay
is a library providing serialization/deserialization, encryption/decryption/verification of
structures in the Relay Protocol
.
Modules§
- secp
- This module contains re-exported
secp256k1
primitives. - stamp
- This module contains the
Stamp
message and methods for verifying and constructing them.
Structs§
- Invalid
Hmac - Message authentication failed, the calculated HMAC did not match the one given.
- Message
- The primary message used in communication over the relay protocol.
- Message
Page - A page of messages. Pulled from server via HTTP.
- Message
Set - Collection of messages. Pushed from client to server via HTTP.
- Opened
- The result of
open
oropen_in_place
. - Parsed
Message - Represents a Message post-parsing.
- Payload
- Payload is the user-specified data section of the message that is encrypted by the shared secret.
- Payload
Page - A page of payloads. Pulled from server via HTTP.
- Profile
- A profile attached to an address.
Enums§
- Digest
Error - Error associated with getting the
Message::payload_digest
. - Encryption
Scheme - Represents an encryption scheme.
- Open
Error - Error associated with
open
oropen_in_place
. - Parse
Error - Error associated with
Message
parsing.
Functions§
- authenticate
- Authenticate the
Payload
and return the merged key. - 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.