2018-03-02 01:24:07 -08:00
|
|
|
package wire
|
|
|
|
|
|
|
|
import (
|
2018-04-06 16:20:14 -07:00
|
|
|
"github.com/tendermint/go-amino"
|
2018-04-06 17:25:08 -07:00
|
|
|
"github.com/tendermint/go-crypto"
|
2018-03-02 01:24:07 -08:00
|
|
|
)
|
|
|
|
|
2018-04-06 16:20:14 -07:00
|
|
|
type Codec = amino.Codec
|
2018-03-02 01:24:07 -08:00
|
|
|
|
|
|
|
func NewCodec() *Codec {
|
2018-04-06 16:20:14 -07:00
|
|
|
cdc := amino.NewCodec()
|
|
|
|
return cdc
|
2018-03-02 01:24:07 -08:00
|
|
|
}
|
2018-04-06 17:25:08 -07:00
|
|
|
|
|
|
|
func RegisterCrypto(cdc *Codec) {
|
|
|
|
crypto.RegisterAmino(cdc)
|
|
|
|
}
|