pub struct WTxoSeal {
pub primary: WOutpoint,
pub secondary: TxoSealExt,
}Expand description
A composed single-use seal definition type, which includes a primary and a fallback seal.
The type allows creation of seals pointing to the output of the same transaction (witness transaction) which commits to the message defining the seals.
Fields§
§primary: WOutpointA primary seal definition.
secondary: TxoSealExtA fallback seal definition.
Implementations§
Source§impl WTxoSeal
impl WTxoSeal
Sourcepub fn vout_no_fallback(vout: Vout, noise_engine: Sha256, nonce: u64) -> Self
pub fn vout_no_fallback(vout: Vout, noise_engine: Sha256, nonce: u64) -> Self
Creates a new witness-output-based seal definition without a fallback.
§Arguments
nonce is a deterministic incremental number, preventing from creating the same seal if the
same output is used.
Trait Implementations§
Source§impl CommitEncode for WTxoSeal
impl CommitEncode for WTxoSeal
Source§type CommitmentId = StrictHash
type CommitmentId = StrictHash
Type of the resulting commitment.
Source§fn commit_encode(&self, engine: &mut CommitEngine)
fn commit_encode(&self, engine: &mut CommitEngine)
Encodes the data for the commitment by writing them directly into a
std::io::Write writer instanceSource§impl<'de> Deserialize<'de> for WTxoSeal
impl<'de> Deserialize<'de> for WTxoSeal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for WTxoSeal
impl Ord for WTxoSeal
Source§impl PartialOrd for WTxoSeal
impl PartialOrd for WTxoSeal
Source§impl StrictDecode for WTxoSeal
impl StrictDecode for WTxoSeal
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for WTxoSeal
impl StrictDumb for WTxoSeal
fn strict_dumb() -> Self
Source§impl StrictEncode for WTxoSeal
impl StrictEncode for WTxoSeal
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for WTxoSeal
impl StrictStruct for WTxoSeal
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for WTxoSeal
impl StrictType for WTxoSeal
const STRICT_LIB_NAME: &'static str = dbc::LIB_NAME_BPCORE
fn strict_name() -> Option<TypeName>
impl Copy for WTxoSeal
impl Eq for WTxoSeal
impl StrictProduct for WTxoSeal
impl StructuralPartialEq for WTxoSeal
Auto Trait Implementations§
impl Freeze for WTxoSeal
impl RefUnwindSafe for WTxoSeal
impl Send for WTxoSeal
impl Sync for WTxoSeal
impl Unpin for WTxoSeal
impl UnwindSafe for WTxoSeal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CommitId for Twhere
T: CommitEncode,
impl<T> CommitId for Twhere
T: CommitEncode,
fn commit(&self) -> CommitEngine
Source§fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
fn commit_id(&self) -> <T as CommitEncode>::CommitmentId
Performs commitment to client-side-validated data
Source§impl<T> CommitmentLayout for Twhere
T: CommitEncode + StrictDumb,
impl<T> CommitmentLayout for Twhere
T: CommitEncode + StrictDumb,
Source§fn commitment_layout() -> CommitLayout
fn commitment_layout() -> CommitLayout
Generate a descriptive commitment layout, which includes a description
of each encoded field and the used hashing strategies.
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.