Alter SaplingNote::nullifier() to take a SaplingFullViewingKey

This means the API will work if you only have a SaplingExtendedSpendingKey,
as will be the case with ZIP 32.
This commit is contained in:
Jack Grigg
2018-07-24 14:54:01 +02:00
parent a7a62b724b
commit 66a519f55d
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ TEST(SaplingNote, TestVectors)
// Test nullifier
SaplingSpendingKey spendingKey(sk);
ASSERT_EQ(note.nullifier(spendingKey, note_pos), nf);
ASSERT_EQ(note.nullifier(spendingKey.full_viewing_key(), note_pos), nf);
}