Skip to content

Commit 976f38b

Browse files
authored
Add require('crypto') so generatePrivateKey works
1 parent 5fd685a commit 976f38b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Network/Ethereum/Core/Signatures.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const crypto = require('crypto');
12
const secp256k1 = require('secp256k1');
23

34
const apiVer = ((typeof secp256k1.ecdsaSign === 'function') && (typeof secp256k1.ecdsaRecover === 'function')) ? 4 : 3;

0 commit comments

Comments
 (0)