Skip to content

Commit

Permalink
Fix: Use ethCrypto for signing and verification instead of secp256k1
Browse files Browse the repository at this point in the history
  • Loading branch information
tosynthegeek committed Jun 24, 2024
1 parent 5263600 commit 02f417c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/secp256k1.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (key *Secp256k1PrivateKey) VerifyingKey() VerifyingKey {

func (key *Secp256k1PrivateKey) SignMessage(msg []byte) (sig Signature, err error) {
hash := util.Sha3256Hash([][]byte{msg})
// TODO: The eth library doesn't protect against malleability issues, so we need to handle those
// TODO: The eth library doesn't protect against malleability issues, so we need to handle those.
signature, err := ethCrypto.Sign(hash, key.Inner)
if err != nil {
return nil, err
Expand Down

0 comments on commit 02f417c

Please sign in to comment.