[][src]Struct wagyu_zcash::transaction::SaplingOutputDescription

pub struct SaplingOutputDescription {
    pub cv: [u8; 32],
    pub cmu: [u8; 32],
    pub ephemeral_key: [u8; 32],
    pub enc_ciphertext: Vec<u8>,
    pub out_ciphertext: Vec<u8>,
    pub zk_proof: Vec<u8>,
}

Represents a Zcash Sapling output description

Fields

cv: [u8; 32]

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

cmu: [u8; 32]

The u-coordinate of the note commitment for the output note, LEBS2OSP_256(cm_u) where cm_u = Extract_J^(r) (cm).

ephemeral_key: [u8; 32]

The encoding of an ephemeral Jubjub public key, LEBS2OSP_256(repr_J(epk)).

enc_ciphertext: Vec<u8>

The ciphertext component for the encrypted output note, C_enc.

out_ciphertext: Vec<u8>

The ciphertext component for the encrypted output note, C_out.

zk_proof: Vec<u8>

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

Methods

impl SaplingOutputDescription[src]

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

Returns the serialized sapling output 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 SaplingOutputDescription[src]

impl Debug for SaplingOutputDescription[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>,