[−][src]Struct wagyu_zcash::transaction::SaplingSpendDescription
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]
fn clone(&self) -> SaplingSpendDescription
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SaplingSpendDescription
[src]
Auto Trait Implementations
impl RefUnwindSafe for SaplingSpendDescription
impl Send for SaplingSpendDescription
impl Sync for SaplingSpendDescription
impl Unpin for SaplingSpendDescription
impl UnwindSafe for SaplingSpendDescription
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,