pub trait ScriptHashInput {
// Required method
fn redeem_script(&self) -> Result<Option<ScriptBuf>, InputError>;
}
Required Methods§
fn redeem_script(&self) -> Result<Option<ScriptBuf>, InputError>
Implementations on Foreign Types§
Source§impl ScriptHashInput for TxIn
impl ScriptHashInput for TxIn
Source§fn redeem_script(&self) -> Result<Option<ScriptBuf>, InputError>
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.