Skip to main content

is_unspendable

Function is_unspendable 

Source
pub fn is_unspendable<T: VerifiableTransaction, Reused: SigHashReusedValues>(
    script: &[u8],
) -> bool
Expand description

Returns whether the passed public key script is unspendable, or guaranteed to fail at execution.

This allows inputs to be pruned instantly when entering the UTXO set.