pub fn magic(&self) -> [u8; 4] {
        match self {
            Network::Mainnet    => [0xe3, 0xe1, 0xf3, 0xe8],
            Network::Testnet    => [0xf4, 0xe5, 0xf3, 0xf4],
            Network::Regtest    => [0xda, 0xb5, 0xbf, 0xfa],
            Network::Ethereum   => [0xc2, 0x80, 0x80, 0x00],
            Network::BsvMainnet => [0xe3, 0xe1, 0xf3, 0xe8], // guess. check it
            Network::BsvRegtest => [0xda, 0xb5, 0xbf, 0xfa],
            // Network::BtcRegtest => [0xfa, 0xbf, 0xb5, 0xda], // for some reason only reverted order works
        }
    }
/// Returns the magic bytes for the message headers
Returns the magic bytes for the message headers
Returns the magic bytes for the message headers
pub fn magic(&self) -> [u8; 4] {
        match self {
            Network::Mainnet    => [0xe3, 0xe1, 0xf3, 0xe8],
            Network::Testnet    => [0xf4, 0xe5, 0xf3, 0xf4],
            Network::Regtest    => [0xda, 0xb5, 0xbf, 0xfa],
            Network::Ethereum   => [0xc2, 0x80, 0x80, 0x00],
            Network::BsvMainnet => [0xe3, 0xe1, 0xf3, 0xe8], // guess. check it
            Network::BsvRegtest => [0xda, 0xb5, 0xbf, 0xfa],
            // Network::BtcRegtest => [0xfa, 0xbf, 0xb5, 0xda], // for some reason only reverted order works
        }
    }
pub fn magic ( & self ) -> [ u8 ; 4 ] { match self { Network :: Mainnet => [ 0xe3 , 0xe1 , 0xf3 , 0xe8 ] , Network :: Testnet => [ 0xf4 , 0xe5 , 0xf3 , 0xf4 ] , Network :: Regtest => [ 0xda , 0xb5 , 0xbf , 0xfa ] , Network :: Ethereum => [ 0xc2 , 0x80 , 0x80 , 0x00 ] , Network :: BsvMainnet => [ 0xe3 , 0xe1 , 0xf3 , 0xe8 ] , // guess. check it Network :: BsvRegtest => [ 0xda , 0xb5 , 0xbf , 0xfa ] , // Network::BtcRegtest => [0xfa, 0xbf, 0xb5, 0xda], // for some reason only reverted order works } }
Returns the magic bytes for the message headers
Returns the magic bytes for the message headers
&self
&self