Return optional for Sapling commitments and nullifiers.
Unlike Sprout, they are not always computable in Sapling.
This commit is contained in:
@@ -45,7 +45,7 @@ TEST(SaplingNote, TestVectors)
|
||||
|
||||
// Test commitment
|
||||
SaplingNote note = SaplingNote(diversifier, pk_d, v, r);
|
||||
ASSERT_EQ(note.cm(), cm);
|
||||
ASSERT_EQ(note.cm().get(), cm);
|
||||
|
||||
// Test nullifier
|
||||
SaplingSpendingKey spendingKey(sk);
|
||||
|
||||
Reference in New Issue
Block a user