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 for opcode SELFBALANCE #89

Closed
wants to merge 5 commits into from
Closed

Conversation

z2trillion
Copy link

@z2trillion z2trillion commented Feb 3, 2022

Implement the SelfbalanceGadget for opcode SELFBALANCE.

Specs: scroll-tech/zkevm-specs#33

Fixes #56

Copy link
Member

@icemelon icemelon left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

@@ -648,6 +648,8 @@ fn tx_convert(
tx: &bus_mapping::circuit_input_builder::Transaction,
ops_len: (usize, usize, usize),
) -> Transaction<Fp> {
// look in to addresses here?
// callee address??
Copy link
Member

Choose a reason for hiding this comment

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

Is this part still WIP?

Copy link
Author

Choose a reason for hiding this comment

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

I will remove this comment. I think that privacy-scaling-explorations#292 will address this, which should allow us to use run_test_circuits for the gadget test instead of having to construct the witness by hand.

@z2trillion z2trillion marked this pull request as draft February 7, 2022 22:38
@z2trillion
Copy link
Author

I'm waiting for privacy-scaling-explorations#292 to be merged in. I will need to update the bus mapping for SELFBALANCE once it is, because we need to do account and call context lookups for the opcode.

@z2trillion
Copy link
Author

decided that this is ready for review and that i'll update the bus mapping for SELFBALANCE once privacy-scaling-explorations#292 is merged in upstream.

@z2trillion z2trillion marked this pull request as ready for review February 9, 2022 04:06
@z2trillion z2trillion requested a review from icemelon February 9, 2022 04:06
@scroll-dev
Copy link

close and move to privacy-scaling-explorations#328

@scroll-dev scroll-dev closed this Feb 10, 2022
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.

SELFBALANCE circuit
3 participants