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§
- Bandwidth
Proof Commitment - Bandwidth proof commitment for challenge-response protocol.
- Chunk
Challenge - Challenge for requesting proof of chunk possession.
- Chunk
Possession Proof - Proof of possession for chunk data.
- Commitment
Opening - Opening value for a commitment.
- KeyPossession
Proof - Proof-of-possession for a signing key (proves knowledge of secret key).
Enums§
- Commitment
Error - 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).