Skip to content

Commit

Permalink
fix: update starknet-crypto (#1088)
Browse files Browse the repository at this point in the history
Update to 0.5.0 to include the fix for a `panic` in
`starknet_crypto::ecdsa::verify`

Use release mode for wasm tests, since the update triggers a 'too many
locals' error otherwise
  • Loading branch information
Oppen authored Apr 30, 2023
1 parent eaea41f commit 534acf8
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 95 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ jobs:
with:
tool: cargo-nextest,cargo-llvm-cov,wasm-pack
- name: Run
run:
run: |
# FIXME: we need to update the Makefile to do this correctly
case ${{ matrix.target }} in
'test')
Expand All @@ -177,7 +177,8 @@ jobs:
cargo llvm-cov nextest --lcov --output-path lcov-${{ matrix.target }}.info --workspace --features test_utils --no-default-features
;;
'test-wasm')
wasm-pack test --node --no-default-features
# NOTE: release mode is needed to avoid "too many locals" error
wasm-pack test --release --node --no-default-features
;;
esac
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@
%}
```

* fix(starknet-crypto): bump version to `0.5.0` [#1088](https://github.com/lambdaclass/cairo-rs/pull/1088)
* This includes the fix for a `panic!` in `ecdsa::verify`.
See: [#365](https://github.com/xJonathanLEI/starknet-rs/issues/365) and [#366](https://github.com/xJonathanLEI/starknet-rs/pulls/366)

* feat(hints): Add alternative string for hint IS_ZERO_PACK [#1081](https://github.com/lambdaclass/cairo-rs/pull/1081)

`BuiltinHintProcessor` now supports the following hint:
Expand Down
133 changes: 42 additions & 91 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ hex = { version = "0.4.3", default-features = false }
bincode = { version = "2.0.0-rc.2", tag = "v2.0.0-rc.2", git = "https://github.com/bincode-org/bincode.git", default-features = false, features = [
"serde",
] }
starknet-crypto = { version = "0.4.3", default-features = false, features = [
starknet-crypto = { version = "0.5.0", default-features = false, features = [
"signature-display",
"alloc",
] }
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ test: $(COMPILED_PROOF_TESTS) $(COMPILED_TESTS) $(COMPILED_BAD_TESTS) $(COMPILED
test-no_std: $(COMPILED_PROOF_TESTS) $(COMPILED_TESTS) $(COMPILED_BAD_TESTS) $(COMPILED_NORETROCOMPAT_TESTS)
cargo llvm-cov nextest --no-report --workspace --features test_utils --no-default-features
test-wasm: $(COMPILED_PROOF_TESTS) $(COMPILED_TESTS) $(COMPILED_BAD_TESTS) $(COMPILED_NORETROCOMPAT_TESTS)
wasm-pack test --node --no-default-features
# NOTE: release mode is needed to avoid "too many locals" error
wasm-pack test --release --node --no-default-features

clippy:
cargo clippy --all --all-features --benches --examples --tests -- -D warnings
Expand Down

0 comments on commit 534acf8

Please sign in to comment.