pub struct TxOut {
pub value: Sats,
pub script_pubkey: ScriptPubkey,
}
Fields§
§value: Sats
§script_pubkey: ScriptPubkey
Trait Implementations§
source§impl ConvolveCommit<Commitment, TapretProof, Lnpbp12> for TxOut
impl ConvolveCommit<Commitment, TapretProof, Lnpbp12> for TxOut
§type Commitment = TxOut
type Commitment = TxOut
Commitment type produced as a result of
Self::convolve_commit
procedure.§type CommitError = TapretKeyError
type CommitError = TapretKeyError
Error type that may be reported during
Self::convolve_commit
procedure. It may also be returned from ConvolveCommitProof::verify
in case the proof data are invalid and the commitment can’t be
re-created.source§fn convolve_commit(
&self,
supplement: &TapretProof,
msg: &Commitment
) -> Result<(TxOut, TapretProof), <TxOut as ConvolveCommit<Commitment, TapretProof, Lnpbp12>>::CommitError>
fn convolve_commit( &self, supplement: &TapretProof, msg: &Commitment ) -> Result<(TxOut, TapretProof), <TxOut as ConvolveCommit<Commitment, TapretProof, Lnpbp12>>::CommitError>
Takes the
supplement
to unparse the content of this container (self
)
(“convolves” these two data together) and uses them to produce a final
Self::Commitment
to the message msg
. Read moresource§impl<'de> Deserialize<'de> for TxOut
impl<'de> Deserialize<'de> for TxOut
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TxOut, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TxOut, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TxOut> for TxOut
impl PartialEq<TxOut> for TxOut
source§impl Serialize for TxOut
impl Serialize for TxOut
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl StrictDecode for TxOut
impl StrictDecode for TxOut
fn strict_decode(reader: &mut impl TypedRead) -> Result<TxOut, DecodeError>
source§impl StrictDumb for TxOut
impl StrictDumb for TxOut
fn strict_dumb() -> TxOut
source§impl StrictEncode for TxOut
impl StrictEncode for TxOut
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where W: TypedWrite,
source§impl StrictStruct for TxOut
impl StrictStruct for TxOut
const ALL_FIELDS: &'static [&'static str] = &["value", "scriptPubkey"]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for TxOut
impl StrictType for TxOut
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
impl Eq for TxOut
impl StrictProduct for TxOut
impl StructuralEq for TxOut
impl StructuralPartialEq for TxOut
Auto Trait Implementations§
impl RefUnwindSafe for TxOut
impl Send for TxOut
impl Sync for TxOut
impl Unpin for TxOut
impl UnwindSafe for TxOut
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.