Crate monero_primitives

Source
Expand description

§Monero Primitives

Primitive structures and functions for the Monero protocol.

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§

Commitment
Transparent structure representing a Pedersen commitment’s contents.
Decoys
Decoy data, as used for producing Monero’s ring signatures.
UnreducedScalar
An unreduced scalar.

Functions§

G_PRECOMPstd
A cached (if std) pre-computation of the Ed25519 generator, G.
INV_EIGHTstd
The inverse of 8 over l, the prime factor of the order of Ed25519.
keccak256
The Keccak-256 hash function.
keccak256_to_scalar
Hash the provided data to a scalar via keccak256(data) % l.