PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
libzcash::SaplingNotePlaintext Class Reference

#include <note.h>

Inheritance diagram for libzcash::SaplingNotePlaintext:
[legend]
Collaboration diagram for libzcash::SaplingNotePlaintext:
[legend]

Public Member Functions

 SaplingNotePlaintext ()
 
 SaplingNotePlaintext (const SaplingNote &note, const std::array< unsigned char, ZC_MEMO_SIZE > &memo)
 
virtual ~SaplingNotePlaintext ()
 
Optional< SaplingNotenote (const SaplingIncomingViewingKey &ivk) const
 
 SERIALIZE_METHODS (SaplingNotePlaintext, obj)
 
Optional< SaplingNotePlaintextEncryptionResultencrypt (const uint256 &pk_d) const
 
- Public Member Functions inherited from libzcash::BaseNotePlaintext
 BaseNotePlaintext ()
 
 BaseNotePlaintext (const BaseNote &note, const std::array< unsigned char, ZC_MEMO_SIZE > &memo)
 
virtual ~BaseNotePlaintext ()
 
uint64_t value () const
 
const std::array< unsigned char, ZC_MEMO_SIZE > & memo () const
 

Static Public Member Functions

static Optional< SaplingNotePlaintextdecrypt (const SaplingEncCiphertext &ciphertext, const uint256 &ivk, const uint256 &epk, const uint256 &cmu)
 
static Optional< SaplingNotePlaintextdecrypt (const SaplingEncCiphertext &ciphertext, const uint256 &epk, const uint256 &esk, const uint256 &pk_d, const uint256 &cmu)
 

Public Attributes

diversifier_t d = {{0}}
 
uint256 rcm {UINT256_ZERO}
 

Additional Inherited Members

- Protected Attributes inherited from libzcash::BaseNotePlaintext
uint64_t value_ {0}
 
std::array< unsigned char, ZC_MEMO_SIZEmemo_ = {{0}}
 

Detailed Description

Definition at line 71 of file note.h.

Constructor & Destructor Documentation

◆ SaplingNotePlaintext() [1/2]

libzcash::SaplingNotePlaintext::SaplingNotePlaintext ( )
inline

Definition at line 76 of file note.h.

◆ SaplingNotePlaintext() [2/2]

SaplingNotePlaintext::SaplingNotePlaintext ( const SaplingNote note,
const std::array< unsigned char, ZC_MEMO_SIZE > &  memo 
)

Definition at line 71 of file note.cpp.

Here is the call graph for this function:

◆ ~SaplingNotePlaintext()

virtual libzcash::SaplingNotePlaintext::~SaplingNotePlaintext ( )
inlinevirtual

Definition at line 78 of file note.h.

Member Function Documentation

◆ decrypt() [1/2]

Optional< SaplingNotePlaintext > SaplingNotePlaintext::decrypt ( const SaplingEncCiphertext ciphertext,
const uint256 epk,
const uint256 esk,
const uint256 pk_d,
const uint256 cmu 
)
static

Definition at line 160 of file note.cpp.

Here is the call graph for this function:

◆ decrypt() [2/2]

Optional< SaplingNotePlaintext > SaplingNotePlaintext::decrypt ( const SaplingEncCiphertext ciphertext,
const uint256 ivk,
const uint256 epk,
const uint256 cmu 
)
static

Definition at line 115 of file note.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ encrypt()

Optional< SaplingNotePlaintextEncryptionResult > SaplingNotePlaintext::encrypt ( const uint256 pk_d) const

Definition at line 201 of file note.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ note()

Optional< SaplingNote > SaplingNotePlaintext::note ( const SaplingIncomingViewingKey ivk) const

Definition at line 80 of file note.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

libzcash::SaplingNotePlaintext::SERIALIZE_METHODS ( SaplingNotePlaintext  ,
obj   
)
inline

Definition at line 97 of file note.h.

Member Data Documentation

◆ d

diversifier_t libzcash::SaplingNotePlaintext::d = {{0}}

Definition at line 73 of file note.h.

◆ rcm

uint256 libzcash::SaplingNotePlaintext::rcm {UINT256_ZERO}

Definition at line 74 of file note.h.


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