#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 280/week @ 2024-12-11 268/week @ 2024-12-18 170/week @ 2024-12-25 153/week @ 2025-01-01 249/week @ 2025-01-08 172/week @ 2025-01-15 138/week @ 2025-01-22 55/week @ 2025-01-29 136/week @ 2025-02-05 293/week @ 2025-02-12 266/week @ 2025-02-19 224/week @ 2025-02-26 478/week @ 2025-03-05 419/week @ 2025-03-12 182/week @ 2025-03-19 253/week @ 2025-03-26

1,406 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