[][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 secp256k1 primitives.

stamp

This module contains the Stamp message and methods for verifying and constructing them.

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 open or open_in_place.

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 Message::payload_digest.

EncryptionScheme

Represents an encryption scheme.

OpenError

Error associated with open or open_in_place.

ParseError

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.