Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarttimwhite committed Oct 22, 2024
1 parent 4160e78 commit 059b901
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions crates/proof-of-sql/src/utils/parquet_to_commitment_blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,30 +412,6 @@ mod tests {
from_bytes(&bytes).unwrap()
}

// fn calculate_dynamic_dory_commitment(
// record_batch: &RecordBatch,
// ) -> TableCommitment<DynamicDoryCommitment> {
// let setup_seed = "spaceandtime".to_string();
// let mut rng = {
// // Convert the seed string to bytes and create a seeded RNG
// let seed_bytes = setup_seed
// .bytes()
// .chain(std::iter::repeat(0u8))
// .take(32)
// .collect::<Vec<_>>()
// .try_into()
// .expect("collection is guaranteed to contain 32 elements");
// ChaCha20Rng::from_seed(seed_bytes) // Seed ChaChaRng
// };
// let public_parameters = PublicParameters::rand(4, &mut rng);
// let prover_setup = ProverSetup::from(&public_parameters);
// TableCommitment::<DynamicDoryCommitment>::try_from_record_batch(
// record_batch,
// &&prover_setup,
// )
// .unwrap()
// }

fn delete_file_if_exists(path: &str) {
if Path::new(path).exists() {
fs::remove_file(path).unwrap();
Expand Down

0 comments on commit 059b901

Please sign in to comment.