win10上跑——实践指南:构建一个零知识证明 DApp [译]demo时发生错误

win10上运行circom circuits/circuit.circom --r1cs命令时, 抛出错误:

>circom circuits/circuit.circom --r1cs --wasm --sym
undefined
ERROR at E:\区块链编码实现\circuits\circuit.circom:13,2-16,3   Sizes in assignment must be the same
(node:17260) UnhandledPromiseRejectionWarning: TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at compiler.then (C:\Users\Lenovo\AppData\Roaming\npm\node_modules\circom\cli.js:160:28)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
(node:17260) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch bl
ock, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:17260) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the N
ode.js process with a non-zero exit code.

circuit.circom中代码跟https://learnblockchain.cn/article/1113一致 node版本:10.16.1

请先 登录 后评论

1 个回答

Tiny熊
  擅长:智能合约,以太坊
请先 登录 后评论
  • 2 关注
  • 0 收藏,3928 浏览
  • 人间失格 提出于 2020-06-18 10:55