Expand description
Primitives for the client.
Re-exports§
pub use subcoin_runtime_primitives as runtime;
Structs§
- Block
Locator - Represents a Bitcoin block locator, used to sync blockchain data between nodes.
- Indexed
Block - Represents an indexed Bitcoin block, identified by its block number and hash.
- NoTransaction
Index - Dummy implementor of
TransactionIndex
. - TxPosition
- Represents the index of a transaction.
Enums§
- Header
Error - Error type of Subcoin header.
Constants§
- CONFIRMATION_
DEPTH - 6 blocks is the standard confirmation period in the Bitcoin community.
Traits§
- Backend
Ext - Trait for interfacing with the Bitcoin storage.
- Bitcoin
Transaction Adapter - Trait for converting between Substrate extrinsics and Bitcoin transactions.
- Block
Locator Provider - A trait for retrieving block locators.
- Client
Ext - A trait to extend the Substrate Client.
- Coin
Storage Key - Deals with the storage key for UTXO in the state.
- Transaction
Index - Interface for retriving the position of given transaction ID.
Functions§
- bitcoin_
genesis_ tx - Returns the encoded Bitcoin genesis block.
- convert_
to_ bitcoin_ block - Converts a Substrate block to a Bitcoin block.
- extract_
bitcoin_ block_ hash - Extracts the Bitcoin block hash from the given Substrate header.
- extract_
bitcoin_ block_ header - Extracts the Bitcoin block header from the given Substrate header.
- raw_
genesis_ tx - Returns the encoded Bitcoin genesis block.
- substrate_
header_ digest - Constructs a Substrate header digest from a Bitcoin header.