keystore

keystore

Source:

Methods

(static) lock(privatekey, pass) → {object}

Source:
Parameters:
Name Type Description
privatekey string

PrivateKey to encrypt

pass string

Password used to encrypt privateKey

Returns:
Type:
object

Keystore file

Example
keystore.lock()
// returns
//

(static) open(keyfile, pass) → {object}

Source:
Parameters:
Name Type Description
keyfile object

Keystore object in json format

pass string

Password to decrypt Keystore

Returns:
Type:
object

privateKey and address pair from decryption

Example
keystore.open()
// returns
//