pub enum TxIn {
Gen {
height: VarInt,
},
ToKey {
amount: VarInt,
key_offsets: Vec<VarInt>,
k_image: KeyImage,
},
}
Expand description
A transaction input, either a coinbase spend or a one-time key spend which defines the ring size and the key image to avoid double spend.
Variants
Gen
Fields
height: VarInt
Block height of where the coinbase transaction is included.
A coinbase input.
ToKey
Fields
amount: VarInt
Amount spend from the output, 0 in case of CT.
k_image: KeyImage
The corresponding key image of the output.
A key input from a key output.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for TxIn
impl<'de> Deserialize<'de> for TxIn
sourcefn 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
impl StructuralPartialEq for TxIn
Auto Trait Implementations
impl RefUnwindSafe for TxIn
impl Send for TxIn
impl Sync for TxIn
impl Unpin for TxIn
impl UnwindSafe for TxIn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more