|
|
@ -18,19 +18,19 @@ func init() { |
|
|
|
func RegisterAmino(cdc *amino.Codec) { |
|
|
|
cdc.RegisterInterface((*PubKey)(nil), nil) |
|
|
|
cdc.RegisterConcrete(PubKeyEd25519{}, |
|
|
|
"com.tendermint.amino.PubKeyEd25519", nil) |
|
|
|
"tendermint/PubKeyEd25519", nil) |
|
|
|
cdc.RegisterConcrete(PubKeySecp256k1{}, |
|
|
|
"com.tendermint.amino.PubKeySecp256k1", nil) |
|
|
|
"tendermint/PubKeySecp256k1", nil) |
|
|
|
|
|
|
|
cdc.RegisterInterface((*PrivKey)(nil), nil) |
|
|
|
cdc.RegisterConcrete(PrivKeyEd25519{}, |
|
|
|
"com.tendermint.amino.PrivKeyEd25519", nil) |
|
|
|
"tendermint/PrivKeyEd25519", nil) |
|
|
|
cdc.RegisterConcrete(PrivKeySecp256k1{}, |
|
|
|
"com.tendermint.amino.PrivKeySecp256k1", nil) |
|
|
|
"tendermint/PrivKeySecp256k1", nil) |
|
|
|
|
|
|
|
cdc.RegisterInterface((*Signature)(nil), nil) |
|
|
|
cdc.RegisterConcrete(SignatureEd25519{}, |
|
|
|
"com.tendermint.amino.SignatureKeyEd25519", nil) |
|
|
|
"tendermint/SignatureKeyEd25519", nil) |
|
|
|
cdc.RegisterConcrete(SignatureSecp256k1{}, |
|
|
|
"com.tendermint.amino.SignatureKeySecp256k1", nil) |
|
|
|
"tendermint/SignatureKeySecp256k1", nil) |
|
|
|
} |