2018-01-14 00:31:39 -08:00
|
|
|
package keys
|
|
|
|
|
|
|
|
import (
|
2018-03-12 12:18:30 +04:00
|
|
|
amino "github.com/tendermint/go-amino"
|
|
|
|
crypto "github.com/tendermint/go-crypto"
|
2018-01-14 00:31:39 -08:00
|
|
|
)
|
|
|
|
|
2018-03-12 12:18:30 +04:00
|
|
|
var cdc = amino.NewCodec()
|
2018-01-14 00:31:39 -08:00
|
|
|
|
|
|
|
func init() {
|
2018-03-12 12:18:30 +04:00
|
|
|
crypto.RegisterAmino(cdc)
|
2018-06-10 10:01:41 +02:00
|
|
|
cdc.RegisterInterface((*Info)(nil), nil)
|
|
|
|
cdc.RegisterConcrete(localInfo{}, "crypto/keys/localInfo", nil)
|
|
|
|
cdc.RegisterConcrete(ledgerInfo{}, "crypto/keys/ledgerInfo", nil)
|
|
|
|
cdc.RegisterConcrete(offlineInfo{}, "crypto/keys/offlineInfo", nil)
|
2018-01-14 00:31:39 -08:00
|
|
|
}
|