Closed
Description
opened on Jul 29, 2020
As a temporary measure in #5682, we decided to use amino-encoded bytes for the BaseAccount
pub_key
in protobuf. We can't cut a release without fixing this.
We have a cosmos.crypto.PublicKey
proto type which we can use on BaseAccount
.
The biggest glitch is that the AccountI
interface has Get/SetPubKey
methods which take crypto.PubKey
interfaces.
I see two solutions:
- change
AccountI.Get/SetPubKey
to usecosmos.crypto.PublicKey
proto type and then usePublicKeyCodec
wherever a conversion tocrypto.PubKey
is needed - find some magic way to cache
crypto.PubKey
on theBaseAccount
struct (maybe with a hidden field)
My preference is to go with approach 1. Thoughts? @alexanderbez ?
Activity