6 #ifndef PIVX_SAPLING_ADDRESS_H
7 #define PIVX_SAPLING_ADDRESS_H
15 #include <boost/variant.hpp>
82 return (a.
ak < b.
ak ||
bool IsValidPaymentAddress(const libzcash::PaymentAddress &zaddr)
Check whether a PaymentAddress is not an InvalidEncoding.
friend bool operator==(const InvalidEncoding &a, const InvalidEncoding &b)
friend bool operator<(const InvalidEncoding &a, const InvalidEncoding &b)
friend bool operator<(const SaplingExpandedSpendingKey &a, const SaplingExpandedSpendingKey &b)
SaplingExpandedSpendingKey()
friend bool operator==(const SaplingExpandedSpendingKey &a, const SaplingExpandedSpendingKey &b)
SERIALIZE_METHODS(SaplingExpandedSpendingKey, obj)
SaplingExpandedSpendingKey(uint256 ask, uint256 nsk, uint256 ovk)
SaplingFullViewingKey full_viewing_key() const
SaplingIncomingViewingKey in_viewing_key() const
SERIALIZE_METHODS(SaplingFullViewingKey, obj)
uint256 GetFingerprint() const
Get the fingerprint of this full viewing key (as defined in ZIP 32).
friend bool operator==(const SaplingFullViewingKey &a, const SaplingFullViewingKey &b)
SaplingFullViewingKey(uint256 ak, uint256 nk, uint256 ovk)
friend bool operator<(const SaplingFullViewingKey &a, const SaplingFullViewingKey &b)
SaplingIncomingViewingKey()
SaplingIncomingViewingKey(uint256 ivk)
Optional< SaplingPaymentAddress > address(diversifier_t d) const
friend bool operator==(const SaplingPaymentAddress &a, const SaplingPaymentAddress &b)
uint256 GetHash() const
Get the 256-bit SHA256d hash of this payment address.
SERIALIZE_METHODS(SaplingPaymentAddress, obj)
SaplingPaymentAddress(const diversifier_t &_d, const uint256 &_pk_d)
friend bool operator<(const SaplingPaymentAddress &a, const SaplingPaymentAddress &b)
static SaplingSpendingKey random()
SaplingPaymentAddress default_address() const
SaplingFullViewingKey full_viewing_key() const
SaplingSpendingKey(uint256 sk)
SaplingExpandedSpendingKey expanded_spending_key() const
boost::variant< InvalidEncoding, SaplingPaymentAddress > PaymentAddress
const size_t SerializedSaplingPaymentAddressSize
const size_t SerializedSaplingSpendingKeySize
const size_t SerializedSaplingExpandedSpendingKeySize
const size_t SerializedSaplingFullViewingKeySize
boost::optional< T > Optional
Substitute for C++17 std::optional.
std::array< unsigned char, ZC_DIVERSIFIER_SIZE > diversifier_t
const uint256 UINT256_ZERO
constant uint256 instances