File tree 2 files changed +19
-19
lines changed
2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 1
- const { HDKey } = require ( 'ethereum-cryptography/hdkey' ) ;
2
- const { keccak256 } = require ( 'ethereum-cryptography/keccak' ) ;
3
- const { bytesToHex } = require ( 'ethereum-cryptography/utils' ) ;
4
1
const {
5
2
privateToPublic,
6
3
publicToAddress,
7
4
ecsign,
8
5
arrToBufArr,
9
6
bufferToHex,
10
7
} = require ( '@ethereumjs/util' ) ;
11
- const bip39 = require ( '@metamask/scure-bip39' ) ;
12
- const { wordlist } = require ( '@metamask/scure-bip39/dist/wordlists/english' ) ;
13
8
const {
14
9
concatSig,
15
10
decrypt,
@@ -19,7 +14,12 @@ const {
19
14
signTypedData,
20
15
SignTypedDataVersion,
21
16
} = require ( '@metamask/eth-sig-util' ) ;
17
+ const bip39 = require ( '@metamask/scure-bip39' ) ;
18
+ const { wordlist } = require ( '@metamask/scure-bip39/dist/wordlists/english' ) ;
22
19
const { assertIsHexString, remove0x } = require ( '@metamask/utils' ) ;
20
+ const { HDKey } = require ( 'ethereum-cryptography/hdkey' ) ;
21
+ const { keccak256 } = require ( 'ethereum-cryptography/keccak' ) ;
22
+ const { bytesToHex } = require ( 'ethereum-cryptography/utils' ) ;
23
23
24
24
// Options:
25
25
const hdPathString = `m/44'/60'/0'/0` ;
Original file line number Diff line number Diff line change
1
+ const {
2
+ TransactionFactory,
3
+ Transaction : EthereumTx ,
4
+ } = require ( '@ethereumjs/tx' ) ;
5
+ const {
6
+ isValidAddress,
7
+ bufferToHex,
8
+ toBuffer,
9
+ ecrecover,
10
+ pubToAddress,
11
+ } = require ( '@ethereumjs/util' ) ;
12
+ const oldMMForkBIP39 = require ( '@metamask/bip39' ) ;
13
+ const OldHdKeyring = require ( '@metamask/eth-hd-keyring' ) ;
1
14
const {
2
15
normalize,
3
16
personalSign,
@@ -8,21 +21,8 @@ const {
8
21
encrypt,
9
22
} = require ( '@metamask/eth-sig-util' ) ;
10
23
const { wordlist } = require ( '@metamask/scure-bip39/dist/wordlists/english' ) ;
11
- const oldMMForkBIP39 = require ( '@metamask/bip39' ) ;
12
- const {
13
- isValidAddress,
14
- bufferToHex,
15
- toBuffer,
16
- ecrecover,
17
- pubToAddress,
18
- } = require ( '@ethereumjs/util' ) ;
19
- const {
20
- TransactionFactory,
21
- Transaction : EthereumTx ,
22
- } = require ( '@ethereumjs/tx' ) ;
23
-
24
- const OldHdKeyring = require ( '@metamask/eth-hd-keyring' ) ;
25
24
const { keccak256 } = require ( 'ethereum-cryptography/keccak' ) ;
25
+
26
26
const HdKeyring = require ( '..' ) ;
27
27
28
28
// Sample account:
You can’t perform that action at this time.
0 commit comments