Module commit_verify::multi_commit[][src]

Expand description

Multi-message commitments: implementation of LNPBP-4 standard.

LNPBP-4 defines a commit-verify scheme for committing to a multiple messages under distinct protocols with ability to partially reveal set of the commitments and still be able to prove the commitment for each message without exposing the exact number of other messages and their respective protocol identifiers.

Structs

Lnpbp4Tag

Tag used for MultiCommitment hash type

MultiCommitBlock

Multi-message commitment data according to LNPBP-4 specification.

MultiCommitItem

Single item within a multi-message commitment, consisting of optional protocol information (if known) and the actual single message commitment

MultiCommitment

Final LNPBP-4 commitment value.

MultiSource

Structured source multi-message data for commitment creation

Enums

Error

Errors generated during multi-message commitment process by [MultiCommitBlock::try_commit]

Type Definitions

Message

Original message participating in multi-message commitment.

ProtocolId

Source data for creation of multi-message commitments according to LNPBP-4 procedure.