Module commitment

Module commitment 

Source
Expand description

Cryptographic commitments for zero-knowledge proofs and challenge-response.

This module provides commitment schemes used in the bandwidth proof protocol:

  • Hash-based commitments (Pedersen-style)
  • Challenge-response protocols
  • Proof-of-possession for chunk data

Structs§

BandwidthProofCommitment
Bandwidth proof commitment for challenge-response protocol.
ChunkChallenge
Challenge for requesting proof of chunk possession.
ChunkPossessionProof
Proof of possession for chunk data.
CommitmentOpening
Opening value for a commitment.
KeyPossessionProof
Proof-of-possession for a signing key (proves knowledge of secret key).

Enums§

CommitmentError
Commitment error types.

Functions§

commit
Create a cryptographic commitment to a value.
generate_challenge
Generate a random challenge nonce.
verify_commitment
Verify a commitment opening.

Type Aliases§

Commitment
Commitment value (256 bits).