Skip to content

Commit

Permalink
feat: expose required sector update aggregation method
Browse files Browse the repository at this point in the history
feat: point to latest (unmerged proofs)
  • Loading branch information
cryptonemo committed Jan 7, 2025
1 parent 0146526 commit 4847569
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ bincode = "1.1.2"
blstrs = "0.7"
lazy_static = "1.2"
serde = "1.0.104"
filecoin-proofs-v1 = { package = "filecoin-proofs", version = "~18.1.0", default-features = false }
fr32 = { version = "~11.1.0", default-features = false }
storage-proofs-core = { version = "~18.1.0", default-features = false }
#filecoin-proofs-v1 = { package = "filecoin-proofs", version = "~18.1.0", default-features = false }
#fr32 = { version = "~11.1.0", default-features = false }
#storage-proofs-core = { version = "~18.1.0", default-features = false }
filecoin-proofs-v1 = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "hanabi1224-upgrade-deps", package = "filecoin-proofs", default-features = false }
fr32 = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "hanabi1224-upgrade-deps", default-features = false }
storage-proofs-core = { git = "https://github.com/filecoin-project/rust-fil-proofs", branch = "hanabi1224-upgrade-deps", default-features = false }

[features]
default = ["opencl", "cuda"]
Expand Down
6 changes: 6 additions & 0 deletions src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,12 @@ fn get_sector_update_inputs_inner<Tree: 'static + MerkleTreeTrait<Hasher = TreeR
)
}

pub fn get_sector_update_h(registered_proof: RegisteredUpdateProof) -> usize {
let config = registered_proof.as_v1_config();

filecoin_proofs_v1::get_sector_update_h_select_from_porep_config(&config)
}

/// Given a `registered_proof`, an aggregate proof, a list of proofs and a combined and flattened
/// list of sector update public inputs, this method verifies the aggregate empty sector update proof.
///
Expand Down

0 comments on commit 4847569

Please sign in to comment.