Expand description
Essential Bitcoin types for consensus validation
Structsยง
- Bip54
Boundary Timestamps - BIP54 timewarp: timestamps of boundary blocks for period-boundary checks.
- Block
- Block: โฌ = โ ร ๐ฏ๐ณ*
- Block
Context - Block validation context
- Block
Hash - Block hash: newtype wrapper for type safety
- Block
Header - Block Header: โ = โค ร โ ร โ ร โ ร โ ร โ
- Block
Height - Block height: newtype wrapper for type safety
- OutPoint
- OutPoint: ๐ช = โ ร โ
- Script
Context - Script execution context
- Shared
Byte String - Shareable script_pubkey for UTXO: small scripts use inline storage; longer use
Arc<[u8]>. Clone is cheap (inline copies up to 64 bytes, shared isArc::clone). Serde matchesByteString. - Time
Context - Time context for consensus validation
- Transaction
- Transaction: ๐ฏ๐ณ = โ ร โ* ร ๐ฏ* ร โ
- Transaction
Input - Transaction Input: โ = ๐ช ร ๐ ร โ
- Transaction
Output - Transaction Output: ๐ฏ = โค ร ๐
- UTXO
- UTXO: ๐ฐ = โค ร ๐ ร โ
Enumsยง
- ForkId
- Stable identifier for each consensus-affecting fork (BIP or soft-fork bundle).
- Network
- Network type for consensus validation
- Validation
Result - Validation result
Functionsยง
- utxo_
set_ insert - Insert owned UTXO into UtxoSet (wraps in Arc). Convenience for tests and one-off inserts.