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