Re-exports§
pub use merkle::MerkleBuoy;
pub use merkle::MerkleHash;
pub use merkle::MerkleLeaves;
pub use merkle::MerkleNode;
pub use merkle::NodeBranching;
Modules§
Structs§
- Reserved bytes.
- Protocol defining commits created by using externally created hash value optionally pre-tagged.
Enums§
- Error during commitment verification
- Error during commitment verification
- Error during commitment verification
Constants§
Traits§
- High-level API used in client-side validation for producing a single commitment to the data, which includes running all necessary procedures like concealment with
Conceal
, merklization, strict encoding, wrapped intoCommitEncode
, followed by the actual commitment to its output. - Trait for commit-verify scheme.
- Marker trait for specific commitment protocols.
- Trait that should perform conversion of a given client-side-validated data type into a concealed (private) form, for instance hiding some of the data behind hashed - or homomorphically-encrypted version.
- Trait for convolve-commit-verify scheme, where some data structure (named container) may commit to existing message using supplement and producing final commitment value. The commitment can’t be used to restore original message, however the fact of the commitment may be deterministically verified when the message and the supplement (now acting as a proof) proof are revealed.
- Proof type used by
ConvolveCommit
protocol. - Convenience wrapper trait covering functionality of cryptographic hash functions with fixed output size.
- Proofs produced by
EmbedCommitVerify::embed_commit
procedure. - Trait for embed-commit-verify scheme, where some data structure (named container) may commit to existing message (producing commitment data structure and a proof) in such way that the original message can’t be restored from the commitment, however the fact of the commitment may be deterministically verified when the message and the proof are revealed.
- Trait for a failable version of commit-verify scheme.
- Trait for equivalence verification. Implemented for all types implementing
Eq
. For non-Eq
types this trait provides way to implement custom equivalence verification used during commitment verification procedure.
Type Aliases§
- RIPEMD-160 hasher.
- SHA-256 hasher.
Derive Macros§
- Commit
Encode derive
DerivesCommitEncode
implementation for the type.