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§

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

Functions§

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