2018-06-28 17:54:47 -07:00
|
|
|
package keys
|
|
|
|
|
|
|
|
import (
|
|
|
|
amino "github.com/tendermint/go-amino"
|
2018-07-25 13:43:37 -07:00
|
|
|
"github.com/tendermint/tendermint/crypto/encoding/amino"
|
2018-12-10 06:27:25 -08:00
|
|
|
|
|
|
|
ccrypto "github.com/cosmos/cosmos-sdk/crypto"
|
2018-06-28 17:54:47 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
var cdc = amino.NewCodec()
|
|
|
|
|
|
|
|
func init() {
|
2018-07-25 13:43:37 -07:00
|
|
|
cryptoAmino.RegisterAmino(cdc)
|
2018-06-28 17:54:47 -07:00
|
|
|
cdc.RegisterInterface((*Info)(nil), nil)
|
|
|
|
cdc.RegisterConcrete(ccrypto.PrivKeyLedgerSecp256k1{},
|
|
|
|
"tendermint/PrivKeyLedgerSecp256k1", nil)
|
|
|
|
cdc.RegisterConcrete(localInfo{}, "crypto/keys/localInfo", nil)
|
|
|
|
cdc.RegisterConcrete(ledgerInfo{}, "crypto/keys/ledgerInfo", nil)
|
|
|
|
cdc.RegisterConcrete(offlineInfo{}, "crypto/keys/offlineInfo", nil)
|
|
|
|
}
|