Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Keccak Circuit: Refactor word_rlc into word lo/hi #1385

Closed
ed255 opened this issue May 3, 2023 · 1 comment · Fixed by #1434
Closed

Keccak Circuit: Refactor word_rlc into word lo/hi #1385

ed255 opened this issue May 3, 2023 · 1 comment · Fixed by #1434
Assignees
Milestone

Comments

@ed255
Copy link
Member

ed255 commented May 3, 2023

Specs: privacy-scaling-explorations/zkevm-specs#390

Depends on:

@ed255 ed255 added this to the word-hi-lo milestone May 3, 2023
@ChihChengLiang ChihChengLiang linked a pull request May 31, 2023 that will close this issue
1 task
ChihChengLiang added a commit that referenced this issue Jun 8, 2023
### Description

Support word lo-hi in keccak circuit

### Issue Link

#1385 

### Type of change

- [x] Breaking change (fix or feature that would cause existing
functionality to not work as expected)

### Contents

- Change the keccak circuit hash output format from RLC to word lo-hi.
- Add convenient methods `map` for Word. This can easily map two limbs
to other types.
- Add a constructor for the zero known value word.


### Rationale

### Testss

The following tests can pass if we remove math_gadget tests below

```
cargo test -p zkevm-circuits packed_multi_keccak_simple --features test
```

```
zkevm-circuits/src/evm_circuit/util/math_gadget/add_words.rs
zkevm-circuits/src/evm_circuit/util/math_gadget/cmp_words.rs
zkevm-circuits/src/evm_circuit/util/math_gadget/lt_word.rs
zkevm-circuits/src/evm_circuit/util/math_gadget/min_max_word.rs
zkevm-circuits/src/evm_circuit/util/math_gadget/modulo.rs
zkevm-circuits/src/evm_circuit/util/math_gadget/mul_add_words.rs
```
@ChihChengLiang
Copy link
Collaborator

Fixed by #1434

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants