diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2024-09-14 18:23:28 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2024-09-29 09:39:02 +0200 |
| commit | 2efcbfd67799537be7ebdb2d18495076b9ddcacc (patch) | |
| tree | 5c85f668ed08b9dac9d8c7c2eff4af6ea8e8d1c7 /test/test_fp12.ml | |
| parent | 97a35bd8aefecc502de05a7d040b8d7bbda15216 (diff) | |
Implemented Elliptic Curve Operations
This includes operations for all 3 curves relevant to PLONK.
Diffstat (limited to 'test/test_fp12.ml')
| -rw-r--r-- | test/test_fp12.ml | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/test/test_fp12.ml b/test/test_fp12.ml index 2918018..e88b96b 100644 --- a/test/test_fp12.ml +++ b/test/test_fp12.ml @@ -37,34 +37,12 @@ let test_strconv () = in Alcotest.(check string) "equals" - "(2916030131112425910736728833294966280877348127497066861802260324152389116184665963977658957216391196180579077474202, \ - 1519862437235303187188961557435602349317662069421862747209181232217613587604953767705018210876984976062405524645622, \ - 296645580800680675009621881920997395213790816778008448436221746142308017377314413585580661715141084537701545554168, \ - 1981557211956889095227901276564616817712990386953892187870249475222326830471202728108345999615285753394142232132312, \ - 833361220704354884434302513333442088322974161003072803264824357410372777926316698647896734024111451895881451892941, \ - 2711755601893075919832148493574676626069798533950866837790424822014009949251210477322950287178868808802513013310092, \ - 371213053563436252645940045458060653872935108881239949520789125958735351804960527435344045802826289621926519389359, \ - 504151947300534428538773393472324784669777301827817398729819216017440270289061739490404467920801765270857364809526, \ - 3563993255617322600585910657699631528415397776575273554957383151855598758349437838089591153976674032653746780002367, \ - 1396274584009387615887886835913193518070291009462177144922465656390031512961216497255957290669783178741610222179461, \ - 1791645971276582626341761994075837917473870474245353102664092427839586202945803660199735855654457386807016012521755, \ - 171029163675750402723404477137748189341455451129895111449568566066650114642345344282976819697533131681587059212847)" + "(2916030131112425910736728833294966280877348127497066861802260324152389116184665963977658957216391196180579077474202,1519862437235303187188961557435602349317662069421862747209181232217613587604953767705018210876984976062405524645622,296645580800680675009621881920997395213790816778008448436221746142308017377314413585580661715141084537701545554168,1981557211956889095227901276564616817712990386953892187870249475222326830471202728108345999615285753394142232132312,833361220704354884434302513333442088322974161003072803264824357410372777926316698647896734024111451895881451892941,2711755601893075919832148493574676626069798533950866837790424822014009949251210477322950287178868808802513013310092,371213053563436252645940045458060653872935108881239949520789125958735351804960527435344045802826289621926519389359,504151947300534428538773393472324784669777301827817398729819216017440270289061739490404467920801765270857364809526,3563993255617322600585910657699631528415397776575273554957383151855598758349437838089591153976674032653746780002367,1396274584009387615887886835913193518070291009462177144922465656390031512961216497255957290669783178741610222179461,1791645971276582626341761994075837917473870474245353102664092427839586202945803660199735855654457386807016012521755,171029163675750402723404477137748189341455451129895111449568566066650114642345344282976819697533131681587059212847)" (Fp12.to_string a); Alcotest.(check fp12) "equals" a (Fp12.of_string - "(2916030131112425910736728833294966280877348127497066861802260324152389116184665963977658957216391196180579077474202, \ - 1519862437235303187188961557435602349317662069421862747209181232217613587604953767705018210876984976062405524645622, \ - 296645580800680675009621881920997395213790816778008448436221746142308017377314413585580661715141084537701545554168, \ - 1981557211956889095227901276564616817712990386953892187870249475222326830471202728108345999615285753394142232132312, \ - 833361220704354884434302513333442088322974161003072803264824357410372777926316698647896734024111451895881451892941, \ - 2711755601893075919832148493574676626069798533950866837790424822014009949251210477322950287178868808802513013310092, \ - 371213053563436252645940045458060653872935108881239949520789125958735351804960527435344045802826289621926519389359, \ - 504151947300534428538773393472324784669777301827817398729819216017440270289061739490404467920801765270857364809526, \ - 3563993255617322600585910657699631528415397776575273554957383151855598758349437838089591153976674032653746780002367, \ - 1396274584009387615887886835913193518070291009462177144922465656390031512961216497255957290669783178741610222179461, \ - 1791645971276582626341761994075837917473870474245353102664092427839586202945803660199735855654457386807016012521755, \ - 171029163675750402723404477137748189341455451129895111449568566066650114642345344282976819697533131681587059212847)") + "(2916030131112425910736728833294966280877348127497066861802260324152389116184665963977658957216391196180579077474202,1519862437235303187188961557435602349317662069421862747209181232217613587604953767705018210876984976062405524645622,296645580800680675009621881920997395213790816778008448436221746142308017377314413585580661715141084537701545554168,1981557211956889095227901276564616817712990386953892187870249475222326830471202728108345999615285753394142232132312,833361220704354884434302513333442088322974161003072803264824357410372777926316698647896734024111451895881451892941,2711755601893075919832148493574676626069798533950866837790424822014009949251210477322950287178868808802513013310092,371213053563436252645940045458060653872935108881239949520789125958735351804960527435344045802826289621926519389359,504151947300534428538773393472324784669777301827817398729819216017440270289061739490404467920801765270857364809526,3563993255617322600585910657699631528415397776575273554957383151855598758349437838089591153976674032653746780002367,1396274584009387615887886835913193518070291009462177144922465656390031512961216497255957290669783178741610222179461,1791645971276582626341761994075837917473870474245353102664092427839586202945803660199735855654457386807016012521755,171029163675750402723404477137748189341455451129895111449568566066650114642345344282976819697533131681587059212847)") let test_add () = Alcotest.(check fp12) |
