#recover #svm #solana #no-std #u8 #maybe-uninit #secp256k1-pubkey

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

#7 in #maybe-uninit

Download history 283/week @ 2024-10-01 16/week @ 2024-10-08 14/week @ 2024-10-15 24/week @ 2024-10-22 10/week @ 2024-10-29 14/week @ 2024-11-05 13/week @ 2024-11-12 181/week @ 2024-11-19 202/week @ 2024-11-26 314/week @ 2024-12-03 349/week @ 2024-12-10 256/week @ 2024-12-17 242/week @ 2024-12-24 152/week @ 2024-12-31 192/week @ 2025-01-07

908 downloads per month
Used in 2 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

~2.5MB
~56K SLoC