Crate subcoin_primitives
source ·Expand description
Primitives for the client.
Re-exports§
pub use subcoin_runtime_primitives as runtime;
Structs§
- Represents a Bitcoin block locator, used to sync blockchain data between nodes.
- Represents an indexed Bitcoin block, identified by its block number and hash.
Enums§
- Error type of Subcoin header.
Constants§
- 6 blocks is the standard confirmation period in the Bitcoin community.
Traits§
- Trait for interfacing with the Bitcoin storage.
- Trait for converting between Substrate extrinsics and Bitcoin transactions.
- A trait for retrieving block locators.
- A trait to extend the Substrate Client.
- Deals with the storage key for UTXO in the state.
Functions§
- Returns the encoded Bitcoin genesis block.
- Converts a Substrate block to a Bitcoin block.
- Extracts the Bitcoin block hash from the given Substrate header.
- Extracts the Bitcoin block header from the given Substrate header.
- Returns the encoded Bitcoin genesis block.
- Constructs a Substrate header digest from a Bitcoin header.