gmnemonic

package
v0.0.0-...-2bcc11b Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBIP32MasterKey

func GenerateBIP32MasterKey(mnemonic, passphrase string) (masterPrivateKey, masterPublicKey string, err error)

GenerateBIP32MasterKey generates BIP32 root/master key with mnemonic and passphrase. mnemonic: mnemonic word list passphrase: salt

func GenerateChildKeyWithPath

func GenerateChildKeyWithPath(mnemonic, passphrase, derivationPath string) (*gecdsa.KeyPair, error)

GenerateChildKeyWithPath generates child key with mnemonic, passphrase and derivation path. The derivationPath specification is defined by BIP32,BIP39,BIP44,BIP49,BIP84.... m / purpose' / coin_type' / account' / change / address_index MEW Ethereum derivation path: m/44'/60'/1'/0/0

func NewRandMnemonic

func NewRandMnemonic(entropy int) (string, error)

NewRandMnemonic generates a string consisting of the mnemonic words for the given entropy. The Mnemonic specification is defined by BIP39. entropy:

 128 bits -> 12 words
	160 bits -> 15 words
	192 bits -> 18 words
	224 bits -> 21 words
	256 bits -> 24 words

Types

This section is empty.

Jump to

Keyboard shortcuts

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