laconicd-deprecated/crypto/codec.go
Federico Kunze 7b164a5aa4
Revert "bump SDK commit (#324)" (#328)
This reverts commit 5614adc933.
2020-06-08 20:33:48 +02:00

25 lines
524 B
Go

package crypto
import (
"github.com/cosmos/cosmos-sdk/codec"
)
var cryptoCodec = codec.New()
const (
// Amino encoding names
PrivKeyAminoName = "crypto/PrivKeySecp256k1"
PubKeyAminoName = "crypto/PubKeySecp256k1"
)
func init() {
RegisterCodec(cryptoCodec)
}
// RegisterCodec registers all the necessary types with amino for the given
// codec.
func RegisterCodec(cdc *codec.Codec) {
cdc.RegisterConcrete(PubKeySecp256k1{}, PubKeyAminoName, nil)
cdc.RegisterConcrete(PrivKeySecp256k1{}, PrivKeyAminoName, nil)
}