Module groestlcoin::network
source · Expand description
Groestlcoin network.
The term “network” is overloaded, here Network
refers to the specific
Groestlcoin network we are operating on e.g., signet, regtest. The terms
“network” and “chain” are often used interchangeably for this concept.
§Example: encoding a network’s magic bytes
use groestlcoin::Network;
use groestlcoin::consensus::encode::serialize;
let network = Network::Groestlcoin;
let bytes = serialize(&network.magic());
assert_eq!(&bytes[..], &[0xF9, 0xBE, 0xB4, 0xD4]);
Modules§
- as_core_arg
serde
Module for serialization/deserialization of network variants into/from Groestlcoin Core values
Structs§
- An error in parsing network string.
- Error in parsing network from chain hash.
Enums§
- The cryptocurrency network to act on.