jackoelv / bellperson

zk-SNARK library
Other
90 stars 92 forks source link

Z 0.14.x 3080 #33

Closed long568 closed 3 years ago

long568 commented 3 years ago

Bellperson 0.14.2 with jackeolv's optimization.

steven-ok commented 3 years ago

Bellperson 0.14.2 with jackeolv's optimization.

在 lotus v1.10.0 版本中 使用,会产生依赖问题,导致无法正常使用

image

不过使用 cargo 本地依赖包,可以解决此问题,将 heim-net 中的 hex 依赖项版本更新为 “^0.4.2”

image
long568 commented 3 years ago

抱歉,忘记说明了,代码中使用了heim读取当前内存用量,其中依赖hex依赖是固定版本,“=0.4.0”,参照楼上说明即可。

he426100 commented 3 years ago

@long568 @Xiang-DangDang 请问为什么会证明不过? bench选32GB到了window post就会失败:ERROR lotus-bench lotus-bench/main.go:415 window post verification failed。 我是拿官方源码,改 extern\filecoin-ffi\rust\Cargo.toml,在底部加上 [patch.crates-io] bellperson = { path = "../../../../bellperson" }

long568 commented 3 years ago

@long568 @Xiang-DangDang 请问为什么会证明不过? bench选32GB到了window post就会失败:ERROR lotus-bench lotus-bench/main.go:415 window post verification failed。 我是拿官方源码,改 extern\filecoin-ffi\rust\Cargo.toml,在底部加上 [patch.crates-io] bellperson = { path = "../../../../bellperson" }

优化的C2不能用来做window / winning post,只能做c2的证明。 miner可以用下面这个链接 https://github.com/long568/bellperson_for_miner.git