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.

18 lines
374 B

  1. package ed25519
  2. import (
  3. amino "github.com/tendermint/go-amino"
  4. "github.com/tendermint/tendermint/crypto"
  5. )
  6. var cdc = amino.NewCodec()
  7. func init() {
  8. cdc.RegisterInterface((*crypto.PubKey)(nil), nil)
  9. cdc.RegisterConcrete(PubKey{},
  10. PubKeyAminoName, nil)
  11. cdc.RegisterInterface((*crypto.PrivKey)(nil), nil)
  12. cdc.RegisterConcrete(PrivKey{},
  13. PrivKeyAminoName, nil)
  14. }