mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 23:33:07 +00:00
name
This commit is contained in:
parent
70d7fb1352
commit
4f38c3a731
@ -74,7 +74,7 @@ impl<F: Field> GenerationState<F> {
|
|||||||
"ext_11" => 11,
|
"ext_11" => 11,
|
||||||
_ => panic!("out of bounds")
|
_ => panic!("out of bounds")
|
||||||
};
|
};
|
||||||
field.ext_inv(n, xs)
|
field.inverse_fp12(n, xs)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// MPT data.
|
/// MPT data.
|
||||||
@ -195,7 +195,7 @@ impl EvmField {
|
|||||||
modexp(x, q, n)
|
modexp(x, q, n)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ext_inv(&self, n: usize, xs: Vec<U256>) -> U256 {
|
fn inverse_fp12(&self, n: usize, xs: Vec<U256>) -> U256 {
|
||||||
let offset = 12 - n;
|
let offset = 12 - n;
|
||||||
let vec: Vec<U256> = xs[offset..].to_vec();
|
let vec: Vec<U256> = xs[offset..].to_vec();
|
||||||
let f = fp12_to_array(inv_fp12(vec_to_fp12(vec)));
|
let f = fp12_to_array(inv_fp12(vec_to_fp12(vec)));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user