pub struct ShieldedSpend {
pub anchor: Hash32,
pub nullifier: Hash32,
pub value: u64,
pub proof: Vec<u8>,
}Expand description
A shielded spend: consumes a note from the commitment tree.
Reveals the nullifier (double-spend tag) and the note’s value; the STARK
proof shows the note exists under anchor without revealing which one.
The proof is excluded from the sighash (it binds the sighash via the
proof transcript instead).
Fields§
§anchor: Hash32A historical note-tree root this spend proves membership against.
nullifier: Hash32§value: u64§proof: Vec<u8>Trait Implementations§
Source§impl Clone for ShieldedSpend
impl Clone for ShieldedSpend
Source§impl Debug for ShieldedSpend
impl Debug for ShieldedSpend
Source§impl<'de> Deserialize<'de> for ShieldedSpend
impl<'de> Deserialize<'de> for ShieldedSpend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ShieldedSpend
Source§impl PartialEq for ShieldedSpend
impl PartialEq for ShieldedSpend
Source§impl Serialize for ShieldedSpend
impl Serialize for ShieldedSpend
impl StructuralPartialEq for ShieldedSpend
Auto Trait Implementations§
impl Freeze for ShieldedSpend
impl RefUnwindSafe for ShieldedSpend
impl Send for ShieldedSpend
impl Sync for ShieldedSpend
impl Unpin for ShieldedSpend
impl UnsafeUnpin for ShieldedSpend
impl UnwindSafe for ShieldedSpend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more