pub struct Tx {
pub version: TxVer,
pub inputs: Confined<Vec<TxIn, Global>, 0, bc::::types::VarIntArray::{constant#1}>,
pub outputs: Confined<Vec<TxOut, Global>, 0, bc::::types::VarIntArray::{constant#1}>,
pub lock_time: LockTime,
}Fields§
§version: TxVer§inputs: Confined<Vec<TxIn, Global>, 0, bc::::types::VarIntArray::{constant#1}>§outputs: Confined<Vec<TxOut, Global>, 0, bc::::types::VarIntArray::{constant#1}>§lock_time: LockTimeTrait Implementations§
source§impl ConvolveCommit<Commitment, TapretProof, Lnpbp12> for Tx
impl ConvolveCommit<Commitment, TapretProof, Lnpbp12> for Tx
§type Commitment = Tx
type Commitment = Tx
Commitment type produced as a result of
Self::convolve_commit
procedure.§type CommitError = TapretError
type CommitError = TapretError
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<(Tx, TapretProof), <Tx as ConvolveCommit<Commitment, TapretProof, Lnpbp12>>::CommitError>
fn convolve_commit(
&self,
supplement: &TapretProof,
msg: &Commitment
) -> Result<(Tx, TapretProof), <Tx 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 Tx
impl<'de> Deserialize<'de> for Tx
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Tx, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Tx, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Tx
impl Serialize for Tx
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 Tx
impl StrictDecode for Tx
fn strict_decode(reader: &mut impl TypedRead) -> Result<Tx, DecodeError>
source§impl StrictDumb for Tx
impl StrictDumb for Tx
fn strict_dumb() -> Tx
source§impl StrictEncode for Tx
impl StrictEncode for Tx
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
source§impl StrictStruct for Tx
impl StrictStruct for Tx
const ALL_FIELDS: &'static [&'static str] = &["version", "inputs", "outputs", "lockTime"]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for Tx
impl StrictType for Tx
const STRICT_LIB_NAME: &'static str = LIB_NAME_BP
fn strict_name() -> Option<TypeName>
impl Eq for Tx
impl StrictProduct for Tx
impl StructuralEq for Tx
impl StructuralPartialEq for Tx
Auto Trait Implementations§
impl RefUnwindSafe for Tx
impl Send for Tx
impl Sync for Tx
impl Unpin for Tx
impl UnwindSafe for Tx
Blanket Implementations§
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.