Module mpc

Source
Expand description

Multi-protocol commitments according to LNPBP-4 standard.

Structs§

Commitment
Final LNPBP-4 commitment value.
InvalidProof
the provided merkle proof protocol id {protocol_id} position {actual} doesn’t match the expected position {expected} within the tree of width {width}.
LeafNotKnown
commitment under protocol id {0} is absent from the known part of a given LNPBP-4 Merkle block.
MerkleBlock
Partially-concealed merkle tree data.
MerkleConcealed
MerkleProof
A proof of the merkle commitment.
MerkleTree
Complete information about LNPBP-4 merkle tree.
Message
Original message participating in multi-message commitment.
MultiSource
Structured source multi-message data for commitment creation
ProtocolId
Source data for creation of multi-message commitments according to LNPBP-4 procedure.

Enums§

Error
Errors generated during multi-message commitment process by MerkleTree::try_commit
Leaf
MergeError
Method

Constants§

MPC_MINIMAL_DEPTH

Traits§

Proof
Marker trait for variates of LNPBP-4 commitment proofs, which differ by the amount of concealed information.

Type Aliases§

MessageMap
Map from protocol ids to commitment messages.