From 77662bae2cd973bc2d21f1789a23d135e8bd89ed Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Fri, 15 Mar 2024 12:34:15 +0100 Subject: [PATCH] crypto: don't use btcec directly --- crypto/signature_nocgo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/signature_nocgo.go b/crypto/signature_nocgo.go index 531031c8bc..48852c5ece 100644 --- a/crypto/signature_nocgo.go +++ b/crypto/signature_nocgo.go @@ -73,7 +73,7 @@ func Sign(hash []byte, prv *ecdsa.PrivateKey) ([]byte, error) { if len(hash) != 32 { return nil, fmt.Errorf("hash is required to be exactly 32 bytes (%d)", len(hash)) } - if prv.Curve != btcec.S256() { + if prv.Curve != S256() { return nil, errors.New("private key curve is not secp256k1") } // ecdsa.PrivateKey -> btcec.PrivateKey