10 releases

0.2.0 Feb 26, 2026
0.2.0-alpha.2 Feb 11, 2026
0.2.0-alpha.0 Jan 29, 2026
0.1.10 Dec 9, 2025
0.1.6 Nov 28, 2025

#3 in #secp256k1-recover

Download history 242/week @ 2025-11-14 48/week @ 2025-11-21 79/week @ 2025-11-28 45/week @ 2025-12-05 17/week @ 2025-12-12 36/week @ 2025-12-19 41/week @ 2025-12-26 48/week @ 2026-01-02 1/week @ 2026-01-09 21/week @ 2026-01-16 73/week @ 2026-01-23 104/week @ 2026-01-30 93/week @ 2026-02-06 56/week @ 2026-02-13 79/week @ 2026-02-20 57/week @ 2026-02-27

302 downloads per month
Used in 35 crates (3 directly)

Apache-2.0

27KB
157 lines

Public key recovery from secp256k1 ECDSA signatures.

This module provides low-level cryptographic building blocks that must be used carefully to ensure proper security. Read this documentation and accompanying links thoroughly.

The secp256k1_recover syscall allows a secp256k1 public key that has previously signed a message to be recovered from the combination of the message, the signature, and a recovery ID. The recovery ID is generated during signing.

Use cases for secp256k1_recover include:

  • Implementing the Ethereum ecrecover builtin contract.
  • Performing secp256k1 public key recovery generally.
  • Verifying a single secp256k1 signature.

While secp256k1_recover can be used to verify secp256k1 signatures, Solana also provides the secp256k1 program, which is more flexible, has lower CPU cost, and can validate many signatures at once.

Dependencies

~2.6–4MB
~83K SLoC