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

circuit: Make TxInputNote fields public #224

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Conversation

moCello
Copy link
Member

@moCello moCello commented Jun 25, 2024

Expose the fields of TxInputNote so it can also be constructed from the internal fields, without the sender-sk.

circuits/src/transaction.rs Outdated Show resolved Hide resolved
self.max_fee,
self.deposit,
)?;
// Append the root as public input
Copy link
Member

Choose a reason for hiding this comment

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

which is the advantage of adding this here and changing the already peer-reviewed comments?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ease of work: the other file was a real pain to debug and I changed only the comments that directly refer to the steps 1 - 6 in the documentation of the function.
I also thought that it is good to have the circuit implementation be more close to the circuit outlined in the specs with clear markers where what things are checked (e.g. membership, ownership, etc)

@moCello moCello force-pushed the mocello/circuit_inputs branch from 62769e6 to 9f0713d Compare June 25, 2024 15:33
@moCello moCello force-pushed the mocello/circuit_inputs branch from 9f0713d to 89202bb Compare June 25, 2024 15:47
@moCello moCello requested a review from xevisalle June 25, 2024 18:14
Copy link
Member

@ureeves ureeves left a comment

Choose a reason for hiding this comment

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

LGTM!

@moCello moCello merged commit 92c3229 into master Jun 26, 2024
6 checks passed
@moCello moCello deleted the mocello/circuit_inputs branch June 26, 2024 15:40
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.

3 participants