Module monero::util::amount

source ·
Expand description

Amounts, denominations, and errors types and arithmetic.

This implementation is based on rust-bitcoin Amount and SignedAmount implementations.

Modules

serdeserde
This module adds serde serialization and deserialization support for Amounts. Since there is not a default way to serialize and deserialize Amounts, multiple ways are supported and it’s up to the user to decide which serialiation to use. The provided modules can be used as follows:

Structs

Represent an unsigned quantity of Monero, internally as piconero.
Represent an signed quantity of Monero, internally as signed monero.

Enums

A set of denominations in which amounts can be expressed.
An error during amount parsing.