account

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

package account is related to account operation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Address    string
	PrivateKey string
	PublicKey  string
	Mnemonic   string
}

Account account structure

func CreateAccount

func CreateAccount(strength uint8, language int) (*Account, error)

CreateAccount create an account

func CreateAndSaveAccountToFile

func CreateAndSaveAccountToFile(path, passwd string, strength uint8, language int) (*Account, error)

CreateAndSaveAccountToFile create an account and save to file

func GetAccountFromFile

func GetAccountFromFile(path, passwd string) (*Account, error)

GetAccountFromFile get an account from file

func RetrieveAccount

func RetrieveAccount(mnemonic string, language int) (*Account, error)

RetrieveAccount retrieve account from mnemonic

Jump to

Keyboard shortcuts

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