hd

package
v0.0.0-...-17765ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EthSecp256k1 defines the ECDSA secp256k1 used on Ethereum
	EthSecp256k1 = keys.SigningAlgo(ethsecp256k1.KeyType)
)

Variables

View Source
var SupportedAlgorithms = []keys.SigningAlgo{EthSecp256k1, keys.Secp256k1}

SupportedAlgorithms defines the list of signing algorithms used on Ethermint:

  • eth_secp256k1 (Ethereum)
  • secp256k1 (Tendermint)

Functions

func DeriveKey

func DeriveKey(mnemonic, bip39Passphrase, hdPath string, algo keys.SigningAlgo) ([]byte, error)

func DeriveSecp256k1

func DeriveSecp256k1(mnemonic, bip39Passphrase, path string) ([]byte, error)

DeriveSecp256k1 derives and returns the eth_secp256k1 private key for the given mnemonic and HD path.

func EthSecp256k1Options

func EthSecp256k1Options() []keys.KeybaseOption

EthSecp256k1Options defines a keys options for the ethereum Secp256k1 curve.

func EthermintKeygenFunc

func EthermintKeygenFunc(bz []byte, algo keys.SigningAlgo) (tmcrypto.PrivKey, error)

EthermintKeygenFunc is the key generation function to generate secp256k1.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL