Expand description
§Rust Bitcoin - primitive types.
Primitive data types that are used throughout the rust-bitcoin
ecosystem.
This crate can be used in a no-std environment but a lot of the functionality requires an
allocator i.e., requires the alloc
feature to be enabled.
Modules§
- absolute
alloc
- Provides type
LockTime
that implements the logic around nLockTime/OP_CHECKLOCKTIMEVERIFY. - amount
- Bitcoin amounts.
- block
- Bitcoin blocks.
- fee_
rate alloc
- Implements
FeeRate
and assoctiated features. - locktime
alloc
- Provides absolute and relative locktimes.
- merkle_
tree - Bitcoin Merkle tree functions.
- opcodes
- Bitcoin script opcodes.
- pow
- Proof-of-work related integer types.
- relative
alloc
- Provides type
LockTime
that implements the logic around nSequence/OP_CHECKSEQUENCEVERIFY. - script
alloc
- Bitcoin scripts.
- sequence
- Bitcoin transaction input sequence number.
- taproot
- Bitcoin Taproot.
- transaction
- Bitcoin transactions.
- weight
alloc
- Implements
Weight
and associated features. - witness
alloc
- A witness.
Structs§
- Amount
- An amount.
- Block
alloc
- Bitcoin block.
- Block
Hash - A bitcoin block hash.
- Block
Header - Bitcoin block header.
- Block
Height alloc
- The block height, zero denotes the genesis block.
- Block
Interval alloc
- The block interval.
- Compact
Target - Encoding of 256-bit target as 32-bit float.
- FeeRate
alloc
- Represents fee rate.
- Sequence
- Bitcoin transaction input sequence number.
- Signed
Amount - A signed amount.
- TapBranch
Tag - The tag used for [
$hash_name
]. - TapLeaf
Hash - Taproot-tagged hash with tag "TapLeaf".
- TapLeaf
Tag - The tag used for [
$hash_name
]. - TapNode
Hash - Tagged hash used in Taproot trees.
- TapTweak
Hash - Taproot-tagged hash with tag "TapTweak".
- TapTweak
Tag - The tag used for [
$hash_name
]. - Transaction
alloc
- Bitcoin transaction.
- TxIn
alloc
- Bitcoin transaction input.
- TxMerkle
Node - A hash of the Merkle tree branch or root for transactions.
- TxOut
alloc
- Bitcoin transaction output.
- Txid
- A bitcoin transaction hash/transaction ID.
- Weight
alloc
- Represents block weight - the weight of a transaction or block.
- Witness
alloc
- The Witness is the data used to unlock bitcoin since the segwit upgrade.
- Witness
Commitment - A hash corresponding to the witness structure commitment in the coinbase transaction.
- Witness
Merkle Node - A hash corresponding to the Merkle tree root for witness data.
- Wtxid
- A bitcoin witness transaction ID.
Enums§
- Block
Checked alloc
- Marker that the block’s merkle root has been successfully validated.
- Block
Unchecked alloc
- Marker that the block’s merkle root has not been validated.
Traits§
- Block
Validation alloc
- Marker for whether or not a block has been validated.