13 lines
355 B
Go
13 lines
355 B
Go
|
package crypto
|
||
|
|
||
|
import (
|
||
|
"github.com/cosmos/cosmos-sdk/crypto/keyring"
|
||
|
tmcrypto "github.com/tendermint/tendermint/crypto"
|
||
|
)
|
||
|
|
||
|
// EthermintKeygenFunc is the key generation function to generate secp256k1 ToECDSA
|
||
|
// from ethereum.
|
||
|
func EthermintKeygenFunc(bz []byte, algo keyring.SigningAlgo) (tmcrypto.PrivKey, error) {
|
||
|
return PrivKeySecp256k1(bz), nil
|
||
|
}
|