#recover #svm #allocation

solana-nostd-secp256k1-recover

A more efficient implementation of Secp256k1 Recover for SVM

2 releases

0.1.1 Oct 2, 2024
0.1.0 Oct 2, 2024

#5 in #recover

Download history 344/week @ 2024-12-08 255/week @ 2024-12-15 250/week @ 2024-12-22 153/week @ 2024-12-29 236/week @ 2025-01-05 178/week @ 2025-01-12 213/week @ 2025-01-19 21/week @ 2025-01-26 128/week @ 2025-02-02 211/week @ 2025-02-09 337/week @ 2025-02-16 149/week @ 2025-02-23 371/week @ 2025-03-02 517/week @ 2025-03-09 218/week @ 2025-03-16 268/week @ 2025-03-23

1,374 downloads per month
Used in 3 crates

MIT license

8KB
127 lines

Solana NoStd Secp256k1 Recover

A more efficient implementation of Secp256k1 Recover for SVM.

Installation

cargo add solana-nostd-secp256k1-recover

Features

  • No Secp256k1Pubkey type struct. Returns a [u8;64] directly.
  • Makes use of MaybeUninit to skip zero allocations

Performance

library function CU cost
nostd-secp256k1-recover secp256k1_recover_unchecked 25006
nostd-secp256k1-recover secp256k1_recover 25006
solana-program secp256k1_recover 25193

Dependencies

~3MB
~67K SLoC