Skip to content

Commit

Permalink
refactor: remove hash_witness
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Nov 17, 2023
1 parent f41cb26 commit 2eed4b6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 105 deletions.
4 changes: 3 additions & 1 deletion src/circuit/gadgets/hashes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ use neptune::circuit2_witness::poseidon_hash_allocated_witness;

use crate::field::{FWrap, LurkField};
use crate::hash::HashConst;
use crate::hash_witness::{Digest, WitnessBlock};

pub(crate) type WitnessBlock<F> = Vec<F>;
pub(crate) type Digest<F> = F;

type HashCircuitWitnessCache<F> = HashMap<Vec<FWrap<F>>, (Vec<F>, F)>;

Expand Down
3 changes: 0 additions & 3 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use crate::hash_witness::ConsName;
use crate::store;

use bellpepper_core::SynthesisError;
Expand All @@ -23,8 +22,6 @@ impl From<store::Error> for ProofError {

#[derive(Error, Debug, Clone)]
pub enum ReductionError {
#[error("car_cdr of named cons {0:?} requires a cons or nil.")]
CarCdrType(ConsName),
#[error("Miscellaneous error: {0}")]
Misc(String),
#[error("Lookup error: {0}")]
Expand Down
100 changes: 0 additions & 100 deletions src/hash_witness.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ pub mod eval;
mod expr;
pub mod field;
mod hash;
mod hash_witness;
pub mod lem;
mod num;
mod package;
Expand Down

0 comments on commit 2eed4b6

Please sign in to comment.