update for converting to affine coords
This commit is contained in:
parent
4cef72abda
commit
597384b1e0
|
@ -203,10 +203,7 @@ initial begin
|
|||
out_if.rdy = 0;
|
||||
in_if.val = 0;
|
||||
#(40*CLK_PERIOD);
|
||||
|
||||
print_jb_point(to_affine(g_point));
|
||||
print_jb_point(to_affine(dbl_jb_point(g_point)));
|
||||
|
||||
|
||||
test_0();
|
||||
|
||||
#1us $finish();
|
||||
|
|
|
@ -331,7 +331,7 @@ package bls12_381_pkg;
|
|||
to_affine.z = 1;
|
||||
to_affine.x = fe_mul(p.x, fe_inv(z_));
|
||||
z_ = fe_mul(z_, p.z);
|
||||
to_affine.y = fe_mul(p.x, fe_inv(z_));
|
||||
to_affine.y = fe_mul(p.y, fe_inv(z_));
|
||||
endfunction
|
||||
|
||||
function print_jb_point(jb_point_t p);
|
||||
|
|
Loading…
Reference in New Issue