github.com/evdatsion/aphelion-dpos-bft@v0.32.1/crypto/multisig/wire.go (about)

     1  package multisig
     2  
     3  import (
     4  	amino "github.com/evdatsion/go-amino"
     5  	"github.com/evdatsion/aphelion-dpos-bft/crypto"
     6  	"github.com/evdatsion/aphelion-dpos-bft/crypto/ed25519"
     7  	"github.com/evdatsion/aphelion-dpos-bft/crypto/secp256k1"
     8  )
     9  
    10  // TODO: Figure out API for others to either add their own pubkey types, or
    11  // to make verify / marshal accept a cdc.
    12  const (
    13  	PubKeyMultisigThresholdAminoRoute = "tendermint/PubKeyMultisigThreshold"
    14  )
    15  
    16  var cdc = amino.NewCodec()
    17  
    18  func init() {
    19  	cdc.RegisterInterface((*crypto.PubKey)(nil), nil)
    20  	cdc.RegisterConcrete(PubKeyMultisigThreshold{},
    21  		PubKeyMultisigThresholdAminoRoute, nil)
    22  	cdc.RegisterConcrete(ed25519.PubKeyEd25519{},
    23  		ed25519.PubKeyAminoName, nil)
    24  	cdc.RegisterConcrete(secp256k1.PubKeySecp256k1{},
    25  		secp256k1.PubKeyAminoName, nil)
    26  }