Expand description
Bandwidth proof protocol implementation.
Enums§
- Validation
Error - Protocol validation errors.
Functions§
- calculate_
latency - Calculate expected latency from timestamps.
- create_
bandwidth_ proof - Create a bandwidth proof from a completed transfer.
- create_
chunk_ request - Create a new chunk request.
- generate_
challenge_ nonce - Generate a challenge nonce for a chunk request.
- is_
nonce_ unique - Verify nonce uniqueness (in production, this would check against a database).
- is_
valid_ cid - Check if a CID format is valid (basic validation).
- validate_
bandwidth_ proof - Validate a bandwidth proof.
- validate_
chunk_ request - Validate a chunk request.
- validate_
chunk_ response - Validate a chunk response.