diff --git a/crypto/keys/secp256k1/secp256k1_test.go b/crypto/keys/secp256k1/secp256k1_test.go index 651665ad4e8e..6fe2d44f6407 100644 --- a/crypto/keys/secp256k1/secp256k1_test.go +++ b/crypto/keys/secp256k1/secp256k1_test.go @@ -78,10 +78,9 @@ func TestSignAndValidateSecp256k1(t *testing.T) { ok := ecdsa.Verify(btcPubKey.ToECDSA(), msgHash, r, s) require.True(t, ok) - sig2, err := btcecdsa.SignCompact(btcPrivKey, msgHash, false) + sig2 := btcecdsa.SignCompact(btcPrivKey, msgHash, false) // Chop off compactSigRecoveryCode. sig2 = sig2[1:] - require.NoError(t, err) pubKey.VerifySignature(msg, sig2) // ----