Skip to main content

with_garbage_orchard_authorization

Function with_garbage_orchard_authorization 

Source
pub fn with_garbage_orchard_authorization(tx: Transaction) -> Transaction
Expand description

Returns a copy of tx whose Orchard bundle keeps its effects but has garbage authorizing data: a corrupt proof, binding signature, and spend authorization signatures.

Per ZIP-244 the txid covers only a transaction’s effects, so the returned transaction has the same txid as tx while being unverifiable. Used to check that a cached verification result for one cannot stand in for the other.

The bundle version must not enforce a canonical proof size (i.e. pre-NU6.2 Orchard), since the point is to install a proof that is not a real one.