stacks-network / clarity-wasm

`clar2wasm` is a compiler for generating WebAssembly from Clarity.
GNU General Public License v3.0
12 stars 12 forks source link

Fix secp256k1-recover error condition #465

Closed matteojug closed 1 month ago

matteojug commented 1 month ago

Fixes https://github.com/stacks-network/clarity-wasm/issues/414

The clarity-vm has an additional check for returning err(2): https://github.com/stacks-network/stacks-core/blob/47db1d0a8bf70eda1c93cb3e0731bdf5595f7baa/clarity/src/vm/functions/crypto.rs#L164

I've kept the test from the issue, but it's redundant wrt the second test and can be removed.

CLAassistant commented 1 month ago

CLA assistant check
All committers have signed the CLA.