Module transparent

Source
Expand description

Transparent-related (Bitcoin-inherited) functionality.

Modules§

address 🔒
Transparent Address types.
arbitrary 🔒
keys 🔒
Transparent key trait impls, around secp256k1::PublicKey
opcodes 🔒
Zebra script opcodes.
script 🔒
Bitcoin script for Zebra
serialize 🔒
Serializes and deserializes transparent data.
utxo 🔒
Unspent transparent output data structures and functions.

Structs§

CoinbaseData
Arbitrary data inserted by miners into a coinbase transaction.
OrderedUtxo
A Utxo, and the index of its transaction within its block.
OutPoint
OutPoint
Output
A transparent output from a transaction.
Script
An encoding of a Bitcoin script.
Utxo
An unspent transparent::Output, with accompanying metadata.

Enums§

Address
Transparent Zcash Addresses
CoinbaseSpendRestriction
A restriction that must be checked before spending a transparent output of a coinbase transaction.
Input
A transparent input to a transaction.

Constants§

EXTRA_ZEBRA_COINBASE_DATA
Extra coinbase data that identifies some coinbase transactions generated by Zebra. https://emojipedia.org/zebra/
GENESIS_COINBASE_DATA
The coinbase data for a genesis block.
MAX_COINBASE_DATA_LEN
The maximum length of the coinbase data.
MAX_COINBASE_HEIGHT_DATA_LEN
The maximum length of the encoded coinbase height.
MIN_TRANSPARENT_COINBASE_MATURITY
The maturity threshold for transparent coinbase outputs.

Functions§

new_ordered_outputs
Compute an index of newly created OrderedUtxos, given a block and a list of precomputed transaction hashes.
new_ordered_outputs_with_height
Compute an index of newly created OrderedUtxos, given a block and a list of precomputed transaction hashes.
new_outputs
Compute an index of newly created Utxos, given a block and a list of precomputed transaction hashes.
new_outputs_with_height
Compute an index of newly created Utxos, given a block and a list of precomputed transaction hashes.
new_transaction_ordered_outputs
Compute an index of newly created OrderedUtxos, given a transaction, its precomputed transaction hash, the transaction’s index in its block, and the block’s height.
outputs_from_utxos
Compute an index of transparent::Outputs, given an index of Utxos.
utxos_from_ordered_utxos
Compute an index of Utxos, given an index of OrderedUtxos.