Expand description
Conversions between Zebra and zcash_primitives transaction types.
Constantsยง
- GROTH_
PROOF_ ๐SIZE - The size of a Groth16 Sprout proof (v4 JoinSplits).
- JS_
EPHEMERAL_ ๐KEY_ OFFSET - The offset of
ephemeralKeywithin a serialized JoinSplit description:vpub_oldandvpub_new(8 bytes each),anchor, twonullifiers, twocommitments. - PHGR_
PROOF_ ๐SIZE - The size of a PHGR13 Sprout proof (v2 and v3 JoinSplits).
- SPROUT_
CIPHERTEXT_ SIZE - The size of one Sprout note ciphertext.
- ZC_
NUM_ ๐JS_ OUTPUTS - The number of note ciphertexts in a Sprout JoinSplit description.
Functionsยง
- block_
height_ to_ height - Returns an error if the height is out of the valid Zebra range.
- branch_
id_ ๐to_ network_ upgrade - Convert a librustzcash
BranchIdinto a ZebraNetworkUpgrade. - height_
to_ block_ height - Convert a Zebra
block::Heightinto a librustzcashBlockHeight. - input_
to_ txin - Convert a Zebra
transparent::Inputinto a librustzcashTxIn<Authorized>. - lock_
time_ to_ u32 - Convert a Zebra
LockTimeinto au32for librustzcash. - output_
to_ txout - Convert a Zebra
transparent::Outputinto a librustzcashTxOut. - sprout_
joinsplit_ key_ proof_ and_ ciphertexts - Returns the
ephemeralKey, proof, andencCiphertextsof a Sprout JoinSplit description. - transaction_
data_ ๐from_ parts - Builds
TransactionDatafrom its parts, routing v6 transactions throughTransactionData::from_parts_v6. - txin_
to_ input - Convert a librustzcash
TxIn<Authorized>into a Zebratransparent::Input. - txout_
to_ output - Convert a librustzcash
TxOutinto a Zebratransparent::Output. - u32_
to_ lock_ time - Convert a librustzcash
u32lock_time into a ZebraLockTime.
Type Aliasesยง
- Orchard
Bundle ๐ - An Orchard-shaped bundle of an authorized transaction, used by both the Orchard and Ironwood pools.
- Sapling
Bundle ๐ - The Sapling bundle of an authorized transaction.
- Transparent
Bundle ๐ - The transparent bundle of an authorized transaction.