pub enum Network {
Mainnet = 0,
Testnet = 1,
}
Expand description
Network type
Variants§
Implementations§
Source§impl Network
impl Network
Sourcepub fn genesis_block(&self) -> Block
pub fn genesis_block(&self) -> Block
Returns the genesis block
Sourcepub fn genesis_hash(&self) -> Hash256
pub fn genesis_hash(&self) -> Hash256
Returns the genesis block hash
Sourcepub fn cashaddr_prefix(&self) -> String
pub fn cashaddr_prefix(&self) -> String
Returns the ascii prefix for CashAddr addresses
Sourcepub fn legacyaddr_pubkeyhash_flag(&self) -> u8
pub fn legacyaddr_pubkeyhash_flag(&self) -> u8
Returns the version byte flag for P2PKH-type legacy addresses
Sourcepub fn legacyaddr_script_flag(&self) -> u8
pub fn legacyaddr_script_flag(&self) -> u8
Returns the version byte flag for P2SH-type legacy addresses
Trait Implementations§
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