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

Use a pure rust secp256k1 implementation #89

Open
luca992 opened this issue Jun 29, 2023 · 2 comments
Open

Use a pure rust secp256k1 implementation #89

luca992 opened this issue Jun 29, 2023 · 2 comments

Comments

@luca992
Copy link

luca992 commented Jun 29, 2023

secp256k1 depends on secp256k1-sys a c wrapper. It has caused me build issues like having to update clang on my mac as well as being incompatible with rust-optimizer. Is there any reason to not use a pure rust implementation like k256? Plus it would be one less dependency since k256 is already a dependency of secret-cosmwasm-crypto

@KennySwayzee93
Copy link

Same problem here, would much appreciate a pure rust implementation

@luca992
Copy link
Author

luca992 commented Nov 7, 2024

Fyi contracts with secret-cosmwasm-crypto can't be uploaded on chain anymore after a cargo update

after version 1.1.10 of cc they added shlex which causes:

Err(StaticValidationErr { msg: "Wasm contract requires unsupported import: \\"env.rustsecp256k1_v0_8_1_context_preallocated_size\\"

cc is a dependency of secp256k1-sys

You have to force cc to a lower version now:

cc = { version = "=1.1.10" }

example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants