WalletService
is a wrapper for a private key storage mechanism. Note that plasma-core
does not provide a "real" wallet service. plasma-core
only provides a mock wallet for testing. To learn more about what is and isn't included check out Extending plasma-core.
wallet.getAccounts()
Returns any available accounts.
Promise<Array>
: List of addresses in the wallet.
wallet.sign(address, data)
Signs some data with the given address.
address
-string
: Address to sign with.data
-any
: Arbitrary data to sign.
Promise<Object>
: A Signature object.