Module: keyring/localstore

keyring/localstore

The class that deals with storage of the keyring. Currently the only option is to use HTML5 local storage.
Source:

Requires

Methods

<static> load() → {Array.<module:key~Key>}

Load the keyring from HTML5 local storage and initializes this instance.
Source:
Returns:
array of keys retrieved from localstore
Type
Array.<module:key~Key>

<static> store(keys)

Saves the current state of the keyring to HTML5 local storage. The privateKeys array and publicKeys array gets Stringified using JSON
Parameters:
Name Type Description
keys Array.<module:key~Key> array of keys to save in localstore
Source: