Skip to content

Commit

Permalink
fix: no_std support, use prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
whichqua committed Aug 7, 2024
1 parent d68a3a2 commit b1358c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vm/src/hint_processor/builtin_hint_processor/secp/hints.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
use crate::stdlib::{collections::HashMap, ops::Deref};
use crate::stdlib::{
collections::HashMap,
ops::Deref,
ops::{Add, Mul, Rem},
prelude::*,
};

use crate::hint_processor::builtin_hint_processor::hint_utils::{
get_constant_from_var_name, get_integer_from_var_name, get_relocatable_from_var_name,
Expand Down Expand Up @@ -154,7 +159,6 @@ pub fn r1_get_point_from_x(
// """
// return (pow(x, 3, field_prime) + alpha * x + beta) % field_prime
fn y_squared_from_x(x: &BigInt, alpha: &BigInt, beta: &BigInt, field_prime: &BigInt) -> BigInt {
use std::ops::{Add, Mul, Rem};
// Compute x^3 (mod field_prime)
let x_cubed = x.modpow(&BigInt::from(3), field_prime);

Expand Down

0 comments on commit b1358c2

Please sign in to comment.