Skip to content

Commit

Permalink
add note about stark parameters that are hardcoded in the EE Script
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasinger committed Aug 1, 2019
1 parent edc7c4f commit 2142acf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/mimc-stark-verifier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ use num_bigint::{BigInt, BigUint};

fn process_block(pre_state_root: types::Bytes32, block_data: &[u8]) -> types::Bytes32 {
let (stark_proof, _) = deserializer::from_bytes(&block_data).expect("couldn't deserialize");

// TODO: package subsequent parameters in the proof itself
const LOG_STEPS: usize = 13;
let mut constants: Vec<BigInt> = Vec::new();
let modulus: BigInt = num_bigint::BigInt::from_str(MODULUS).expect("modulus couldn't be deserialized into bigint");
Expand Down

0 comments on commit 2142acf

Please sign in to comment.