Skip to content

Commit

Permalink
chore: Allow sign_with_schnorr (#83)
Browse files Browse the repository at this point in the history
* Whitelist sign_with_schnorr

* update test wasm for limit

* changelog

---------

Co-authored-by: Linwei Shang <[email protected]>
  • Loading branch information
fxgst and lwshang authored Jan 27, 2025
1 parent 707016c commit 41bb2f5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [0.9.3] - 2024-01-10
## [0.9.4] - 2025-01-27

* Allow `sign_with_schnorr` in `limit_resource`.

## [0.9.3] - 2025-01-10

* Validate the manipulated module before emitting it and give a warning if that fails.

## [0.9.2] - 2024-01-09
## [0.9.2] - 2025-01-09

* Fix: limit_resource works with wasm64.

Expand Down
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
[package]
name = "ic-wasm"
version = "0.9.3"
version = "0.9.4"
authors = ["DFINITY Stiftung"]
edition = "2021"
description = "A library for performing Wasm transformations specific to canisters running on the Internet Computer"
Expand Down
1 change: 1 addition & 0 deletions src/limit_resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ fn make_redirect_call_new(
"delete_canister_snapshot",
// These functions doesn't require controller permissions, but needs cycles
"sign_with_ecdsa",
"sign_with_schnorr",
"http_request", // Will be renamed to "_ttp_request", because the name conflicts with the http serving endpoint.
"_ttp_request", // need to redirect renamed function as well, because the second time we see this function, it's already renamed in memory
// methods from evm canister
Expand Down
Binary file modified tests/ok/classes-nop-redirect.wasm
Binary file not shown.
Binary file modified tests/ok/classes-redirect.wasm
Binary file not shown.
Binary file modified tests/ok/evm-redirect.wasm
Binary file not shown.

0 comments on commit 41bb2f5

Please sign in to comment.