From 80ac8b2fcadfcae6fe8a68af3af49b76b1525560 Mon Sep 17 00:00:00 2001 From: "nebojsa.urosevic" Date: Tue, 9 Jun 2020 22:06:46 +0200 Subject: [PATCH 1/3] Switching to hdkey from js-ethereum-cryptography. --- package.json | 2 +- src/hdkey.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0ec6d56..5f7aec9 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,8 @@ "dependencies": { "aes-js": "^3.1.1", "bs58check": "^2.1.2", + "ethereum-cryptography": "^0.1.3", "ethereumjs-util": "^7.0.2", - "hdkey": "^2.0.1", "randombytes": "^2.0.6", "scrypt-js": "^3.0.1", "utf8": "^3.0.0", diff --git a/src/hdkey.ts b/src/hdkey.ts index 6c6f5d4..d4dfd57 100644 --- a/src/hdkey.ts +++ b/src/hdkey.ts @@ -1,6 +1,6 @@ import Wallet from './index' -const HDKey = require('hdkey') +const { HDKey } = require('ethereum-cryptography/hdkey'); export default class EthereumHDKey { /** From b6b4103f8801b7980714975db3cd257436748b6a Mon Sep 17 00:00:00 2001 From: "nebojsa.urosevic" Date: Wed, 10 Jun 2020 22:57:38 +0200 Subject: [PATCH 2/3] Removes semicolon. --- src/hdkey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdkey.ts b/src/hdkey.ts index d4dfd57..8c7ccfa 100644 --- a/src/hdkey.ts +++ b/src/hdkey.ts @@ -1,6 +1,6 @@ import Wallet from './index' -const { HDKey } = require('ethereum-cryptography/hdkey'); +const { HDKey } = require('ethereum-cryptography/hdkey') export default class EthereumHDKey { /** From c0edad37c90d63be60b49048b19704c67a6e8655 Mon Sep 17 00:00:00 2001 From: "nebojsa.urosevic" Date: Fri, 19 Jun 2020 13:34:39 +0200 Subject: [PATCH 3/3] Update HDKey require to import. --- src/hdkey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdkey.ts b/src/hdkey.ts index 8c7ccfa..295c728 100644 --- a/src/hdkey.ts +++ b/src/hdkey.ts @@ -1,6 +1,6 @@ import Wallet from './index' -const { HDKey } = require('ethereum-cryptography/hdkey') +import { HDKey } from 'ethereum-cryptography/hdkey' export default class EthereumHDKey { /**