pub struct TxOut {
pub value: Sats,
pub script_pubkey: ScriptPubkey,
}
Fields§
§value: Sats
§script_pubkey: ScriptPubkey
Implementations§
Trait Implementations§
Source§impl ConsensusDecode for TxOut
impl ConsensusDecode for TxOut
fn consensus_decode( reader: &mut impl Read, ) -> Result<TxOut, ConsensusDecodeError>
fn consensus_deserialize( bytes: impl AsRef<[u8]>, ) -> Result<Self, ConsensusDecodeError>
Source§impl ConsensusEncode for TxOut
impl ConsensusEncode for TxOut
Source§impl ConvolveCommit<Commitment, TapretProof, TapretFirst> for TxOut
impl ConvolveCommit<Commitment, TapretProof, TapretFirst> for TxOut
Source§type Commitment = TxOut
type Commitment = TxOut
Commitment type produced as a result of
Self::convolve_commit
procedure.Source§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, TapretFirst>>::CommitError>
fn convolve_commit( &self, supplement: &TapretProof, msg: &Commitment, ) -> Result<(TxOut, TapretProof), <TxOut as ConvolveCommit<Commitment, TapretProof, TapretFirst>>::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 EmbedCommitVerify<Commitment, OpretFirst> for TxOut
impl EmbedCommitVerify<Commitment, OpretFirst> for TxOut
Source§type Proof = OpretProof
type Proof = OpretProof
The proof of the commitment produced as a result of
Self::embed_commit
procedure. This proof is later used
for verification.Source§type CommitError = OpretError
type CommitError = OpretError
Error type that may be reported during
Self::embed_commit
procedure.
It may also be returned from Self::verify
(wrapped into
EmbedVerifyError
in case the proof data are invalid and the
commitment can’t be re-created.Source§fn embed_commit(
&mut self,
msg: &Commitment,
) -> Result<<TxOut as EmbedCommitVerify<Commitment, OpretFirst>>::Proof, <TxOut as EmbedCommitVerify<Commitment, OpretFirst>>::CommitError>
fn embed_commit( &mut self, msg: &Commitment, ) -> Result<<TxOut as EmbedCommitVerify<Commitment, OpretFirst>>::Proof, <TxOut as EmbedCommitVerify<Commitment, OpretFirst>>::CommitError>
Creates a commitment to a message and embeds it into the provided
container (
self
) by mutating it and returning commitment proof. Read moreSource§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>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictEncode for TxOut
impl StrictEncode for TxOut
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for TxOut
impl StrictStruct for TxOut
const ALL_FIELDS: &'static [&'static str]
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>
Source§impl Weight for TxOut
impl Weight for TxOut
fn weight_units(&self) -> WeightUnits
fn vbytes(&self) -> VBytes
impl Eq for TxOut
impl StrictProduct for TxOut
impl StructuralPartialEq for TxOut
Auto Trait Implementations§
impl Freeze for TxOut
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.