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

#include <note.h>

Collaboration diagram for libzcash::SaplingOutgoingPlaintext:
[legend]

Public Member Functions

 SaplingOutgoingPlaintext ()
 
 SaplingOutgoingPlaintext (const uint256 &_pk_d, const uint256 &_esk)
 
 SERIALIZE_METHODS (SaplingOutgoingPlaintext, obj)
 
SaplingOutCiphertext encrypt (const uint256 &ovk, const uint256 &cv, const uint256 &cm, SaplingNoteEncryption &enc) const
 

Static Public Member Functions

static Optional< SaplingOutgoingPlaintextdecrypt (const SaplingOutCiphertext &ciphertext, const uint256 &ovk, const uint256 &cv, const uint256 &cm, const uint256 &epk)
 

Public Attributes

uint256 pk_d {UINT256_ZERO}
 
uint256 esk {UINT256_ZERO}
 

Detailed Description

Definition at line 115 of file note.h.

Constructor & Destructor Documentation

◆ SaplingOutgoingPlaintext() [1/2]

libzcash::SaplingOutgoingPlaintext::SaplingOutgoingPlaintext ( )
inline

Definition at line 121 of file note.h.

◆ SaplingOutgoingPlaintext() [2/2]

libzcash::SaplingOutgoingPlaintext::SaplingOutgoingPlaintext ( const uint256 _pk_d,
const uint256 _esk 
)
inline

Definition at line 122 of file note.h.

Member Function Documentation

◆ decrypt()

Optional< SaplingOutgoingPlaintext > SaplingOutgoingPlaintext::decrypt ( const SaplingOutCiphertext ciphertext,
const uint256 ovk,
const uint256 cv,
const uint256 cm,
const uint256 epk 
)
static

Definition at line 90 of file note.cpp.

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

◆ encrypt()

SaplingOutCiphertext SaplingOutgoingPlaintext::encrypt ( const uint256 ovk,
const uint256 cv,
const uint256 cm,
SaplingNoteEncryption enc 
) const

Definition at line 226 of file note.cpp.

Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

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

Definition at line 127 of file note.h.

Member Data Documentation

◆ esk

uint256 libzcash::SaplingOutgoingPlaintext::esk {UINT256_ZERO}

Definition at line 119 of file note.h.

◆ pk_d

uint256 libzcash::SaplingOutgoingPlaintext::pk_d {UINT256_ZERO}

Definition at line 118 of file note.h.


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