Structs§
- Orchard
Bundle Params - Common Orchard bundle parameters shared across all shielded transition types.
- Serialized
Action - A serialized Orchard action extracted from a bundle.
Constants§
- SHIELDED_
STORAGE_ BYTES_ PER_ ACTION - Permanent storage bytes per shielded action: 312 bytes total.
- SHIELDED_
UNSHIELD_ ADDRESS_ STORAGE_ BYTES - Calibrated effective storage-byte cost of the single
AddBalanceToAddresswrite anUnshieldperforms, crediting the net (unshielding_amount − fee) to the output platform address. - SHIELDED_
WITHDRAWAL_ DOCUMENT_ STORAGE_ BYTES - Calibrated effective storage-byte cost of the Core withdrawal document a
ShieldedWithdrawalcreates.
Functions§
- compute_
minimum_ shielded_ fee - Computes the minimum flat fee (in credits) for a pool-paid / asset-lock shielded transition.
- compute_
platform_ sighash - Computes the platform sighash from an Orchard bundle commitment and optional transparent field data.
- compute_
shielded_ unshield_ fee - Computes the Unshield fee (in credits):
compute_minimum_shielded_feePLUS the flat storage cost of the singleAddBalanceToAddresswrite anUnshieldperforms. - compute_
shielded_ verification_ fee - Computes the compute-only shielded fee (in credits): the ZK-compute portion (Halo 2 proof verification + per-action spend-auth/nullifier processing) that GroveDB metering cannot see.
- compute_
shielded_ withdrawal_ fee - Computes the ShieldedWithdrawal fee (in credits):
compute_minimum_shielded_feePLUS the flat storage cost of the Core withdrawal document aShieldedWithdrawalinserts. - shielded_
withdrawal_ extra_ sighash_ data - Builds the transparent
extra_databound into a ShieldedWithdrawal’s platform sighash, with the byte layoutoutput_script || unshielding_amount (u64 LE) || core_fee_per_byte (u32 LE) || pooling (u8). - unshield_
extra_ sighash_ data - Builds the transparent
extra_databound into an Unshield’s platform sighash, with the byte layoutoutput_address || unshielding_amount (u64 LE).