[][src]Struct wagyu_zcash::transaction::SaplingSpendDescription

pub struct SaplingSpendDescription {
    pub cv: [u8; 32],
    pub anchor: [u8; 32],
    pub nullifier: [u8; 32],
    pub rk: [u8; 32],
    pub zk_proof: Vec<u8>,
    pub spend_auth_sig: Option<Vec<u8>>,
}

Represents a Zcash Sapling spend description

Fields

cv: [u8; 32]

The value commitment to the value of the input note, LEBS2OSP_256(repr_J(cv)).

anchor: [u8; 32]

The root of the Sapling note commitment tree at a past block height, LEBS2OSP_256(rt).

nullifier: [u8; 32]

The nullifier of the input note, LEBS2OSP_256(nf).

rk: [u8; 32]

The randomized public key for spend_auth_sig, LEBS2OSP_256(repr_J(rk)).

zk_proof: Vec<u8>

The encoding of the zero knowledge proof used for the output circuit.

spend_auth_sig: Option<Vec<u8>>

The signature authorizing this spend.

Methods

impl SaplingSpendDescription[src]

pub fn serialize(&self, sighash: bool) -> Result<Vec<u8>, TransactionError>[src]

Returns the serialized sapling spend description

pub fn read<R: Read>(reader: &mut R) -> Result<Self, TransactionError>[src]

Read and output a Zcash sapling spend description

Trait Implementations

impl Clone for SaplingSpendDescription[src]

impl Debug for SaplingSpendDescription[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,