Minor update to address nits in review.
This commit is contained in:
@@ -23,9 +23,9 @@ public:
|
|||||||
TEST(noteencryption, NotePlaintext)
|
TEST(noteencryption, NotePlaintext)
|
||||||
{
|
{
|
||||||
using namespace libzcash;
|
using namespace libzcash;
|
||||||
auto sk = SaplingSpendingKey(uint256()).expanded_spending_key();
|
auto xsk = SaplingSpendingKey(uint256()).expanded_spending_key();
|
||||||
auto vk = sk.full_viewing_key();
|
auto fvk = xsk.full_viewing_key();
|
||||||
auto ivk = vk.in_viewing_key();
|
auto ivk = fvk.in_viewing_key();
|
||||||
SaplingPaymentAddress addr = *ivk.address({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
|
SaplingPaymentAddress addr = *ivk.address({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
|
||||||
|
|
||||||
std::array<unsigned char, ZC_MEMO_SIZE> memo;
|
std::array<unsigned char, ZC_MEMO_SIZE> memo;
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ SaplingNotePlaintext::SaplingNotePlaintext(
|
|||||||
|
|
||||||
boost::optional<SaplingNote> SaplingNotePlaintext::note(const SaplingIncomingViewingKey& ivk) const
|
boost::optional<SaplingNote> SaplingNotePlaintext::note(const SaplingIncomingViewingKey& ivk) const
|
||||||
{
|
{
|
||||||
auto addr = ivk.address( d );
|
auto addr = ivk.address(d);
|
||||||
if (addr) {
|
if (addr) {
|
||||||
return SaplingNote(d, addr.get().pk_d, value_, rcm);
|
return SaplingNote(d, addr.get().pk_d, value_, rcm);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user