You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

dcent-web-connector

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dcent-web-connector

D'CENT Web SDK Connector

0.11.3
Source
npm
Version published
Weekly downloads
1.4K
-11.33%
Maintainers
1
Weekly downloads
 
Created
Source

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.

  • Integration

Installation

Node.js

npm i dcent-web-connector

Usage

// 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

Test

  • tests/unit/0_mock_test is mockup test.

  • tests/unit/1_bridge_test is test for real D'CENT Device.

Preparence

If you want to test tests/unit/1_bridge_test,

  • run test-server
npm run dev

Run

npm run test

Keywords

D'CENT

FAQs

Package last updated on 09 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts