pub type ScriptPubKeyBuf = ScriptBuf<ScriptPubKeyTag>;Expand description
A scriptPubKey (locking script).
Aliased Type§
pub struct ScriptPubKeyBuf(/* private fields */);Implementations§
Source§impl ScriptPubKeyBuf
impl ScriptPubKeyBuf
Sourcepub fn new_op_return<T: AsRef<PushBytes>>(data: T) -> Self
pub fn new_op_return<T: AsRef<PushBytes>>(data: T) -> Self
Generates OP_RETURN-type of scriptPubkey for the given data.
Sourcepub fn new_p2sh(script_hash: ScriptHash) -> Self
pub fn new_p2sh(script_hash: ScriptHash) -> Self
Generates P2SH-type of scriptPubkey with a given hash of the redeem script.