PIVX Core  5.6.99
P2P Digital Currency
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
SpendDescription Class Reference

A shielded input to a transaction. More...

#include <sapling_transaction.h>

Collaboration diagram for SpendDescription:
[legend]

Public Types

typedef std::array< unsigned char, 64 > spend_auth_sig_t
 

Public Member Functions

 SpendDescription ()
 
 SERIALIZE_METHODS (SpendDescription, obj)
 

Public Attributes

uint256 cv {UINT256_ZERO}
 A value commitment to the value of the input note. More...
 
uint256 anchor {UINT256_ZERO}
 A Merkle root of the Sapling note commitment tree at some block height in the past. More...
 
uint256 nullifier {UINT256_ZERO}
 The nullifier of the input note. More...
 
uint256 rk {UINT256_ZERO}
 The randomized public key for spendAuthSig. More...
 
libzcash::GrothProof zkproof = {{0}}
 A zero-knowledge proof using the spend circuit. More...
 
spend_auth_sig_t spendAuthSig = {{0}}
 A signature authorizing this spend. More...
 

Friends

bool operator== (const SpendDescription &a, const SpendDescription &b)
 
bool operator!= (const SpendDescription &a, const SpendDescription &b)
 

Detailed Description

A shielded input to a transaction.

It contains data that describes a Spend transfer.

Definition at line 41 of file sapling_transaction.h.

Member Typedef Documentation

◆ spend_auth_sig_t

typedef std::array<unsigned char, 64> SpendDescription::spend_auth_sig_t

Definition at line 44 of file sapling_transaction.h.

Constructor & Destructor Documentation

◆ SpendDescription()

SpendDescription::SpendDescription ( )
inline

Definition at line 53 of file sapling_transaction.h.

Member Function Documentation

◆ SERIALIZE_METHODS()

SpendDescription::SERIALIZE_METHODS ( SpendDescription  ,
obj   
)
inline

Definition at line 55 of file sapling_transaction.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const SpendDescription a,
const SpendDescription b 
)
friend

Definition at line 69 of file sapling_transaction.h.

◆ operator==

bool operator== ( const SpendDescription a,
const SpendDescription b 
)
friend

Definition at line 57 of file sapling_transaction.h.

Member Data Documentation

◆ anchor

uint256 SpendDescription::anchor {UINT256_ZERO}

A Merkle root of the Sapling note commitment tree at some block height in the past.

Definition at line 47 of file sapling_transaction.h.

◆ cv

uint256 SpendDescription::cv {UINT256_ZERO}

A value commitment to the value of the input note.

Definition at line 46 of file sapling_transaction.h.

◆ nullifier

uint256 SpendDescription::nullifier {UINT256_ZERO}

The nullifier of the input note.

Definition at line 48 of file sapling_transaction.h.

◆ rk

uint256 SpendDescription::rk {UINT256_ZERO}

The randomized public key for spendAuthSig.

Definition at line 49 of file sapling_transaction.h.

◆ spendAuthSig

spend_auth_sig_t SpendDescription::spendAuthSig = {{0}}

A signature authorizing this spend.

Definition at line 51 of file sapling_transaction.h.

◆ zkproof

libzcash::GrothProof SpendDescription::zkproof = {{0}}

A zero-knowledge proof using the spend circuit.

Definition at line 50 of file sapling_transaction.h.


The documentation for this class was generated from the following file: