You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
422 B

7 years ago
7 years ago
7 years ago
  1. package keys
  2. import (
  3. amino "github.com/tendermint/go-amino"
  4. crypto "github.com/tendermint/go-crypto"
  5. )
  6. var cdc = amino.NewCodec()
  7. func init() {
  8. crypto.RegisterAmino(cdc)
  9. cdc.RegisterInterface((*Info)(nil), nil)
  10. cdc.RegisterConcrete(localInfo{}, "crypto/keys/localInfo", nil)
  11. cdc.RegisterConcrete(ledgerInfo{}, "crypto/keys/ledgerInfo", nil)
  12. cdc.RegisterConcrete(offlineInfo{}, "crypto/keys/offlineInfo", nil)
  13. }