Trait ScriptHashInput

Source
pub trait ScriptHashInput {
    // Required method
    fn redeem_script(&self) -> Result<Option<ScriptBuf>, InputError>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl ScriptHashInput for TxIn

Source§

fn redeem_script(&self) -> Result<Option<ScriptBuf>, InputError>

Returns the redeem script of the input. The caller must make sure the input is script hash based, otherwise None is returned.

Implementors§