github.com/Finschia/finschia-sdk@v0.48.1/crypto/keyring/codec.go (about)

     1  package keyring
     2  
     3  import (
     4  	"github.com/Finschia/finschia-sdk/codec"
     5  	"github.com/Finschia/finschia-sdk/codec/legacy"
     6  	"github.com/Finschia/finschia-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((*Info)(nil), nil)
    16  	cdc.RegisterConcrete(hd.BIP44Params{}, "crypto/keys/hd/BIP44Params", nil)
    17  	cdc.RegisterConcrete(localInfo{}, "crypto/keys/localInfo", nil)
    18  	cdc.RegisterConcrete(ledgerInfo{}, "crypto/keys/ledgerInfo", nil)
    19  	cdc.RegisterConcrete(offlineInfo{}, "crypto/keys/offlineInfo", nil)
    20  	cdc.RegisterConcrete(multiInfo{}, "crypto/keys/multiInfo", nil)
    21  }