Bulletproofs++ implementation on Rust
⚠️ Please note - this crypto library has not been audited, so use it at your own risk.
Abstract
Present Rust library contains the implementation of Bulletproofs++
over secp256k1 curve that includes: weight norm linear argument protocol,
arithmetic circuit protocol and reciprocal range proofs. Also, contains the u64 range proof protocol as a primary
use-case for reciprocal range proofs.
Implemented solution has 2G points advantage over existing BP and BP+ protocols on proving of one 64-bit value and this advantage will increase for more values per proof.
| Protocol | G | F |
|---|---|---|
| BP | 16 | 5 |
| BP+ | 15 | 3 |
| Our BP++ | 13 | 3 |
This implementation uses Merlin transcript for challenges generation as was recommended by Bulletproofs protocol authors.
All Proof data models has corresponding SerializeProof models where serde Serialize
and Deserialize was implemented.
Example of usage
Use tests to run the provided example:
use ;
use ProjectivePoint;
use range_proof;
use G_VEC_FULL_SZ;
use H_VEC_FULL_SZ;
use ;