Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Circuit for opcode SELFBALANCE#89

Closed
z2trillion wants to merge 5 commits into
mainfrom
feat/opcode-selfbalance
Closed

Circuit for opcode SELFBALANCE#89
z2trillion wants to merge 5 commits into
mainfrom
feat/opcode-selfbalance

Conversation

@z2trillion
Copy link
Copy Markdown

@z2trillion z2trillion commented Feb 3, 2022

Implement the SelfbalanceGadget for opcode SELFBALANCE.

Specs: scroll-tech/zkevm-specs#33

Fixes #56

Copy link
Copy Markdown
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

ops_len: (usize, usize, usize),
) -> Transaction<Fp> {
// look in to addresses here?
// callee address??
Copy link
Copy Markdown
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
Copy Markdown
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-ethereum#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
Copy Markdown
Author

I'm waiting for privacy-ethereum#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
Copy Markdown
Author

decided that this is ready for review and that i'll update the bus mapping for SELFBALANCE once privacy-ethereum#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
Copy Markdown

close and move to privacy-ethereum#328

@scroll-dev scroll-dev closed this Feb 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SELFBALANCE circuit

3 participants