Socket
Socket
Sign inDemoInstall

eth-dcent-keyring

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-dcent-keyring - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

scripts/util.js

7

index.js

@@ -5,2 +5,3 @@ const { EventEmitter } = require('events')

const DcentConnector = require('dcent-web-connector')
const { getFullPath, getCoinType } = require('./scripts/util')

@@ -29,4 +30,2 @@ const DefaultKeyPathString = `m/44'/60'/0'/0/0`

// this.paths = {}
this.coinType = DcentConnector.coinType.ETHEREUM
this.path = DefaultKeyPathString
this.deserialize(opts)

@@ -40,2 +39,3 @@ DcentConnector.setTimeOutMs(opts.timeOut || DCENT_TIMEOUT)

_accounts: this._accounts,
hdPath: this.hdPath,
// page: this.page,

@@ -51,4 +51,7 @@ // paths: this.paths,

this._accounts = opts._accounts || []
this.hdPath = opts.hdPath || DefaultKeyPathString
// this.page = opts.page || 0
// this.perPage = opts.perPage || 1
this.path = getFullPath(this.hdPath, 0)
this.coinType = getCoinType(this.path)
return Promise.resolve()

@@ -55,0 +58,0 @@ }

{
"name": "eth-dcent-keyring",
"version": "0.1.2",
"version": "0.1.3",
"description": "A MetaMask compatible keyring, for D'CENT hardware wallets",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc