Package Exports
- dcent-web-connector
- dcent-web-connector/src/index.js
- dcent-web-connector/src/type/dcent-web-type
- dcent-web-connector/src/type/dcent-web-type.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dcent-web-connector) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dcent-web-connector
This is package for connecting WEB and D'CENT biometric wallet.
dcent-web-connector is modules for easy integration of D'CENT into 3rd party services.
User interface is presented in a popup window served from https://bridge.dcentwallet.com/v2.
Installation
Node.js
npm i dcent-web-connectorUsage
// in Node.js
const DcentWebConnector = require('dcent-web-connector')
var result
try{
result = await DcentWebConnector.info()
// If you want to close the popup window.
DcentWebConnector.popupWindowClose()
}catch(e){
result = e
}Preparence
install
D'CENT Bridgeconnect D'CENT device using USB cable
Test
tests/unit/0_mock_testis mockup test.tests/unit/1_bridge_testis test for real D'CENT Device.
Preparence
If you want to test tests/unit/1_bridge_test,
- run test-server
npm run devinstall
D'CENT Bridgeconnect D'CENT device using USB cable
Run
npm run test