[][src]Struct wagyu_zcash::transaction::SaplingOutput

pub struct SaplingOutput<N: ZcashNetwork> {
    pub output_parameters: Option<SaplingOutputParameters<N>>,
    pub output_description: Option<SaplingOutputDescription>,
}

Represents a Zcash Sapling output

Fields

output_parameters: Option<SaplingOutputParameters<N>>

The Sapling output parameters

output_description: Option<SaplingOutputDescription>

The output description

Methods

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

pub fn new(
    ovk: SaplingOutgoingViewingKey,
    address: &ZcashAddress<N>,
    value: ZcashAmount
) -> Result<Self, TransactionError>
[src]

Returns a new Zcash sapling output

pub fn create_sapling_output_description(
    &mut self,
    proving_ctx: &mut SaplingProvingContext,
    verifying_ctx: &mut SaplingVerificationContext,
    output_params: &Parameters<Bls12>,
    output_vk: &PreparedVerifyingKey<Bls12>
) -> Result<(), TransactionError>
[src]

Create Sapling Output Description

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

Read and output a Zcash sapling output

Trait Implementations

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

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

Auto Trait Implementations

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

impl<N> Send for SaplingOutput<N>

impl<N> Sync for SaplingOutput<N>

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

impl<N> UnwindSafe for SaplingOutput<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>,