Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenfeizhang committed Sep 26, 2024
1 parent 4ddb734 commit 37334cd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions basefold/src/hash/hasher.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use goldilocks::Goldilocks;
use poseidon::Poseidon;
use sha2::Digest as Sha2Digest;
use sha2::Sha256;
use sha2::Sha512_256;

use std::mem::size_of;
use std::mem::transmute;

#[derive(Debug, Default, PartialEq, Eq, Clone, Copy, )]

use sha2::Digest as Sha2Digest;
use sha2::Sha256;

#[derive(Debug, Default, PartialEq, Eq, Clone, Copy)]
pub struct Digest(pub [u8; OCTOPOS_OUTPUT_BYTES]);

impl Digest {
Expand Down
1 change: 1 addition & 0 deletions basefold/src/hash/tree.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion basefold/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mod hash;
mod pcs;
mod hash;
2 changes: 0 additions & 2 deletions basefold/src/pcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

use arith::Field;



/// This trait defines APIs for polynomial commitment schemes.
/// Note that for our usage of PCS, we do not require the hiding property.
///
Expand Down

0 comments on commit 37334cd

Please sign in to comment.