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 41447cf9b07b2ee01cf00c0de6ffd46b36b0ce7e
parent 2db21b937211d7199f11dfe1008e370dd28b19b7
Author: Jared Tobin <jared@jtobin.io>
Date:   Thu, 19 Jun 2025 16:29:11 +0400

lib: fix bench shadow warning

Diffstat:
MREADME.md | 4++--
Mbench/Main.hs | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -35,12 +35,12 @@ A sample GHCi session: > let msg = "i approve of this message" > > -- create and verify a schnorr signature for the message - > let sig0 = Secp256k1.sign_schnorr sec msg mempty + > let Just sig0 = Secp256k1.sign_schnorr sec msg mempty > Secp256k1.verify_schnorr msg pub sig0 True > > -- create and verify a low-S ECDSA signature for the message - > let sig1 = Secp256k1.sign_ecdsa sec msg + > let Just sig1 = Secp256k1.sign_ecdsa sec msg > Secp256k1.verify_ecdsa msg pub sig1 True > diff --git a/bench/Main.hs b/bench/Main.hs @@ -31,7 +31,7 @@ main = defaultMain [ parse_int256 :: BS.ByteString -> Integer parse_int256 bs = case S.parse_int256 bs of Nothing -> error "bang" - Just s -> s + Just v -> v remQ :: Benchmark remQ = env setup $ \x ->