keys

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewKey

func AddNewKey(password string)

func ComputeMastersFromSeed

func ComputeMastersFromSeed(seed []byte) (secret [32]byte, chainCode [32]byte)

ComputeMastersFromSeed returns the master public key, master secret, and chain code in hex.

func DerivePrivateKeyForPath

func DerivePrivateKeyForPath(privKeyBytes [32]byte, chainCode [32]byte, path string) ([32]byte, error)

func FromMnemonicSeedAndPassphrase

func FromMnemonicSeedAndPassphrase(mnemonic, passphrase string, index int) (*secp256k1.PrivateKey, *secp256k1.PublicKey)

FromMnemonicSeedAndPassphrase derive form mnemonic and passphrase at index

func ListKeys

func ListKeys(keystoreDir string)

Types

type Dump

type Dump struct {
	PrivateKey, PublicKeyCompressed, PublicKey string
}

func EncodeHex

func EncodeHex(sk *secp256k1.PrivateKey, pk *secp256k1.PublicKey) *Dump

Jump to

Keyboard shortcuts

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