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

Incorrect error code returned from secp256k1-recover?​ #414

Open
Acaccia opened this issue May 20, 2024 · 0 comments
Open

Incorrect error code returned from secp256k1-recover?​ #414

Acaccia opened this issue May 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Acaccia
Copy link
Collaborator

Acaccia commented May 20, 2024

The snippet below returns the wrong error result:

#[test]
fn secp256k1_invalid_signature() {
    let snippet = "(secp256k1-recover?
        0xde5b9eb9e7c5592930eb2e30a01369c36586d872082ed8181ee83d2a0ec20f04
        0x8738487ebe69b93d8e51583be8eee50bb4213fc49c767d329632730cc193b873554428fc936ca3569afc15f1c9365f6591d6251a89fee9c9ac661116824d3a1317)";

    crosscheck(
        snippet,
        Ok(Some(Value::Response(ResponseData {
            committed: false,
            data: Box::new(Value::Int(2)),
        }))),
    );
}
@Acaccia Acaccia added the bug Something isn't working label May 20, 2024
@smcclellan smcclellan added this to the WASM Phase 1 milestone May 28, 2024
@saralab saralab modified the milestones: WASM Phase 1, WASM Phase 2 Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Status: 📋 Backlog
Development

No branches or pull requests

3 participants