mnemonic

package
v0.0.0-...-f6e252a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToAccount

func ToAccount(mnemonic string) (string, string, error)

ToAccount get private key and public key by using mnemonic.Returns publickey,privatekey,error.

Types

type Account

type Account struct {
	PrivateKey string
	PublicKey  string
	Mnemonic   string
}

Account is the account data including public- and private- key and the corresponding mnemonic.

func GenerateMnemonicByLength

func GenerateMnemonicByLength(length int) (*Account, error)

GenerateMnemonicByLength generate mnemonic and then use mnemonic to generate the private key and its public key.

Jump to

Keyboard shortcuts

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