pub trait TxoSeal: From<Outpoint> {
// Required methods
fn method(&self) -> CloseMethod;
fn txid(&self) -> Option<Txid>;
fn vout(&self) -> Vout;
fn outpoint(&self) -> Option<Outpoint>;
fn txid_or(&self, default_txid: Txid) -> Txid;
fn outpoint_or(&self, default_txid: Txid) -> Outpoint;
}Expand description
Methods common for all transaction-output based seal types.
Required Methods§
fn method(&self) -> CloseMethod
fn method(&self) -> CloseMethod
Returns method which must be used for seal closing.
fn vout(&self) -> Vout
fn vout(&self) -> Vout
Returns transaction output number containing the defined seal.
fn txid_or(&self, default_txid: Txid) -> Txid
fn txid_or(&self, default_txid: Txid) -> Txid
Returns Txid part of the seal definition, if known, or the provided
default_txid.
fn outpoint_or(&self, default_txid: Txid) -> Outpoint
fn outpoint_or(&self, default_txid: Txid) -> Outpoint
Returns Outpoint defining the seal, if txid is known, or constructs
one using the provided default_txid.