Skip to content

Commit

Permalink
Add require('crypto') so generatePrivateKey works
Browse files Browse the repository at this point in the history
  • Loading branch information
iostat authored Oct 19, 2020
1 parent 5fd685a commit 976f38b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Network/Ethereum/Core/Signatures.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const crypto = require('crypto');
const secp256k1 = require('secp256k1');

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

0 comments on commit 976f38b

Please sign in to comment.