Skip to content

Use different random nullifiers in dummy notes#39

Merged
alexeykoren merged 4 commits intozsa1from
zsa1-random-dummies
Dec 23, 2022
Merged

Use different random nullifiers in dummy notes#39
alexeykoren merged 4 commits intozsa1from
zsa1-random-dummies

Conversation

@alexeykoren
Copy link

Apparently client doesn't like cloned dummy spends, because they have same nullifier

@alexeykoren alexeykoren requested a review from PaulLaux December 21, 2022 21:19
Copy link
Collaborator

@PaulLaux PaulLaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved with minor comment.

Comment on lines -406 to -409
let dummy_spend = SpendInfo::dummy(asset, &mut rng);

// Extend the spends and recipients with dummy values.
spends.extend(iter::repeat_with(|| dummy_spend.clone()).take(num_actions - num_spends));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not remove those lines but add them to the comment starting in line 400.
Will will need to uncomment everything at later time to properly incorporate the split_note functionality.

@PaulLaux
Copy link
Collaborator

The intention is to use the same split_note multiple times and ignore split_notes in the client.

@alexeykoren alexeykoren merged commit 4681cc2 into zsa1 Dec 23, 2022
@alexeykoren alexeykoren deleted the zsa1-random-dummies branch December 23, 2022 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants