Skip to main content

Module compat

Module compat 

Source
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 ephemeralKey within a serialized JoinSplit description: vpub_old and vpub_new (8 bytes each), anchor, two nullifiers, two commitments.
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 BranchId into a Zebra NetworkUpgrade.
height_to_block_height
Convert a Zebra block::Height into a librustzcash BlockHeight.
input_to_txin
Convert a Zebra transparent::Input into a librustzcash TxIn<Authorized>.
lock_time_to_u32
Convert a Zebra LockTime into a u32 for librustzcash.
output_to_txout
Convert a Zebra transparent::Output into a librustzcash TxOut.
sprout_joinsplit_key_proof_and_ciphertexts
Returns the ephemeralKey, proof, and encCiphertexts of a Sprout JoinSplit description.
transaction_data_from_parts ๐Ÿ”’
Builds TransactionData from its parts, routing v6 transactions through TransactionData::from_parts_v6.
txin_to_input
Convert a librustzcash TxIn<Authorized> into a Zebra transparent::Input.
txout_to_output
Convert a librustzcash TxOut into a Zebra transparent::Output.
u32_to_lock_time
Convert a librustzcash u32 lock_time into a Zebra LockTime.

Type Aliasesยง

OrchardBundle ๐Ÿ”’
An Orchard-shaped bundle of an authorized transaction, used by both the Orchard and Ironwood pools.
SaplingBundle ๐Ÿ”’
The Sapling bundle of an authorized transaction.
TransparentBundle ๐Ÿ”’
The transparent bundle of an authorized transaction.