Skip to content

Commit

Permalink
ci: fix backwards incompatible change (gnolang#2644)
Browse files Browse the repository at this point in the history
gnolang#2612 for some reason only had two
checks. Hopefully this has changed with the latest changes to CI.
  • Loading branch information
thehowl authored Jul 31, 2024
1 parent 879c4b6 commit 5f28803
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tm2/pkg/crypto/secp256k1/secp256k1_nocgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ import (
func (privKey PrivKeySecp256k1) Sign(msg []byte) ([]byte, error) {
priv, _ := btcec.PrivKeyFromBytes(privKey[:])

sig, err := ecdsa.SignCompact(priv, crypto.Sha256(msg), false) // ref uncompressed pubkey
if err != nil {
return nil, err
}
sig := ecdsa.SignCompact(priv, crypto.Sha256(msg), false) // ref uncompressed pubkey

// remove compact sig recovery code byte at the beginning
return sig[1:], nil
Expand Down

0 comments on commit 5f28803

Please sign in to comment.