From 5eb4e971d57704912bdf73401ae68cb183b1ff48 Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Fri, 22 Jan 2021 15:41:15 +0100 Subject: [PATCH] Update ed25519 --- crypto/keys/ed25519/ed25519.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/keys/ed25519/ed25519.go b/crypto/keys/ed25519/ed25519.go index 17368c4b12ff..c757d13bd1a3 100644 --- a/crypto/keys/ed25519/ed25519.go +++ b/crypto/keys/ed25519/ed25519.go @@ -6,11 +6,13 @@ import ( "fmt" "io" + proto "github.com/gogo/protobuf/proto" "github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto/tmhash" "github.com/cosmos/cosmos-sdk/codec" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/cosmos/cosmos-sdk/types/address" "github.com/cosmos/cosmos-sdk/types/errors" ) @@ -155,6 +157,7 @@ func (pubKey *PubKey) Address() crypto.Address { if len(pubKey.Key) != PubKeySize { panic("pubkey is incorrect size") } + address.MkBase(proto.MessageName(pubkey), pubKey.Key) return crypto.Address(tmhash.SumTruncated(pubKey.Key)) }