tendermint/keys/wire.go

17 lines
422 B
Go
Raw Normal View History

package keys
import (
2018-03-12 12:18:30 +04:00
amino "github.com/tendermint/go-amino"
crypto "github.com/tendermint/go-crypto"
)
2018-03-12 12:18:30 +04:00
var cdc = amino.NewCodec()
func init() {
2018-03-12 12:18:30 +04:00
crypto.RegisterAmino(cdc)
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)
}