Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
whichqua committed Aug 7, 2024
1 parent c382e65 commit c15ec39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vm/src/hint_processor/builtin_hint_processor/secp/hints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ pub fn compute_q_mod_prime(
ap_tracking: &ApTracking,
_constants: &HashMap<String, Felt252>,
) -> Result<(), HintError> {
let secp_p = exec_scopes.get_ref("SECP256R1_P")?;
let val = Uint384::from_var_name("val", vm, ids_data, ap_tracking)?.pack86();
let (q, r) = val.div_mod_floor(&secp_p);
let (q, r) = val.div_mod_floor(&SECP256R1_P);
if !r.is_zero() {
return Err(HintError::SecpVerifyZero(Box::new(val)));
}
Expand Down

0 comments on commit c15ec39

Please sign in to comment.