Skip to content

Commit 4847569

Browse files
committed
feat: expose required sector update aggregation method
feat: point to latest (unmerged proofs)
1 parent 0146526 commit 4847569

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Cargo.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ bincode = "1.1.2"
1515
blstrs = "0.7"
1616
lazy_static = "1.2"
1717
serde = "1.0.104"
18-
filecoin-proofs-v1 = { package = "filecoin-proofs", version = "~18.1.0", default-features = false }
19-
fr32 = { version = "~11.1.0", default-features = false }
20-
storage-proofs-core = { version = "~18.1.0", default-features = false }
18+
#filecoin-proofs-v1 = { package = "filecoin-proofs", version = "~18.1.0", default-features = false }
19+
#fr32 = { version = "~11.1.0", default-features = false }
20+
#storage-proofs-core = { version = "~18.1.0", default-features = false }
21+
filecoin-proofs-v1 = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "hanabi1224-upgrade-deps", package = "filecoin-proofs", default-features = false }
22+
fr32 = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "hanabi1224-upgrade-deps", default-features = false }
23+
storage-proofs-core = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "hanabi1224-upgrade-deps", default-features = false }
2124

2225
[features]
2326
default = ["opencl", "cuda"]

src/update.rs

+6
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,12 @@ fn get_sector_update_inputs_inner<Tree: 'static + MerkleTreeTrait<Hasher = TreeR
734734
)
735735
}
736736

737+
pub fn get_sector_update_h(registered_proof: RegisteredUpdateProof) -> usize {
738+
let config = registered_proof.as_v1_config();
739+
740+
filecoin_proofs_v1::get_sector_update_h_select_from_porep_config(&config)
741+
}
742+
737743
/// Given a `registered_proof`, an aggregate proof, a list of proofs and a combined and flattened
738744
/// list of sector update public inputs, this method verifies the aggregate empty sector update proof.
739745
///

0 commit comments

Comments
 (0)