Crate mpc_relay_protocol

Source

Modules§

hex
Encoding and decoding hex strings.
http
A general purpose library of common HTTP types
log
A lightweight logging facade.
pem
This crate provides a parser and encoder for PEM-encoded binary data. PEM-encoded binary data is essentially a beginning and matching end tag that encloses base64-encoded binary data (see: https://en.wikipedia.org/wiki/Privacy-enhanced_Electronic_Mail).
snow
The snow crate is a straightforward, Hard To Fuck Up™ Noise Protocol implementation.
uuid
Generate and parse universally unique identifiers (UUIDs).

Structs§

Keypair
Key pair used by the noise protocol.
Parameters
Parameters used during key generation.
SealedEnvelope
Sealed envelope is an encrypted message.
Session
Session is a namespace for a group of participants to communicate for a series of rounds.
SessionManager
Manages a collection of sessions.
SessionRequest
Request to create a new session.
SessionState
Response from creating new session.

Enums§

Encoding
Encoding for message payloads.
Error
Errors generated by the relay protocol.
HandshakeMessage
Handshake messages.
OpaqueMessage
Opaque messaages are encrypted.
ProtocolState
Enumeration of protocol states.
RequestMessage
Request message sent to the server or another peer.
ResponseMessage
Response message sent by the server or a peer.
ServerMessage
Message sent between the server and a client.
TransparentMessage
Transparent messages are not encrypted.

Constants§

PATTERN
Noise protocol pattern.
PEM_PATTERN
Tag for PEM encoding of noise pattern.
PEM_PRIVATE
Tag for PEM encoding of private key.
PEM_PUBLIC
Tag for PEM encoding of public key.
TAGLEN
Tag length for the noise protocol.
VERSION
Version for binary encoding.

Functions§

decode
Decode from a binary buffer.
decode_keypair
Decode from a PEM-encoded string into a keypair.
encode
Encode to a binary buffer.
encode_keypair
Encode a keypair into a PEM-encoded string.
generate_keypair
Generate a keypair for the noise protocol using the standard pattern.

Type Aliases§

PartyNumber
Party number.
Result
Result type for the protocol library.
RoundNumber
Round number.
SessionId
Identifier for sessions.