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

circuits: Remove ViewKey from TxOutputNote::new #192

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

moCello
Copy link
Member

@moCello moCello commented May 31, 2024

Resolves #191

@moCello moCello force-pushed the mocello/191_circuit_output branch from b9f03fc to 1e303b6 Compare May 31, 2024 15:01
@moCello moCello requested review from xevisalle, ureeves and HDauven May 31, 2024 15:06
@moCello moCello changed the title circuits: Remove TxOutputNote::new circuits: Remove ViewKey from TxOutputNote::new May 31, 2024
let value_commitment = JubJubScalar::from(value);
let value_commitment = (GENERATOR_EXTENDED * value_commitment)
+ (GENERATOR_NUMS_EXTENDED * blinding_factor);
let value_commitment = JubJubAffine::from(value_commitment);
Copy link
Member

Choose a reason for hiding this comment

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

Not sure if I'm a fan of all this variable shadowing here, but if we do this more often ignore this comment.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, fixed it

@moCello moCello force-pushed the mocello/191_circuit_output branch from 1e303b6 to 63fba18 Compare June 3, 2024 08:47
@moCello moCello merged commit b59b7ec into master Jun 3, 2024
6 checks passed
@moCello moCello deleted the mocello/191_circuit_output branch June 3, 2024 08:53
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.

circuits: Change the way we generate a TxOutputNote
2 participants