ethereum

package
v0.0.0-...-c0918f9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMnemonics

func DeleteMnemonics()

Delete Mnemonics

func GenerateMnemonics

func GenerateMnemonics() string

Generate Mnemonics string, saprated by space, default language is EN(english)

func ImportWalletByMnemonics

func ImportWalletByMnemonics(mnemonics string) string

Import Wallet By Mnemonics return newaddress

Types

type KeyStore

type KeyStore struct {
	// contains filtered or unexported fields
}

KeyStore manages a key storage directory on disk.

func NewKeyStore

func NewKeyStore(keydir string, scryptN, scryptP int) *KeyStore

NewKeyStore creates a keystore for the given directory.

func (*KeyStore) DeleteKeystoreByAddress

func (ks *KeyStore) DeleteKeystoreByAddress(address, password string) error

Delete Keystore By Address

func (*KeyStore) ExportKeystore

func (ks *KeyStore) ExportKeystore(address, password string) (string, error)

Export keystore by keystore

func (*KeyStore) ExportPrivateKeyByKeystore

func (ks *KeyStore) ExportPrivateKeyByKeystore(address, password string) (string, error)

Export PrivateKey by keystore

func (*KeyStore) ExportPrivateKeyByMnemonics

func (ks *KeyStore) ExportPrivateKeyByMnemonics()

Export PrivateKey by Mnemonics

func (*KeyStore) ExportkeystoreByMnemonics

func (ks *KeyStore) ExportkeystoreByMnemonics()

Export keystore by Mnemonics

func (*KeyStore) ImportKeystore

func (ks *KeyStore) ImportKeystore(password string, keyjson string) (error, string)

Import Wallet By Keystore //wjq 增加去重判断:keystore.Find()

func (*KeyStore) ImportPrivateKey

func (ks *KeyStore) ImportPrivateKey(password, privateKey string) (error, string)

Import PrivateKey, Save as keystore

func (*KeyStore) UpdateKeystorePassword

func (ks *KeyStore) UpdateKeystorePassword(address, oldpass, newpass string) error

Update Keystore password

Jump to

Keyboard shortcuts

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