Expand description
§Monero Generators
Generators used by Monero in both its Pedersen commitments and Bulletproofs(+).
An implementation of Monero’s hash_to_ec is included, as needed to generate
the generators.
This library is usable under no-std when the std feature (on by default) is
disabled.
§Cargo Features
std(on by default): Enablesstd(and with it, more efficient internal implementations).
Structs§
- Generators
- Container struct for Bulletproofs(+) generators.
Constants§
- COMMITMENT_
BITS - The amount of bits a value within a commitment may use.
- MAX_
BULLETPROOF_ COMMITMENTS - The maximum amount of commitments provable for within a single Bulletproof(+).
Statics§
- H
- Monero’s
Hgenerator.
Functions§
- H_pow_2
- Monero’s
Hgenerator, multiplied by 2**i for i in 1 ..= 64. - biased_
hash_ to_ point - Monero’s
hash_to_ecfunction. - bulletproofs_
generators - Generate generators as needed for Bulletproofs(+), as Monero does.