Trait bitcoins::enc::encoder::NetworkParams [−][src]
pub trait NetworkParams {
const HRP: &'static str;
const PKH_VERSION: u8;
const SH_VERSION: u8;
}
Expand description
NetworkParams holds the encoding paramteres for a bitcoin-like network. Currently this is composed of the address version bytes for Legacy PKH and SH addresses, and the bech32 human-readable prefix for witness addresses.
Associated Constants
const PKH_VERSION: u8
const PKH_VERSION: u8
The Legacy PKH base58check version byte. 0x00 for mainnet.
const SH_VERSION: u8
const SH_VERSION: u8
The Legacy SH base58check version byte. 0x05 for mainnet.