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§
- AssetId
- 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
- Asset
Params - Parameters for a given asset, which are shared between different types of Layer 1, 2 and 3 assets.
- Chain
Params - Full set of parameters which uniquely define given blockchain, corresponding P2P network and RPC interface of fully validating nodes
- Conversion
Impossible Error - Indicates that
bitcoin::Networkdoes not has a correspondence for a givenP2pNetworkIdvariant
Enums§
- Asset
Layer - Layers on which a given asset can operate
- Asset
System - Technology that is used for asset creation on top of a given bitcoin blockchain
- Chain
- A set of recommended standard networks. Differs from bitcoin::Network in ability to support non-standard and non-predefined networks
- Chain
Format - 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.
- P2pNetwork
Id - 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
- Parse
Error - Chain data parse errors
Constants§
- GENESIS_
HASH_ LIQUID V1 - Genesis block hash for liquid v1 sidechain
- GENESIS_
HASH_ MAINNET - Genesis block hash for bitcoin mainnet
- GENESIS_
HASH_ REGTEST - Genesis block hash for bitcoin regtest network(s)
- GENESIS_
HASH_ SIGNET - Genesis block hash for bitcoin signet (default network)
- GENESIS_
HASH_ TESTNET - Genesis block hash for bitcoin testnet v3
Type Aliases§
- Bip32
Magic Number - Magic number prefixing Pubkey or Prvkey data according to BIP32 spec
- P2pMagic
Number - P2P network magic number: prefix identifying network on which node operates