JacobEberhardt / decentralized-energy-trading

Proof-of-Concept implementation of Privacy-Preserving Netting in Local Energy Grids
MIT License
9 stars 5 forks source link

Unable to Start the Netting Entity (Get Started - STEP 5) #23

Closed botsbuzz closed 4 years ago

botsbuzz commented 4 years ago

The command yarn run-netting-entity -i 60000 fails. Here the terminal log:

yarn run v1.12.3 $ node ./netting-entity/index.js -i 60000 Netting Entity running at http://127.0.0.1:3005/ Utility before Netting: Utility { renewableEnergy: 0, nonRenewableEnergy: 0, households: { '0x0000000000000000000000000000000000000000': { meterDelta: 0, lastUpdate: 1580093881636 } }, transfers: [] } Utility after Netting: Utility { renewableEnergy: 0, nonRenewableEnergy: 0, households: {}, transfers: [] } Computing witness...zokrates compute-witness -a > /dev/null error: The argument '--arguments ...' requires a value but none was supplied

USAGE: zokrates compute-witness --arguments ... --input --output

For more information try --help grep: no such file or directory: witness failed (node:98430) UnhandledPromiseRejectionWarning: Error: zokrates compute-witness failed at Object.generateProof (/Users/stefano/Projects/PHD/BLOCKCHAIN/decentralized-energy-trading/netting-entity/zk-handler.js:47:13) at runZokrates (/Users/stefano/Projects/PHD/BLOCKCHAIN/decentralized-energy-trading/netting-entity/index.js:82:33) at Timeout._onTimeout (/Users/stefano/Projects/PHD/BLOCKCHAIN/decentralized-energy-trading/netting-entity/index.js:124:5) at listOnTimeout (internal/timers.js:531:17) at processTimers (internal/timers.js:475:7) (node:98430) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:98430) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Any help? Thank you for your effort on this awesome project!

Best regards, Stefano