11 #ifndef PIVX_SAPLING_NOTEENCRYPTION_H
12 #define PIVX_SAPLING_NOTEENCRYPTION_H
This is not a thread-safe API.
bool already_encrypted_enc
SaplingOutCiphertext encrypt_to_ourselves(const uint256 &ovk, const uint256 &cv, const uint256 &cm, const SaplingOutPlaintext &message)
static Optional< SaplingNoteEncryption > FromDiversifier(diversifier_t d)
SaplingNoteEncryption(uint256 epk, uint256 esk)
Optional< SaplingEncCiphertext > encrypt_to_recipient(const uint256 &pk_d, const SaplingEncPlaintext &message)
bool already_encrypted_out
std::array< unsigned char, ZC_SAPLING_ENCPLAINTEXT_SIZE > SaplingEncPlaintext
Optional< SaplingEncPlaintext > AttemptSaplingEncDecryption(const SaplingEncCiphertext &ciphertext, const uint256 &ivk, const uint256 &epk)
std::array< unsigned char, ZC_SAPLING_OUTPLAINTEXT_SIZE > SaplingOutPlaintext
std::array< unsigned char, ZC_SAPLING_ENCCIPHERTEXT_SIZE > SaplingEncCiphertext
Optional< SaplingOutPlaintext > AttemptSaplingOutDecryption(const SaplingOutCiphertext &ciphertext, const uint256 &ovk, const uint256 &cv, const uint256 &cm, const uint256 &epk)
std::array< unsigned char, ZC_SAPLING_OUTCIPHERTEXT_SIZE > SaplingOutCiphertext
boost::optional< T > Optional
Substitute for C++17 std::optional.
std::array< unsigned char, ZC_DIVERSIFIER_SIZE > diversifier_t