0.1.0-pre.0 • Published 3 years ago
substrate-signer-provider-plugin-js v0.1.0-pre.0
Subscript Browser Signer Provider
This is a Polywrap plugin for accessing the accounts and signing services provided by a browser with the polkadot-js browser extension installed.
It exposes a minimal interface
getAccounts- List the accounts managed by the pluginsignPayload- Sign a structured extrinsic payloadsignRaw- Sign a string of raw bytes
It is preferable to use signPayload when possible as it allows the extension to display much more useful information to the user about what they are signing.
Developer Setup
After setting up the yarn workspace from the /substrate root run:
yarnBuilding
Build uses the polywrap CLI tool:
yarn buildTesting
Integration tests (plugin with mock browser extension) can be run with:
yarn test0.1.0-pre.0
3 years ago