Closed luca992 closed 1 year ago
C-based crates like secp256k1-sys are not really supported in the CowmWasm ecosystem. You may get this to work with a lot of effort but I would not rely on it. There are nice pure-Rust secp256k1 implementations you can compile to Wasm much easier.
C-based crates like secp256k1-sys are not really supported in the CowmWasm ecosystem. You may get this to work with a lot of effort but I would not rely on it. There are nice pure-Rust secp256k1 implementations you can compile to Wasm much easier.
It's due to secret-toolkit-crypto
having a dependency on secp256k1
which depends on secp256k1-sys
.
Eitherway, the much simpler secret-contract-optimizer handles it just fine.
I meant why can't this docker work as well?
Because right now supporting a build system for other languages than Rust is not a priority. The C dependency is an unnecessary source of pain when you can just use a Rust dependency.
On my M1 Mac (if that matters) optimizing https://github.com/baedrik/snip721-reference-impl fails with the following error: