[][src]Struct wagyu_zcash::transaction::SaplingSpend

pub struct SaplingSpend<N: ZcashNetwork> {
    pub spend_parameters: Option<SaplingSpendParameters<N>>,
    pub spend_description: Option<SaplingSpendDescription>,
}

Represents a Zcash transaction Shielded Spend

Fields

spend_parameters: Option<SaplingSpendParameters<N>>

The Sapling spend parameters

spend_description: Option<SaplingSpendDescription>

The spend description

Methods

impl<N: ZcashNetwork> SaplingSpend<N>[src]

pub fn new(
    extended_private_key: &ZcashExtendedPrivateKey<N>,
    cmu: &[u8; 32],
    epk: &[u8; 32],
    enc_ciphertext: &str,
    anchor: Fr,
    witness: MerklePath<Node>
) -> Result<Self, TransactionError>
[src]

Returns a new Zcash sapling spend

pub fn create_sapling_spend_description(
    &mut self,
    proving_ctx: &mut SaplingProvingContext,
    spend_params: &Parameters<Bls12>,
    spend_vk: &PreparedVerifyingKey<Bls12>
) -> Result<(), TransactionError>
[src]

Create Sapling spend description

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

Read and output a Zcash sapling spend

Trait Implementations

impl<N: Clone + ZcashNetwork> Clone for SaplingSpend<N>[src]

impl<N: Debug + ZcashNetwork> Debug for SaplingSpend<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for SaplingSpend<N> where
    N: RefUnwindSafe

impl<N> Send for SaplingSpend<N>

impl<N> Sync for SaplingSpend<N>

impl<N> Unpin for SaplingSpend<N> where
    N: Unpin

impl<N> UnwindSafe for SaplingSpend<N> where
    N: UnwindSafe

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>,