Skip to content

Commit d2b39cc

Browse files
feat: implement and switch to Rational PoSt
BREAKING API CHANGES: - filecoin-proofs: generate_post - filecoin-proofs: verify_post Closes #497
1 parent 7b7bf92 commit d2b39cc

30 files changed

+1463
-3140
lines changed

fil-proofs-tooling/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ glob = "0.3"
2121
human-size = "0.4"
2222
prettytable-rs = "0.8"
2323
regex = "1.1.6"
24-
prometheus = { version = "0.6.1", features = ["push"] }
2524
commandspec = "0.12.2"
2625
bellperson = "0.2.0"
2726
chrono = { version = "0.4.7", features = ["serde"] }

fil-proofs-tooling/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This crate contains the following binaries
44

55
- `benchy` - Can be used to capture ZigZag performance metrics
6-
- `micro` - Runs the micro benchmarks written with criterion, parses the output and pushes the information into prometheus.
6+
- `micro` - Runs the micro benchmarks written with criterion, parses the output.
77

88
## `benchy`
99

@@ -106,8 +106,6 @@ benchy-remote.sh script:
106106
All arguments passed to `micro` will be passed to `cargo bench --all <your arguments> -- --verbose --color never`.
107107
Except for the following
108108

109-
- `--push-prometheus`: If set triggers the code to push to a prometheus gateway, expected to listen on `127.0.0.1:9091`.
110-
111109
### Example
112110

113111
```sh

filecoin-proofs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ clap = "2"
3535
log = "0.4.7"
3636
pretty_env_logger = "0.3.0"
3737
env_proxy = "0.3"
38-
array-macro = "1.0.4"
3938
os_type = "2.2.0"
4039
flate2 = { version = "1.0.9", features = ["rust_backend"]}
4140
tar = "0.4.26"
41+
rayon = "1.1.0"
4242

4343
[dependencies.reqwest]
4444
version = "0.9"

filecoin-proofs/examples/beacon-post.rs

Lines changed: 0 additions & 214 deletions
This file was deleted.

filecoin-proofs/parameters.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
{
2-
"v11-vdf-post-6142c5095dcab8adf8698aaea24eac78035e3fefe6503b3e2f80758e4c948639.params": {
3-
"cid": "QmYS9NmkfVtZCtQPF18uQBeWfajF5YRKKkDPXpVR6pzzP4",
4-
"digest": "43008a8c945076a08aa2e7c4785241de",
2+
"v12-proof-of-spacetime-rational-ba14a058a9dea194f68596f8ecf6537074f038a15c8d1a8550e10e31d4728912.params": {
3+
"cid": "QmZBvF2F9wTYKLBxWSCQKe34D3M7vkNNc7ou8mxnNhZkZc",
4+
"digest": "5d854e0ecfbd12cb7fa1247a6e6a0315",
55
"sector_size": 1024
66
},
7-
"v11-vdf-post-6142c5095dcab8adf8698aaea24eac78035e3fefe6503b3e2f80758e4c948639.vk": {
8-
"cid": "QmTXenYSVvEz2yEJ1deCobfQBVgykkigBuvWJCzTM5tmC2",
9-
"digest": "73b49d9cf0ba983b3e861da0e0ee2e2a",
7+
"v12-proof-of-spacetime-rational-ba14a058a9dea194f68596f8ecf6537074f038a15c8d1a8550e10e31d4728912.vk": {
8+
"cid": "QmZfdHrnk2oN3Gx7hhjpRGXu8qY6FcqLjpHQ6jt1BBDg5R",
9+
"digest": "aca566faa466f05fb9d622bec39e4b6d",
1010
"sector_size": 1024
1111
},
12-
"v11-vdf-post-71ca99ebb6212e45b2affa16eb6e1f671c37986e84ee8b9edbf924ab45b5fdfe.params": {
13-
"cid": "Qmc3R5xmapcSGKGR9zRC2fyPo3QuAuChtsKwswE6NZ6QMQ",
14-
"digest": "8091b735d254982b0b62e712bab82139",
12+
"v12-proof-of-spacetime-rational-c2ae2b440e693ee69fd6da9e85c4294c5c70c1a46d5785ca5f2a676d6cd4c8de.params": {
13+
"cid": "QmYdGGwQXpaBGTVWXqMFVXUP2CZhtsV29jxPkRm54ArAdT",
14+
"digest": "eb2d3c4cb7b32c87ead5326bcbd495f3",
1515
"sector_size": 268435456
1616
},
17-
"v11-vdf-post-71ca99ebb6212e45b2affa16eb6e1f671c37986e84ee8b9edbf924ab45b5fdfe.vk": {
18-
"cid": "QmeD4mdJFPjsWouBPPwvm6iVFYG8bpqNYetd2Ux7PoZawz",
19-
"digest": "32784464acc85a662ea16ecf5aba931d",
17+
"v12-proof-of-spacetime-rational-c2ae2b440e693ee69fd6da9e85c4294c5c70c1a46d5785ca5f2a676d6cd4c8de.vk": {
18+
"cid": "QmeTtWQ2hCUq34BpHTy21jJqVqHbPJdNhQRqW4SF4ZNA7v",
19+
"digest": "c83eca165ba94233861227578d658a22",
2020
"sector_size": 268435456
2121
},
22-
"v11-zigzag-proof-of-replication-5efcf852a15bd74808bc65d6f2df146de817baea96c96e3b752e6a3349957644.params": {
22+
"v12-zigzag-proof-of-replication-5efcf852a15bd74808bc65d6f2df146de817baea96c96e3b752e6a3349957644.params": {
2323
"cid": "QmNSuxq15JPFCTehxVpgJydNZ79rpLoNwnLzQMGA9EziXg",
2424
"digest": "818cd9cc2e0e47210a05bd073847ab5a",
2525
"sector_size": 268435456
2626
},
27-
"v11-zigzag-proof-of-replication-5efcf852a15bd74808bc65d6f2df146de817baea96c96e3b752e6a3349957644.vk": {
27+
"v12-zigzag-proof-of-replication-5efcf852a15bd74808bc65d6f2df146de817baea96c96e3b752e6a3349957644.vk": {
2828
"cid": "Qmbc8LcydZXsVqQrkNMeLEu31Vxi1VigQGJ2ehytxWPALH",
2929
"digest": "a6636e2ee1a176161e022296bc045e79",
3030
"sector_size": 268435456
3131
},
32-
"v11-zigzag-proof-of-replication-a09b5cf44f640589b1b02cf823fa28269850342bcefa4878189b9b5c9ec4d2bb.params": {
32+
"v12-zigzag-proof-of-replication-a09b5cf44f640589b1b02cf823fa28269850342bcefa4878189b9b5c9ec4d2bb.params": {
3333
"cid": "QmTfhTnkFvbpFfw8UydFdnPCDfxgAxEcw4fRdGsELpcFnh",
3434
"digest": "906b6c0c9dc5bb581d9641c11b54e197",
3535
"sector_size": 1024
3636
},
37-
"v11-zigzag-proof-of-replication-a09b5cf44f640589b1b02cf823fa28269850342bcefa4878189b9b5c9ec4d2bb.vk": {
37+
"v12-zigzag-proof-of-replication-a09b5cf44f640589b1b02cf823fa28269850342bcefa4878189b9b5c9ec4d2bb.vk": {
3838
"cid": "QmRDcUxfpPY9a1vR3T4vRgxHtWHyy9m3xuMQtj8P749r4e",
3939
"digest": "3632776cd23e376694c625390b9a73ea",
4040
"sector_size": 1024

0 commit comments

Comments
 (0)