This commit is contained in:
Dmitry Vagner 2023-01-13 09:06:51 +04:00
parent 2a2880b7ea
commit ea8cfc95b0
2 changed files with 13 additions and 3 deletions

View File

@ -133,7 +133,12 @@ fn test_power() -> Result<()> {
let stack = make_stack(vec![
vec![ptr],
fp12_to_vec(f),
vec![ptr, out, get_address_from_label("return_fp12_on_stack"), out],
vec![
ptr,
out,
get_address_from_label("return_fp12_on_stack"),
out,
],
]);
let output: Vec<U256> = get_output("test_pow", stack);
@ -155,7 +160,12 @@ fn make_tate_stack(p: Curve, q: TwistedCurve) -> Vec<U256> {
vec![ptr],
p_,
q_,
vec![ptr, out, get_address_from_label("return_fp12_on_stack"), out],
vec![
ptr,
out,
get_address_from_label("return_fp12_on_stack"),
out,
],
])
}

View File

@ -72,7 +72,7 @@ impl<F: Field> GenerationState<F> {
"ext_9" => 9,
"ext_10" => 10,
"ext_11" => 11,
_ => panic!("out of bounds")
_ => panic!("out of bounds"),
};
field.inverse_fp12(n, xs)
}