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

This is not a thread-safe API. More...

#include <noteencryption.h>

Collaboration diagram for libzcash::SaplingNoteEncryption:
[legend]

Public Member Functions

Optional< SaplingEncCiphertextencrypt_to_recipient (const uint256 &pk_d, const SaplingEncPlaintext &message)
 
SaplingOutCiphertext encrypt_to_ourselves (const uint256 &ovk, const uint256 &cv, const uint256 &cm, const SaplingOutPlaintext &message)
 
uint256 get_epk () const
 
uint256 get_esk () const
 

Static Public Member Functions

static Optional< SaplingNoteEncryptionFromDiversifier (diversifier_t d)
 

Protected Member Functions

 SaplingNoteEncryption (uint256 epk, uint256 esk)
 

Protected Attributes

uint256 epk
 
uint256 esk
 
bool already_encrypted_enc
 
bool already_encrypted_out
 

Detailed Description

This is not a thread-safe API.

Definition at line 31 of file noteencryption.h.

Constructor & Destructor Documentation

◆ SaplingNoteEncryption()

libzcash::SaplingNoteEncryption::SaplingNoteEncryption ( uint256  epk,
uint256  esk 
)
inlineprotected

Definition at line 42 of file noteencryption.h.

Member Function Documentation

◆ encrypt_to_ourselves()

SaplingOutCiphertext libzcash::SaplingNoteEncryption::encrypt_to_ourselves ( const uint256 ovk,
const uint256 cv,
const uint256 cm,
const SaplingOutPlaintext message 
)

Definition at line 235 of file noteencryption.cpp.

Here is the call graph for this function:

◆ encrypt_to_recipient()

Optional< SaplingEncCiphertext > libzcash::SaplingNoteEncryption::encrypt_to_recipient ( const uint256 pk_d,
const SaplingEncPlaintext message 
)

Definition at line 127 of file noteencryption.cpp.

Here is the call graph for this function:

◆ FromDiversifier()

Optional< SaplingNoteEncryption > libzcash::SaplingNoteEncryption::FromDiversifier ( diversifier_t  d)
static

Definition at line 112 of file noteencryption.cpp.

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

◆ get_epk()

uint256 libzcash::SaplingNoteEncryption::get_epk ( ) const
inline

Definition at line 62 of file noteencryption.h.

◆ get_esk()

uint256 libzcash::SaplingNoteEncryption::get_esk ( ) const
inline

Definition at line 66 of file noteencryption.h.

Member Data Documentation

◆ already_encrypted_enc

bool libzcash::SaplingNoteEncryption::already_encrypted_enc
protected

Definition at line 39 of file noteencryption.h.

◆ already_encrypted_out

bool libzcash::SaplingNoteEncryption::already_encrypted_out
protected

Definition at line 40 of file noteencryption.h.

◆ epk

uint256 libzcash::SaplingNoteEncryption::epk
protected

Definition at line 34 of file noteencryption.h.

◆ esk

uint256 libzcash::SaplingNoteEncryption::esk
protected

Definition at line 37 of file noteencryption.h.


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