20 lines
433 B
Go
20 lines
433 B
Go
package crypto
|
|
|
|
import (
|
|
"github.com/tendermint/go-amino"
|
|
"github.com/tendermint/tendermint/crypto/encoding/amino"
|
|
)
|
|
|
|
var cdc = amino.NewCodec()
|
|
|
|
func init() {
|
|
RegisterAmino(cdc)
|
|
cryptoAmino.RegisterAmino(cdc)
|
|
}
|
|
|
|
// RegisterAmino registers all go-crypto related types in the given (amino) codec.
|
|
func RegisterAmino(cdc *amino.Codec) {
|
|
cdc.RegisterConcrete(PrivKeyLedgerSecp256k1{},
|
|
"tendermint/PrivKeyLedgerSecp256k1", nil)
|
|
}
|