6 #ifndef PIVX_SAPLING_ZIP32_H
7 #define PIVX_SAPLING_ZIP32_H
116 typedef boost::variant<InvalidEncoding, SaplingExtendedSpendingKey>
SpendingKey;
117 typedef boost::variant<InvalidEncoding, SaplingExtendedFullViewingKey>
ViewingKey;
friend bool operator!=(const HDSeed &a, const HDSeed &b)
uint256 Fingerprint() const
HDSeed(const CPrivKey &seedIn)
friend bool operator==(const HDSeed &a, const HDSeed &b)
static HDSeed Random(size_t len=32)
std::vector< unsigned char, secure_allocator< unsigned char > > CPrivKey
CPrivKey is a serialized private key, with all parameters included (PRIVATE_KEY_SIZE bytes)
boost::variant< InvalidEncoding, SaplingExtendedSpendingKey > SpendingKey
boost::variant< InvalidEncoding, SaplingExtendedFullViewingKey > ViewingKey
blob88 diversifier_index_t
boost::optional< T > Optional
Substitute for C++17 std::optional.
SERIALIZE_METHODS(SaplingExtendedFullViewingKey, obj)
Optional< std::pair< diversifier_index_t, libzcash::SaplingPaymentAddress > > Address(diversifier_index_t j) const
friend bool operator==(const SaplingExtendedFullViewingKey &a, const SaplingExtendedFullViewingKey &b)
libzcash::SaplingFullViewingKey fvk
Optional< SaplingExtendedFullViewingKey > Derive(uint32_t i) const
friend bool operator<(const SaplingExtendedFullViewingKey &a, const SaplingExtendedFullViewingKey &b)
libzcash::SaplingPaymentAddress DefaultAddress() const
friend bool operator==(const SaplingExtendedSpendingKey &a, const SaplingExtendedSpendingKey &b)
SERIALIZE_METHODS(SaplingExtendedSpendingKey, obj)
libzcash::SaplingExpandedSpendingKey expsk
libzcash::SaplingPaymentAddress DefaultAddress() const
SaplingExtendedSpendingKey Derive(uint32_t i) const
static SaplingExtendedSpendingKey Master(const HDSeed &seed)
SaplingExtendedFullViewingKey ToXFVK() const
const size_t ZIP32_XFVK_SIZE
const uint32_t ZIP32_HARDENED_KEY_LIMIT
bool IsValidSpendingKey(const libzcash::SpendingKey &zkey)
Check whether a SpendingKey is not an InvalidEncoding.
const size_t ZIP32_XSK_SIZE
bool IsValidViewingKey(const libzcash::ViewingKey &vk)
Check whether a ViewingKey is not an InvalidEncoding.
uint256 ovkForShieldingFromTaddr(HDSeed &seed)