Skip to content

Commit

Permalink
back to ed25519
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirhemo committed Feb 10, 2024
1 parent 4a0e79b commit c1075a4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/field/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl<F: PrimeField> MachineAir<F> for FieldLTUChip {
}
}

pub const LTU_NB_BITS: usize = 22;
pub const LTU_NB_BITS: usize = 25;

impl<F: Field> BaseAir<F> for FieldLTUChip {
fn width(&self) -> usize {
Expand Down
4 changes: 4 additions & 0 deletions core/src/stark/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ pub struct ProverData<SC: StarkGenericConfig> {
pub preprocessed_data: Option<PcsProverData<SC>>,
}

pub struct PublicParameters<SC: StarkGenericConfig> {
pub preprocessed_commitment: Option<Com<SC>>,
}

pub struct RiscvStark<SC: StarkGenericConfig> {
config: SC,

Expand Down
2 changes: 1 addition & 1 deletion core/src/utils/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pub fn shard_size() -> usize {
let value = match std::env::var("SHARD_SIZE") {
Ok(val) => val.parse().unwrap(),
Err(_) => 1 << 18,
Err(_) => 1 << 20,
};
assert!(value != 0 && (value & (value - 1)) == 0);
value
Expand Down
3 changes: 3 additions & 0 deletions core/src/utils/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ pub fn prove_core(runtime: &mut Runtime) -> crate::stark::Proof<BabyBearBlake3>

// Verify the proof.
let mut challenger = config.challenger();
let time = std::time::Instant::now();
machine.verify(&mut challenger, &proof).unwrap();
let elapsed = time.elapsed().as_millis();
tracing::info!("verification time: {}ms", elapsed);

proof
}
Expand Down

0 comments on commit c1075a4

Please sign in to comment.