Class: Wallets

fabric-network. Wallets

Factory for creating wallets backed by default store implementations.

new Wallets()

Methods


<async, static> newCouchDBWallet(config [, dbName])

Create a wallet backed by a CouchDB database.
Parameters:
Name Type Argument Default Description
config string | nano.Configuration URL string or configuration for a CouchDB server.
dbName string <optional>
wallet Name of a database hosted on the CouchDB server.
Returns:
A wallet.
Type
Promise.<module:fabric-network.Wallet>

<async, static> newFileSystemWallet(directory)

Create a wallet backed by the provided file system directory.
Parameters:
Name Type Description
directory string A directory path.
Returns:
A wallet.
Type
Promise.<module:fabric-network.Wallet>

<async, static> newInMemoryWallet()

Create a wallet backed by an in-memory (non-persistent) store. Each wallet instance created will have its own private in-memory store.
Returns:
A wallet.
Type
Promise.<module:fabric-network.Wallet>