-
Notifications
You must be signed in to change notification settings - Fork 61
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
Can not build rust-secp256k1 inside CosmWasm contracts #162
Comments
Hi, the rust-secp256k1 library uses a C library under the hood, which seems not well supported for the wasm target. Does the crate claim to work for the wasm target? |
Also: Do you have this problem because it's somewhere in your dependency tree or do you want to use the crate directly? |
Unfortunately it is somewhere in the dependency tree... The library should support other wasm targets, I will have to check exactly what the problem is here. |
While looking at their repo, it looks like they only support wasm32-wasi, not wasm32-unknown-unknown (which is what CosmWasm contracts use), so I'll close here, since it's not an optimizer issue. |
Hello, as described here rust-bitcoin/rust-secp256k1#748 (comment), it seems that the
rust-secp256k1
library can not be built usingrust-optimizer
when in WASM context.The library should support running in WASM context, but I am not quite sure where the error could reside...
The text was updated successfully, but these errors were encountered: