[][src]Module lnpbp::commit_verify

Base commit-verify scheme interface with extension allowing to create embedded commitments (commit-embed-verify), required for detarministic bitcoin commitments (LNPBP1-3 standards).

Traits

CommitVerify

Trait for commit-verify scheme. A message for the commitment may be any structure that can be represented as a byte array (i.e. implements AsRef<[u8]>).

EmbedCommitVerify

Trait for embed-commit-verify scheme, where some data structure (named container) may commit to existing message (producing commitment data structure) in such way that the original message can't be restored from the commitment, however the fact of the commitment may be deterministically checked when the message is revealed against the original container.

TryCommitVerify

Trait for a failable version of commit-verify scheme. A message for the commitment may be any structure that can be represented as a byte array (i.e. implements AsRef<[u8]>).