keystore

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultKeyStoreDir is the default directory of the keystore
	DefaultKeyStoreDir = ".hmy/keystore"
)

Functions

func GetHmyKeyStore

func GetHmyKeyStore() *keystore.KeyStore

GetHmyKeyStore returns the only keystore of the node

func SetHmyPass

func SetHmyPass(pass string)

SetHmyPass set the passphrase

func SignTx

func SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)

SignTx signs transaction using account key

func Unlock

func Unlock(account accounts.Account)

Unlock unlocks the account using passphrase

Types

This section is empty.

Jump to

Keyboard shortcuts

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