Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FRI layer 0 commitment #186

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cairo-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "nightly-2024-11-09"
scarb-version: "nightly-2024-11-19"
- run: scarb fmt --check
- run: scarb test

Expand Down
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
Loading