PIVX Core  5.6.99
P2P Digital Currency
key_io_sapling.h
Go to the documentation of this file.
1 // Copyright (c) 2016-2018 The Zcash developers
2 // Copyright (c) 2020 The PIVX Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef PIVX_SAPLING_KEY_IO_SAPLING_H
7 #define PIVX_SAPLING_KEY_IO_SAPLING_H
8 
9 #include "chainparams.h"
10 #include "sapling/zip32.h"
11 
12 namespace KeyIO {
13 
14  std::string EncodePaymentAddress(const libzcash::PaymentAddress& zaddr);
15  libzcash::PaymentAddress DecodePaymentAddress(const std::string& str);
17  bool IsValidPaymentAddressString(const std::string& str);
18 
19  std::string EncodeViewingKey(const libzcash::ViewingKey& vk);
20  libzcash::ViewingKey DecodeViewingKey(const std::string& str);
21 
22  std::string EncodeSpendingKey(const libzcash::SpendingKey& zkey);
23  libzcash::SpendingKey DecodeSpendingKey(const std::string& str);
24 }
25 
26 #endif // PIVX_SAPLING_KEY_IO_SAPLING_H
libzcash::SpendingKey DecodeSpendingKey(const std::string &str)
std::string EncodePaymentAddress(const libzcash::PaymentAddress &zaddr)
Optional< libzcash::SaplingPaymentAddress > DecodeSaplingPaymentAddress(const std::string &strAddress)
libzcash::ViewingKey DecodeViewingKey(const std::string &str)
std::string EncodeViewingKey(const libzcash::ViewingKey &vk)
bool IsValidPaymentAddressString(const std::string &str)
libzcash::PaymentAddress DecodePaymentAddress(const std::string &str)
std::string EncodeSpendingKey(const libzcash::SpendingKey &zkey)
boost::variant< InvalidEncoding, SaplingPaymentAddress > PaymentAddress
Definition: address.h:127
boost::variant< InvalidEncoding, SaplingExtendedSpendingKey > SpendingKey
Definition: zip32.h:116
boost::variant< InvalidEncoding, SaplingExtendedFullViewingKey > ViewingKey
Definition: zip32.h:117
boost::optional< T > Optional
Substitute for C++17 std::optional.
Definition: optional.h:12