Expand description
Functions for parsing & serialization of Orchard transaction components.
Modules§
- testing
test-dependencies
Constants§
- ACTION_
SIZE - The size in bytes of an Orchard action description, as written by
write_action_without_auth. - BUNDLE_
OVERHEAD - The per-bundle overhead of an Orchard/Ironwood bundle, excluding the proof and the
per-action data: flags (1) + value_balance (8) + anchor (32) + binding_sig (64) +
a CompactSize prefix for the actions vector (at most 9 bytes, budgeted as 10). The
proof is a fixed base plus a per-action share computed via
orchard::Proof::expected_proof_size, so it is added at the call site rather than included here. - FLAGS_
EXPECTED_ UNSET - FLAG_
OUTPUTS_ ENABLED - FLAG_
SPENDS_ ENABLED - SPEND_
AUTH_ SIG_ SIZE - The size in bytes of an Orchard/Ironwood spend authorization signature, as encoded
separately from the action description in the bundle’s
vSpendAuthSigsarray.
Traits§
Functions§
- bundle_
version_ for_ branch - Returns the [
BundleVersion] in effect for the given Orchard-protocol value pool under the given consensus branch, orNoneif the pool is not supported under that branch (the Orchard pool prior to NU5; the Ironwood pool prior to NU6.3). - read_
action_ without_ auth - read_
anchor - read_
cmx - read_
flags - read_
note_ ciphertext - read_
nullifier - read_
signature - read_
v5_ bundle - Reads an [
orchard::Bundle] from a v5 transaction format. - read_
v6_ bundle - Reads an [
orchard::Bundle] from a v6 transaction format.poolselects the bundle slot to read: the Orchard slot ([ValuePool::Orchard]) or the Ironwood slot ([ValuePool::Ironwood], whose flag-byte encoding permits the cross-address bit, unlike the Orchard v6 pool). The slot’s [BundleVersion] is derived fromconsensus_branch_id(seebundle_version_for_branch); a non-empty bundle in a slot whose value pool is not supported under the transaction’s consensus branch is rejected as invalid data. - read_
value_ commitment - read_
verification_ key - write_
action_ without_ auth - write_
cmx - write_
note_ ciphertext - write_
nullifier - write_
v5_ bundle - Writes an [
orchard::Bundle] in the v5 transaction format. - write_
v6_ bundle - Writes an [
orchard::Bundle] in the v6 transaction format. The bundle’s own [BundleVersion] selects the pool (and hence the flag-byte grammar): the Orchard slot uses [BundleVersion::orchard_v3], the Ironwood slot [BundleVersion::ironwood_v3]. - write_
value_ commitment - write_
verification_ key