secp256k1

Pure Haskell Schnorr, ECDSA on the elliptic curve secp256k1 (docs.ppad.tech/secp256k1).
git clone git://git.ppad.tech/secp256k1.git
Log | Files | Refs | README | LICENSE

commit 7776c0b240f5b4958e062cc9931ab4d3f9337b34
parent 0035495db1e96a96f6e645296385bd357f854a48
Author: Jared Tobin <jared@jtobin.io>
Date:   Tue, 26 Nov 2024 10:20:06 +0400

meta: weigh note

Diffstat:
MREADME.md | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -84,6 +84,30 @@ Current benchmark figures on my mid-2020 MacBook Air look like (use std dev 80.76 μs (66.73 μs .. 104.9 μs) ``` +In terms of allocations, we get: + +``` +schnorr + + Case Allocated GCs + sign_schnorr (small) 7,227,408 1 + sign_schnorr (large) 7,174,600 1 + sign_schnorr' (small) 3,323,392 0 + sign_schnorr' (large) 3,273,824 0 + verify_schnorr 2,947,544 0 + verify_schnorr' 1,667,360 0 + +ecdsa + + Case Allocated GCs + sign_ecdsa (small) 2,280,360 0 + sign_ecdsa (large) 2,277,136 0 + sign_ecdsa' (small) 326,624 0 + sign_ecdsa' (large) 324,672 0 + verify_ecdsa 5,014,264 1 + verify_ecdsa' 3,796,328 0 +``` + ## Security This library aims at the maximum security achievable in a