Skip to content

jixiaohui

chickspy edited this page Dec 17, 2018 · 13 revisions

问题一:单节点单账户连续redeem错误

step1: Mint   0x200  -  成功
step2: Redeem 0x1ff  -  成功 
step3: Mint   0x1ff  -  失败 
       ''Verifying mint proof unsuccessfully!!!'' 
       Error: Verifying mint proof failed!!!
         at web3.js:3143:20
         at web3.js:6402:15
         at web3.js:5081:36
         at <anonymous>:1:1
step4: Mint   0x1ff  -  失败


1. 方案设计

VNT零知识设计方案

方案设计图

2. 方案实现

实现细节思考

2.1 libsnark模块实现

2.2 ethereum模块实现

2.3 cgo模块实现

3. 方案测试

部分问题

整体测试出的问题

3.1 libsnark模块测试

3.2 整体测试

4. 修改汇总

4.1 libsnark模块修改汇总

4.2 ethereum模块修改汇总

4.3 cgo模块修改汇总

5. 开发技巧

修改并编译web3.js文件

libsnark遇到的大“坑”

FZQA

CGO

MPT trie

transaction 部分修改

简易以太坊测试

Clone this wiki locally