[−][src]Module lnpbp::chain
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 |
AssetParams | Parameters for a given asset, which are shared between different types of Layer 1, 2 and 3 assets. |
ChainParams | Full set of parameters which uniquely define given blockchain, corresponding P2P network and RPC interface of fully validating nodes |
ConversionImpossibleError | Indicates that |
Enums
AssetLayer | Layers on which a given asset can operate |
AssetSystem | |
Chain | A set of recommended standard networks. Differs from bitcoin::Network in ability to support non-standard and non-predefined networks |
ChainFormat | 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. |
P2pNetworkId | 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 |
ParseError | Chain data parse errors |
Constants
GENESIS_HASH_LIQUIDV1 | 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 |
P2P_MAGIC_MAINNET | Magic number used in P2P networking protocol by bitcoin mainnet |
P2P_MAGIC_REGTEST | Magic number used in P2P networking protocol by bitcoin regtests |
P2P_MAGIC_SIGNET | Magic number used in P2P networking protocol by bitcoin signet |
P2P_MAGIC_TESTNET | Magic number used in P2P networking protocol by bitcoin testnet v3 |
Type Definitions
Bip32MagicNumber | Magic number prefixing Pubkey or Prvkey data according to BIP32 spec |
P2pMagicNumber | P2P network magic number: prefix identifying network on which node operates |