hd

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 ToECDSA from ethereum.

Types

This section is empty.

Jump to

Keyboard shortcuts

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