Skip to content

Commit 7abaadc

Browse files
authored
Merge pull request #21 from matter-labs/ad-fix-public-input
Fix final public input
2 parents 9d18bf6 + f61ce21 commit 7abaadc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The tool also offers to use the 'fake' file - that works for local testing, but
2828

2929

3030
```shell
31-
cargo run --bin wrapper_generator --release generate-vk --input-binary ../air_compiler/examples/hashed_fibonacci/app.bin --output-dir /tmp --trusted-setup-file crs/setup.key
31+
cargo run --bin wrapper_generator --release generate-vk --input-binary ../air_compiler/examples/hashed_fibonacci/app.bin --output-dir /tmp --trusted-setup-file crs/setup.key --universal-verifier
3232
```
3333

3434
This will generate the verification key (and verification key hash) - that can be put into the solidity code.

wrapper/src/circuits/risc_wrapper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ impl<F: SmallField, V: CircuitLeafInclusionVerifier<F>> RiscWrapperCircuit<F, V>
327327
{
328328
let mut lc = Vec::with_capacity(chunk.len());
329329
// treat as LE
330-
for (idx, el) in chunk.iter().enumerate() {
330+
for (idx, el) in chunk.iter().rev().enumerate() {
331331
lc.push((el.get_variable(), F::SHIFTS[idx * 8]));
332332
}
333333
let as_num = Num::linear_combination(cs, &lc);

0 commit comments

Comments
 (0)