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.
- LOG_
COMMITMENT_ BITS - The logarithm (over 2) of the amount of bits a value within a commitment may use.
- MAX_
COMMITMENTS - The maximum amount of commitments provable for within a single range proof.
Statics§
- H
- Monero’s
H
generator.
Functions§
- H_pow_2
- Monero’s
H
generator, multiplied by 2**i for i in 1 ..= 64. - bulletproofs_
generators - Generate generators as needed for Bulletproofs(+), as Monero does.
- hash_
to_ point - Monero’s
hash_to_ec
function.