Skip to content

Commit

Permalink
Fix argument order for blst_miller_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
tdammers authored and iquerejeta committed Nov 29, 2022
1 parent 3a1219f commit 8404d3e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -601,7 +601,7 @@ foreign import ccall "blst_fp12_finalverify" c_blst_fp12_finalverify :: PTPtr ->

---- Pairing

foreign import ccall "blst_miller_loop" c_blst_miller_loop :: PTPtr -> Affine1Ptr -> Affine2Ptr -> IO ()
foreign import ccall "blst_miller_loop" c_blst_miller_loop :: PTPtr -> Affine2Ptr -> Affine1Ptr -> IO ()

---- Raw BLST error constants

Expand Down Expand Up @@ -867,7 +867,7 @@ pairing p1 p2 =
withAffine (toAffine p1) $ \ap1 ->
withAffine (toAffine p2) $ \ap2 ->
withNewPT' $ \ppt ->
c_blst_miller_loop ppt ap1 ap2
c_blst_miller_loop ppt ap2 ap1
else
Left BLST_POINT_NOT_IN_GROUP

Expand Down

0 comments on commit 8404d3e

Please sign in to comment.