github.com/cosmos/cosmos-sdk@v0.50.1/crypto/keyring/codec.go (about)

     1  package keyring
     2  
     3  import (
     4  	"github.com/cosmos/cosmos-sdk/codec"
     5  	"github.com/cosmos/cosmos-sdk/codec/legacy"
     6  	"github.com/cosmos/cosmos-sdk/crypto/hd"
     7  )
     8  
     9  func init() {
    10  	RegisterLegacyAminoCodec(legacy.Cdc)
    11  }
    12  
    13  // RegisterLegacyAminoCodec registers concrete types and interfaces on the given codec.
    14  func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
    15  	cdc.RegisterInterface((*LegacyInfo)(nil), nil)
    16  	cdc.RegisterConcrete(hd.BIP44Params{}, "crypto/keys/hd/BIP44Params", nil)
    17  	cdc.RegisterConcrete(legacyLocalInfo{}, "crypto/keys/localInfo", nil)
    18  	cdc.RegisterConcrete(legacyLedgerInfo{}, "crypto/keys/ledgerInfo", nil)
    19  	cdc.RegisterConcrete(legacyOfflineInfo{}, "crypto/keys/offlineInfo", nil)
    20  	cdc.RegisterConcrete(LegacyMultiInfo{}, "crypto/keys/multiInfo", nil)
    21  }