[−][src]Trait wagyu_monero::network::MoneroNetwork
The interface for a Monero network.
Required methods
fn to_address_prefix(format: &MoneroFormat) -> u8
Returns the address prefix of the given network.
fn from_address_prefix(prefix: u8) -> Result<Self, AddressError>
Returns the network of the given address prefix.
Implementors
impl MoneroNetwork for Mainnet
[src]
fn to_address_prefix(format: &MoneroFormat) -> u8
[src]
Returns the address prefix of the given network. https://github.com/monero-project/monero/blob/3ad4ecd4ff52f011ee94e0e80754b965b82f072b/src/cryptonote_config.h#L153&L155
fn from_address_prefix(prefix: u8) -> Result<Self, AddressError>
[src]
Returns the network of the given address prefix. https://github.com/monero-project/monero/blob/3ad4ecd4ff52f011ee94e0e80754b965b82f072b/src/cryptonote_config.h#L153&L155
impl MoneroNetwork for Stagenet
[src]
fn to_address_prefix(format: &MoneroFormat) -> u8
[src]
Returns the address prefix of the given network. https://github.com/monero-project/monero/blob/3ad4ecd4ff52f011ee94e0e80754b965b82f072b/src/cryptonote_config.h#L182&L184
fn from_address_prefix(prefix: u8) -> Result<Self, AddressError>
[src]
Returns the network of the given address prefix. https://github.com/monero-project/monero/blob/3ad4ecd4ff52f011ee94e0e80754b965b82f072b/src/cryptonote_config.h#L182&L184
impl MoneroNetwork for Testnet
[src]
fn to_address_prefix(format: &MoneroFormat) -> u8
[src]
Returns the address prefix of the given network. https://github.com/monero-project/monero/blob/3ad4ecd4ff52f011ee94e0e80754b965b82f072b/src/cryptonote_config.h#L167&L169
fn from_address_prefix(prefix: u8) -> Result<Self, AddressError>
[src]
Returns the network of the given address prefix. https://github.com/monero-project/monero/blob/3ad4ecd4ff52f011ee94e0e80754b965b82f072b/src/cryptonote_config.h#L167&L169