Skip to content

PR471: Make rho optional in Note#226

Merged
ConstanceBeguier merged 3 commits intozcash_pr471_reviewfrom
pr471_option_rho
Jan 15, 2026
Merged

PR471: Make rho optional in Note#226
ConstanceBeguier merged 3 commits intozcash_pr471_reviewfrom
pr471_option_rho

Conversation

@ConstanceBeguier
Copy link
Collaborator

@ConstanceBeguier ConstanceBeguier commented Jan 15, 2026

Address the following review comments:
r2543612212
r2543614980

When creating an issuance note, the rho value is now initialized to None (instead of being set to 0 previously).
The rho value is later deterministically derived and assigned when calling the update_rho method on the IssueBundle.

In addition, this PR fixes an issue where issuance notes could be invalid. Previously, rseed was sampled before the final rho value was known, which could result in an invalid note. With this change, rseed is updated after rho is set, ensuring that the resulting note is always valid.

When creating an issuance note, the rho value is initaliazed with None.
This value will be set when calling `update_rho` method on the `IssueBundle`.
@ConstanceBeguier ConstanceBeguier merged commit b10dd2b into zcash_pr471_review Jan 15, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant