Skip to main content

fake_orchard_bundle_with_note

Function fake_orchard_bundle_with_note 

Source
pub fn fake_orchard_bundle_with_note(
    flags: Flags,
    value_balance: ZatBalance,
    bundle_version: BundleVersion,
    cv_net: &[u8; 32],
    nullifier: &[u8; 32],
    cmx: &[u8; 32],
    epk_bytes: [u8; 32],
    enc_ciphertext: [u8; 580],
    out_ciphertext: [u8; 80],
) -> Bundle<Authorized, ZatBalance>
Expand description

Builds a single-action Orchard-shaped bundle carrying caller-supplied note-encryption fields.

The note-encryption test vectors fix cv_net, rho, cmx, ephemeralKey, encCiphertext and outCiphertext; everything else (the spend authorization key and signature, the anchor, the proof) is unconstrained by those vectors and is filled in with the same dummy values as fake_orchard_bundle.

flags must have outputs enabled for the resulting transaction to count as having shielded outputs, and must be representable under bundle_version.