diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 7d2b43718..efbbd5b65 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -36,3 +36,4 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermi - [types] \#5523 Change json naming of `PartSetHeader` within `BlockID` from `parts` to `part_set_header` (@marbar3778) - [privval] \#5638 Increase read/write timeout to 5s and calculate ping interval based on it (@JoeKash) - [blockchain/v1] [\#5701](https://github.com/tendermint/tendermint/pull/5701) Handle peers without blocks (@melekes) +- [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 {