Skip to main content

write_v5_bundle

Function write_v5_bundle 

Source
pub fn write_v5_bundle<W: Write>(
    bundle: Option<&Bundle<Authorized, ZatBalance>>,
    writer: W,
) -> Result<()>
Expand description

Writes an [orchard::Bundle] in the v5 transaction format.

The Orchard flag byte is encoded under the bundle’s own [BundleVersion]; an Orchard bundle never sets the cross-address bit, so its byte is always valid for the v5 format.