update circomlib

This commit is contained in:
Alexey 2020-04-06 11:58:17 +03:00
parent cfaf325c47
commit c8adb6b200
3 changed files with 18 additions and 3 deletions

View File

@ -156,6 +156,7 @@ async function main() {
contract = new web3.eth.Contract(require('./build/contracts/ETHTornado.json').abi, CONTRACT_ADDRESS)
const account = web3.eth.accounts.privateKeyToAccount('0x' + PRIVATE_KEY)
web3.eth.accounts.wallet.add('0x' + PRIVATE_KEY)
// eslint-disable-next-line require-atomic-updates
web3.eth.defaultAccount = account.address
const note = await deposit()

18
package-lock.json generated
View File

@ -1687,14 +1687,28 @@
}
},
"circomlib": {
"version": "git+https://github.com/tornadocash/circomlib.git#347822604996bf25f659f96ee0f02810a1f71bb0",
"from": "git+https://github.com/tornadocash/circomlib.git#347822604996bf25f659f96ee0f02810a1f71bb0",
"version": "0.0.21",
"resolved": "https://registry.npmjs.org/circomlib/-/circomlib-0.0.21.tgz",
"integrity": "sha512-8WJS4W9sJJbQv8s9vRGq28qJpRKvF9ORUS58x3I8vgfAUGL2INaRjgteksGX/mIyR+Il3w7ido27GA2ZCmZrQw==",
"requires": {
"blake-hash": "^1.1.0",
"blake2b": "^2.1.3",
"circom": "0.0.35",
"snarkjs": "^0.1.20",
"typedarray-to-buffer": "^3.1.5",
"web3": "^1.0.0-beta.55"
},
"dependencies": {
"circom": {
"version": "0.0.35",
"resolved": "https://registry.npmjs.org/circom/-/circom-0.0.35.tgz",
"integrity": "sha512-MWsJPYPH+s9wN2I5abEHUIAyFVsgTCy+UzJh///WnflXfh3c1tlbv8zt1VV+YHHREpyS+WF5ZBr7TujpaVFu5g==",
"requires": {
"big-integer": "^1.6.32",
"optimist": "^0.6.1",
"yargs": "^12.0.2"
}
}
}
},
"cli-cursor": {

View File

@ -37,7 +37,7 @@
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"circom": "0.0.34",
"circomlib": "git+https://github.com/tornadocash/circomlib.git#347822604996bf25f659f96ee0f02810a1f71bb0",
"circomlib": "0.0.21",
"commander": "^4.1.1",
"dotenv": "^8.2.0",
"eslint": "^6.6.0",