This repository was archived by the owner on Oct 30, 2024. It is now read-only.
File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ Note: `getPublicKey()` only returns uncompressed Ethereum-style public keys.
61
61
62
62
Importing various third party wallets is possible through the ` thirdparty ` submodule:
63
63
64
- ` var thirdparty = require('ethereumjs-wallet/thirdparty ')`
64
+ ` const { thirdparty } = require('ethereumjs-wallet')`
65
65
66
66
Constructors:
67
67
@@ -74,7 +74,7 @@ Constructors:
74
74
75
75
To use BIP32 HD wallets, first include the ` hdkey ` submodule:
76
76
77
- ` var hdkey = require('ethereumjs-wallet/hdkey ')`
77
+ ` const { hdkey } = require('ethereumjs-wallet')`
78
78
79
79
Constructors:
80
80
@@ -96,7 +96,7 @@ Instance methods:
96
96
The Wallet can be easily plugged into [ provider-engine] ( https://github.com/metamask/provider-engine ) to provide signing:
97
97
98
98
``` js
99
- const WalletSubprovider = require (' ethereumjs-wallet/provider-engine ' )
99
+ const { WalletSubprovider } = require (' ethereumjs-wallet' )
100
100
101
101
< engine> .addProvider (new WalletSubprovider (< wallet instance> ))
102
102
```
Original file line number Diff line number Diff line change 72
72
"ts-node" : " ^8.3.0" ,
73
73
"tslint" : " ^5.12.0" ,
74
74
"typescript" : " ^3.2.2" ,
75
- "typestrict" : " ^1.0.2"
75
+ "typestrict" : " ^1.0.2" ,
76
+ "web3-provider-engine" : " ^15.0.7"
76
77
}
77
78
}
Original file line number Diff line number Diff line change 1
1
import * as crypto from 'crypto'
2
2
import * as ethUtil from 'ethereumjs-util'
3
3
4
+ export { default as hdkey } from './hdkey'
5
+ export { default as WalletSubprovider } from './provider-engine'
6
+ export { default as thirdparty } from './thirdparty'
7
+
4
8
const bs58check = require ( 'bs58check' )
5
9
const randomBytes = require ( 'randombytes' )
6
10
const scryptsy = require ( '@web3-js/scrypt-shim' )
You can’t perform that action at this time.
0 commit comments