Challenge in EVM circuit WIP#990
Conversation
|
Had a review on the major changes and every opcode today, here are some my thoughts:
|
Thanks! :)
But is this happening with |
Ahhh sorry, you are completely right, it should just be one synthesize called in |
6eabfe2 to
8120bd4
Compare
…circuits into tmp/challenge-evm-circuit
| rlc::expr(&lookup.input_exprs(), self.lookup_powers_of_randomness), | ||
| MAX_DEGREE - IMPLICIT_DEGREE, | ||
| ); | ||
| self.store_expression(name, compressed_expr, CellType::Lookup(lookup.table())); |
There was a problem hiding this comment.
This seems need to be stored in LookupPhase3 since it contains challenge after phase 2
There was a problem hiding this comment.
Oh, sure! I miss this!
| let lookup_powers_of_randomness: [Expression<F>; 31] = | ||
| challenges.lookup_input_powers_of_randomness(); |
There was a problem hiding this comment.
It seems we only need 12 here at most for CopyTable.
* create: refactor lifetime * fmt * add more tests
* create_op: fix memory size (privacy-ethereum#990) * create: refactor lifetime * fmt * add more tests * update access list in create * refactor create * build * fix * try * ci
Uploaded the version I'm working now of evm circuit with challenge api
Uses
https://github.com/privacy-scaling-explorations/halo2/tree/tmp/challenge-evm-circuit
Current status, and stuff I'll be working on
Not passing copy_circuit_valid_sha3Its like 50% slower for now (anyway, I reduced from 300% slower to 50% slower replacing Expression::identifier by https://github.com/privacy-scaling-explorations/halo2/blob/f090828bb829ac817d20b3446b3676bc63af8d3b/halo2_proofs/src/plonk/circuit.rs#L930 )seems that performance now is the same.lookup_inputchallengesplit_expressionAnyway, if anybody wants to take a look (not asking for a detailed review now, only for general comments), will be nice because I'm blocking other issues.