Crate monero_generators

Source
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): Enables std (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.