[][src]Struct wagyu_zcash::network::mainnet::Mainnet

pub struct Mainnet;

Trait Implementations

impl Clone for Mainnet[src]

impl Copy for Mainnet[src]

impl Debug for Mainnet[src]

impl Display for Mainnet[src]

impl Eq for Mainnet[src]

impl FromStr for Mainnet[src]

type Err = NetworkError

The associated error which can be returned from parsing.

impl Hash for Mainnet[src]

impl Network for Mainnet[src]

impl Ord for Mainnet[src]

impl PartialEq<Mainnet> for Mainnet[src]

impl PartialOrd<Mainnet> for Mainnet[src]

impl Serialize for Mainnet[src]

impl StructuralEq for Mainnet[src]

impl StructuralPartialEq for Mainnet[src]

impl ZcashNetwork for Mainnet[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

Auto Trait Implementations

impl RefUnwindSafe for Mainnet

impl Send for Mainnet

impl Sync for Mainnet

impl Unpin for Mainnet

impl UnwindSafe for Mainnet

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,