Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use different random nullifiers in dummy notes #39

Merged
merged 4 commits into from
Dec 23, 2022

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.

src/builder.rs Outdated
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