Crate lnpbp_chain
source ·Expand description
LNPBP library defining chain parameters.
Chains are bitcoin-enabled or aware blockchains, which include:
- Bitcoin Mainnet
- Different bitcoin testnets and signets
- Bitcoin sidechains
- Independent bitcoin-aware chains able to work with client-side-validation
Structs
Universal asset identifier for on-chain and off-chain assets; for on-chain assets matches genesis hash of the chain, but displayed in normal, non-reverse order
Parameters for a given asset, which are shared between different types of
Layer 1, 2 and 3 assets.
Full set of parameters which uniquely define given blockchain,
corresponding P2P network and RPC interface of fully validating nodes
Indicates that
bitcoin::Network
does not has a correspondence for a
given P2pNetworkId
variantEnums
Layers on which a given asset can operate
Technology that is used for asset creation on top of a given bitcoin
blockchain
A set of recommended standard networks. Differs from bitcoin::Network in
ability to support non-standard and non-predefined networks
Enum identifying format for transaction & block structure in a given chain.
Right now only two structures are supported: Bitcoin format and
Elements format, extended with confidential transaction-specific structures.
P2P network magic number: prefix identifying network on which node operates.
This enum defines known magic network numbers, plus adds support to
arbitrary unknown with P2pNetworkId::Other variant.
This enum differs from bitcoin::Network in its ability to support
non-standard and non-predefined networks
Chain data parse errors
Constants
Genesis block hash for liquid v1 sidechain
Genesis block hash for bitcoin mainnet
Genesis block hash for bitcoin regtest network(s)
Genesis block hash for bitcoin signet (default network)
Genesis block hash for bitcoin testnet v3
Type Definitions
Magic number prefixing Pubkey or Prvkey data according to BIP32 spec
P2P network magic number: prefix identifying network on which node operates