pub enum Network {
MainNetwork,
TestNetwork,
}
Expand description
The enumeration of known Zcash networks.
Variants§
Trait Implementations§
Source§impl Parameters for Network
impl Parameters for Network
Source§fn network_type(&self) -> NetworkType
fn network_type(&self) -> NetworkType
Returns the type of network configured by this set of consensus parameters.
Source§fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>
fn activation_height(&self, nu: NetworkUpgrade) -> Option<BlockHeight>
Returns the activation height for a particular network upgrade,
if an activation height has been set.
Source§fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool
fn is_nu_active(&self, nu: NetworkUpgrade, height: BlockHeight) -> bool
Determines whether the specified network upgrade is active as of the
provided block height on the network to which this Parameters value applies.
impl Copy for Network
impl Eq for Network
impl StructuralPartialEq for Network
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnwindSafe for Network
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<P> NetworkConstants for Pwhere
P: Parameters,
impl<P> NetworkConstants for Pwhere
P: Parameters,
Source§fn hrp_sapling_extended_spending_key(&self) -> &'static str
fn hrp_sapling_extended_spending_key(&self) -> &'static str
Returns the human-readable prefix for Bech32-encoded Sapling extended spending keys
for the network to which this NetworkConstants value applies. Read more
Source§fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str
fn hrp_sapling_extended_full_viewing_key(&self) -> &'static str
Returns the human-readable prefix for Bech32-encoded Sapling extended full
viewing keys for the network to which this NetworkConstants value applies. Read more
Source§fn hrp_sapling_payment_address(&self) -> &'static str
fn hrp_sapling_payment_address(&self) -> &'static str
Returns the Bech32-encoded human-readable prefix for Sapling payment addresses
for the network to which this NetworkConstants value applies. Read more
Source§fn b58_sprout_address_prefix(&self) -> [u8; 2]
fn b58_sprout_address_prefix(&self) -> [u8; 2]
Returns the human-readable prefix for Base58Check-encoded Sprout
payment addresses for the network to which this NetworkConstants value
applies. Read more
Source§fn b58_pubkey_address_prefix(&self) -> [u8; 2]
fn b58_pubkey_address_prefix(&self) -> [u8; 2]
Returns the human-readable prefix for Base58Check-encoded transparent
pay-to-public-key-hash payment addresses for the network to which this NetworkConstants value
applies.
Source§fn b58_script_address_prefix(&self) -> [u8; 2]
fn b58_script_address_prefix(&self) -> [u8; 2]
Returns the human-readable prefix for Base58Check-encoded transparent pay-to-script-hash
payment addresses for the network to which this NetworkConstants value applies.
Source§fn hrp_tex_address(&self) -> &'static str
fn hrp_tex_address(&self) -> &'static str
Returns the Bech32-encoded human-readable prefix for TEX addresses, for the
network to which this
NetworkConstants
value applies. Read moreSource§fn hrp_unified_address(&self) -> &'static str
fn hrp_unified_address(&self) -> &'static str
The HRP for a Bech32m-encoded mainnet Unified Address. Read more
Source§fn hrp_unified_fvk(&self) -> &'static str
fn hrp_unified_fvk(&self) -> &'static str
The HRP for a Bech32m-encoded mainnet Unified FVK. Read more
Source§fn hrp_unified_ivk(&self) -> &'static str
fn hrp_unified_ivk(&self) -> &'static str
The HRP for a Bech32m-encoded mainnet Unified IVK. Read more