Interface: WalletStore

fabric-network. WalletStore

Interface for store implementations that provide backing storage for identities in a Wallet.

Methods


<async> get(label)

Get data associated with a given label.
Parameters:
Name Type Description
label string A label identifying stored data.
Returns:
Stored data as a Buffer if it exists; otherwise undefined.
Type
Promise.<(Buffer|undefined)>

<async> list()

List the labels for all stored data.
Returns:
A list of labels.
Type
Promise.<Array.<string>>

<async> put(label, data)

Put data associated with a given label.
Parameters:
Name Type Description
label string A label identifying stored data.
data Buffer Data to store.
Returns:
Type
Promise.<void>

<async> remove(label)

Remove data associated with a given label.
Parameters:
Name Type Description
label string A label identifying stored data.
Returns:
Type
Promise.<void>