sec-bit / zkPoD-node

zkPoD: A decentralized system for perfect fair data exchange
GNU General Public License v3.0
204 stars 38 forks source link

Fail to run zkPod-node #15

Open colortigerhu opened 5 years ago

colortigerhu commented 5 years ago

james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ pwd /Users/james/workspace/code/zkPod/zkPoD-node james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ ls A api.go connection.go file.go keystore plain_atomic_swap_vc.go table_atomic_swap.go test.txt B basic.json const.go go.mod logger.go plain_complaint.go table_atomic_swap_vc.go zkPoD-node LICENSE basic.json.old contract.go go.sum main.go plain_ot_complaint.go table_complaint.go zkPoDExchange.go Makefile bin db.go img net pod.db table_ot_complaint.go zkPodParam README.md buyer_tx.go ecc_pub.bin init.go p2p.go pod_publish table_ot_vrf_query.go README.zh.md cmd.go examples init.json plain_atomic_swap.go seller_tx.go table_vrf_query.go james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ ls bin/pod_publish bin/pod_publish james-mac:zkPoD-node james$ ls ecc_pub.bin/ atomic_swap_vc.pk atomic_swap_vc.vk james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ cat basic.json {"init_key_path":"./ecc_pub.bin","publish_bin_path":"./bin/pod_publish","contract_addr":"0x6BB3240C7a0850E99aEab96e210cbbD8b7B609D0","B_dir":"./B","A_dir":"./A","keystore_file":"./keystore","net_ip":"localhost:4321","port":"1234"} james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ cat init.json { "mode": "plain", "sub_mode": ["atomic_swap", "complaint"], "column": "64", "unit_price": 200, "description": "ALICE’S ADVENTURES IN WONDERLAND\nLewis Carroll\nTHE MILLENNIUM FULCRUM EDITION 3.0\n", "file_path": "./test.txt" }james-mac:zkPoD-node james$

colortigerhu commented 5 years ago

[INFO ] 2019-10-08 16:0:10 InitPublishDataAPIHandler> start to init data for publishing... [DEBUG] 2019-10-08 16:0:10 InitPublishDataAPIHandler> parameter verified. mode=plain, subMode=[atomic_swap complaint], column=64, keys=[] [DEBUG] 2019-10-08 16:0:10 InitPublishDataAPIHandler> savePublishRawFile> success to create dictionary. dir=./A/publish/1570521610547544000 [DEBUG] 2019-10-08 16:0:10 InitPublishDataAPIHandler> save raw file file...file dictoinary=./A/publish/1570521610547544000 [WARN ] 2019-10-08 16:0:15 InitPublishDataAPIHandler> failed to generate publish data. err=publish execution error! exit status 255, init mcl in main ==> LoadInternal <== LoadInternal tick: 0 ms ==> Create <== Create tick: 4554 ms ==> SaveInternal <== SaveInternal tick: 0 ms

colortigerhu commented 5 years ago

below command run will lead above faiture:

zkPoD-lib/pod_setup/pod_setup -o ecc_pub.bin mv ecc_pub.bin zkPoD-node

colortigerhu commented 5 years ago

james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ ./bin/pod_publish -m plain -f ./A/publish/1570522806002270000/test.txt -o ./A/publish/1570522806002270000 -c 64 init mcl in main ==> LoadInternal <== LoadInternal tick: 0 ms ==> Create <== Create tick: 4495 ms ==> SaveInternal <== SaveInternal tick: 0 ms Create file failed Save ecc pub file./ecc_pub.bin failed. Open or create ecc pub file ./ecc_pub.bin failed james-mac:zkPoD-node james$ ls A api.go connection.go file.go keystore plain_atomic_swap_vc.go table_atomic_swap.go test.txt B basic.json const.go go.mod logger.go plain_complaint.go table_atomic_swap_vc.go zkPoD-node LICENSE basic.json.old contract.go go.sum main.go plain_ot_complaint.go table_complaint.go zkPoDExchange.go Makefile bin db.go img net pod.db table_ot_complaint.go zkPodParam README.md buyer_tx.go ecc_pub.bin init.go p2p.go pod_publish table_ot_vrf_query.go README.zh.md cmd.go examples init.json plain_atomic_swap.go seller_tx.go table_vrf_query.go james-mac:zkPoD-node james$ rm ./ecc_pub.bin rm: ./ecc_pub.bin: is a directory james-mac:zkPoD-node james$ rm -fr ./ecc_pub.bin james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ ./bin/pod_publish -m plain -f ./A/publish/1570522806002270000/test.txt -o ./A/publish/1570522806002270000 -c 64 init mcl in main ==> LoadInternal <== LoadInternal tick: 0 ms ==> Create <== Create tick: 4545 ms ==> SaveInternal <== SaveInternal tick: 404 ms Create ecc pub file success. ==> LoadInternal <== LoadInternal tick: 224 ms ==> SaveMatrix <== SaveMatrix tick: 0 ms ==> SaveSigma <== SaveSigma tick: 0 ms file size: 173595 n: 88, s: 65 publish success. james-mac:zkPoD-node james$ ./bin/pod_publish -m plain -f ./A/publish/1570522806002270000/test.txt -o ./A/publish/1570522806002270000 -c 64 init mcl in main ==> LoadInternal <== LoadInternal tick: 242 ms ==> SaveMatrix <== SaveMatrix tick: 0 ms ==> SaveSigma <== SaveSigma tick: 0 ms file size: 173595 n: 88, s: 65 publish success. james-mac:zkPoD-node james$ james-mac:zkPoD-node james$ ls ecc_pub.bin ecc_pub.bin james-mac:zkPoD-node james$ pwd /Users/james/workspace/code/zkPod/zkPoD-node james-mac:zkPoD-node james$ ls ecc_pub.bin/ ls: ecc_pub.bin/: Not a directory