Skip to content

Commit

Permalink
Update ed25519
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Jan 22, 2021
1 parent d9d677b commit 5eb4e97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crypto/keys/ed25519/ed25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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))
}

Expand Down

0 comments on commit 5eb4e97

Please sign in to comment.