Expand description
Multi-protocol commitments according to LNPBP-4 standard.
Structs§
- Commitment
- Final LNPBP-4 commitment value.
- Invalid
Proof - Error constructing MPC Merkle tree due to invalid
MerkleProofdata. - Leaf
NotKnown - Error indicating that a given
ProtocolIddoes not participate in a specific MPC Merkle tree. - Merkle
Block - Partially-concealed merkle tree data.
- Merkle
Concealed - A fully concealed MPC Merkle tree, consisting just of the Merkle root and information about its original depth and used cofactor.
- Merkle
Proof - A proof of the merkle commitment.
- Merkle
Tree - Complete information about LNPBP-4 merkle tree.
- Message
- Original message participating in multi-message commitment.
- Multi
Source - Structured source multi-message data for commitment creation
- Protocol
Id - 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
- A leaf of the MPC Merkle tree.
- Merge
Error - Errors happening during the
MerkleBlock::merge_reveal_pathprocedure. - Method
- A specific cryptographic digest algorithm used in constructing MPC Merkle trees.
Constants§
- MPC_
MINIMAL_ DEPTH - The constant defining the minimum depth of the MPC Merkle tree.
Traits§
- Proof
- Marker trait for variates of LNPBP-4 commitment proofs, which differ by the amount of concealed information.
Type Aliases§
- Message
Map - Map from protocol ids to commitment messages.