diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index e814e4b92..1a8112718 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -26,3 +26,4 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermi ### BUG FIXES +- [crypto] \#5707 Fix infinite recursion in string formatting of Secp256k1 keys (@erikgrinaker) diff --git a/crypto/secp256k1/secp256k1.go b/crypto/secp256k1/secp256k1.go index fe5296900..26926a966 100644 --- a/crypto/secp256k1/secp256k1.go +++ b/crypto/secp256k1/secp256k1.go @@ -158,7 +158,7 @@ func (pubKey PubKey) Bytes() []byte { } func (pubKey PubKey) String() string { - return fmt.Sprintf("PubKeySecp256k1{%X}", pubKey[:]) + return fmt.Sprintf("PubKeySecp256k1{%X}", []byte(pubKey)) } func (pubKey PubKey) Equals(other crypto.PubKey) bool {