Skip to content

Commit

Permalink
Add FRI layer 0 commitment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmilson committed Nov 27, 2024
1 parent fa8c976 commit 1cd7436
Show file tree
Hide file tree
Showing 23 changed files with 9,409 additions and 1,759 deletions.
4 changes: 2 additions & 2 deletions stwo_cairo_verifier/.tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
scarb nightly-2024-11-09
starknet-foundry 0.32.0
scarb nightly-2024-11-19
starknet-foundry 0.33.0
6 changes: 3 additions & 3 deletions stwo_cairo_verifier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Modify [`Scarb.toml`](./Scarb.toml) to use [Starknet Foundary](https://github.co

```diff
[dev-dependencies]
- cairo_test = "2.8.0"
+ snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.32.0" }
+ assert_macros = "2.8.0"
- cairo_test = "2.8.5"
+ snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.33.0" }
+ assert_macros = "2.8.5"
+
+ [scripts]
+ test = "snforge test --max-n-steps 100000000"
Expand Down
8 changes: 1 addition & 7 deletions stwo_cairo_verifier/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,8 @@ edition = "2024_07"
[lib]
casm = true

[cairo]
# TODO(andrew): Remove once inlining bug fixed as increases step counts by about 3x.
inlining-strategy = "avoid"

[tool.fmt]
sort-module-level-items = true

[dependencies]

[dev-dependencies]
cairo_test = "2.8.4"
cairo_test = "2.8.5"
10 changes: 2 additions & 8 deletions stwo_cairo_verifier/src/channel.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,8 @@ pub impl ChannelImpl of ChannelTrait {
fn draw_base_felts(ref self: Channel) -> [BaseField; FELTS_PER_HASH] {
let mut cur = self.draw_felt252().into();
[
extract_m31(ref cur),
extract_m31(ref cur),
extract_m31(ref cur),
extract_m31(ref cur),
extract_m31(ref cur),
extract_m31(ref cur),
extract_m31(ref cur),
extract_m31(ref cur),
extract_m31(ref cur), extract_m31(ref cur), extract_m31(ref cur), extract_m31(ref cur),
extract_m31(ref cur), extract_m31(ref cur), extract_m31(ref cur), extract_m31(ref cur),
]
}

Expand Down
Loading

0 comments on commit 1cd7436

Please sign in to comment.