add libsecp256k1 wrapper for sign/verify.

This commit is contained in:
fiatjaf
2024-05-29 15:32:49 -03:00
parent 0e93b1173f
commit 427bfc7a4b
4 changed files with 132 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
This is faster than the pure Go version:
```
goos: linux
goarch: amd64
pkg: github.com/nbd-wtf/go-nostr/libsecp256k1
cpu: AMD Ryzen 3 3200G with Radeon Vega Graphics
BenchmarkSignatureVerification/btcec-4 145 7873130 ns/op 127069 B/op 579 allocs/op
BenchmarkSignatureVerification/libsecp256k1-4 502 2314573 ns/op 112241 B/op 392 allocs/op
```