[−][src]Trait wagyu_zcash::network::ZcashNetwork
The interface for a Zcash network.
Associated Constants
const HD_PURPOSE: ChildIndex
const HD_COIN_TYPE: ChildIndex
Required methods
fn to_address_prefix(format: &ZcashFormat) -> Vec<u8>
Returns the address prefix of the given network.
fn from_address_prefix(prefix: &Vec<u8>) -> Result<Self, AddressError>
Returns the network of the given address prefix.
fn to_wif_prefix() -> u8
Returns the WIF prefix of the given network.
fn from_wif_prefix(prefix: u8) -> Result<Self, PrivateKeyError>
Returns the network of the given WIF prefix.
fn to_sprout_spending_key_prefix() -> [u8; 2]
Returns the network prefix for a Sprout spending key.
fn to_sprout_viewing_key_prefix() -> [u8; 3]
Returns the network prefix for a Sprout viewing key.
fn to_sapling_spending_key_prefix() -> String
Returns the Sapling spending key prefix of the given network.
fn to_sapling_viewing_key_prefix() -> String
Returns the Sapling viewing key prefix of the given network.
fn to_extended_private_key_prefix() -> String
Returns the extended private key prefix of the given network.
fn from_extended_private_key_prefix(prefix: &str) -> Result<Self, NetworkError>
Returns the network of the given extended private key prefix.
fn to_extended_public_key_prefix() -> String
Returns the extended public key prefix of the given network.
fn from_extended_public_key_prefix(prefix: &str) -> Result<Self, NetworkError>
Returns the network of the given extended public key prefix.
Implementors
impl ZcashNetwork for Mainnet
[src]
const HD_COIN_TYPE: ChildIndex
[src]
fn to_address_prefix(format: &ZcashFormat) -> Vec<u8>
[src]
Returns the address prefix of the given network.
fn from_address_prefix(prefix: &Vec<u8>) -> Result<Self, AddressError>
[src]
Returns the network of the given address prefix.
fn to_wif_prefix() -> u8
[src]
Returns the WIF prefix of the given network.
fn from_wif_prefix(prefix: u8) -> Result<Self, PrivateKeyError>
[src]
Returns the network of the given WIF prefix.
fn to_sprout_spending_key_prefix() -> [u8; 2]
[src]
Returns the prefix for a Sprout spending key.
fn to_sprout_viewing_key_prefix() -> [u8; 3]
[src]
Returns the prefix for a Sprout viewing key.
fn to_sapling_spending_key_prefix() -> String
[src]
Returns the Sapling spending key prefix of the given network.
fn to_sapling_viewing_key_prefix() -> String
[src]
Returns the Sapling viewing key prefix of the given network.
fn to_extended_private_key_prefix() -> String
[src]
Returns the extended private key prefix of the given network. https://github.com/zcash/zips/blob/master/zip-0032.rst#sapling-extended-spending-keys
fn from_extended_private_key_prefix(prefix: &str) -> Result<Self, NetworkError>
[src]
Returns the network of the given extended private key prefix. https://github.com/zcash/zips/blob/master/zip-0032.rst#sapling-extended-spending-keys
fn to_extended_public_key_prefix() -> String
[src]
Returns the extended public key prefix of the given network. https://github.com/zcash/zips/blob/master/zip-0032.rst#sapling-extended-full-viewing-keys
fn from_extended_public_key_prefix(prefix: &str) -> Result<Self, NetworkError>
[src]
Returns the network of the given extended public key prefix. https://github.com/zcash/zips/blob/master/zip-0032.rst#sapling-extended-full-viewing-keys
impl ZcashNetwork for Testnet
[src]
const HD_COIN_TYPE: ChildIndex
[src]
fn to_address_prefix(format: &ZcashFormat) -> Vec<u8>
[src]
Returns the address prefix of the given network.
fn from_address_prefix(prefix: &Vec<u8>) -> Result<Self, AddressError>
[src]
Returns the network of the given address prefix.
fn to_wif_prefix() -> u8
[src]
Returns the WIF prefix of the given network.
fn from_wif_prefix(prefix: u8) -> Result<Self, PrivateKeyError>
[src]
Returns the network of the given WIF prefix.
fn to_sprout_spending_key_prefix() -> [u8; 2]
[src]
Returns the prefix for a Sprout spending key.
fn to_sprout_viewing_key_prefix() -> [u8; 3]
[src]
Returns the prefix for a Sprout viewing key.
fn to_sapling_spending_key_prefix() -> String
[src]
Returns the Sapling spending key prefix of the given network.
fn to_sapling_viewing_key_prefix() -> String
[src]
Returns the Sapling viewing key prefix of the given network.
fn to_extended_private_key_prefix() -> String
[src]
Returns the extended private key prefix of the given network. https://github.com/zcash/zips/blob/master/zip-0032.rst#sapling-extended-spending-keys
fn from_extended_private_key_prefix(prefix: &str) -> Result<Self, NetworkError>
[src]
Returns the network of the given extended private key prefix. https://github.com/zcash/zips/blob/master/zip-0032.rst#sapling-extended-spending-keys
fn to_extended_public_key_prefix() -> String
[src]
Returns the extended public key prefix of the given network. https://github.com/zcash/zips/blob/master/zip-0032.rst#sapling-extended-full-viewing-keys
fn from_extended_public_key_prefix(prefix: &str) -> Result<Self, NetworkError>
[src]
Returns the network of the given extended public key prefix. https://github.com/zcash/zips/blob/master/zip-0032.rst#sapling-extended-full-viewing-keys