-
Notifications
You must be signed in to change notification settings - Fork 55
BLS12-381 bindings #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
BLS12-381 bindings #266
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
43a88bb
BLS12-381 bindings
tdammers f3c1c83
Refactoring
tdammers ab5ee7e
Reduce public API and expose Integer instead of Scalar
tdammers 7a2eaa3
Fix failing tests
tdammers 0903c2d
Remove unnecessary FFI bindings
tdammers c56b0fc
Some documentation
tdammers a44cd9e
PT type and operations
tdammers 4f94ee6
PT tests
tdammers 61630d1
BLS Changes as requested
tdammers d350fbe
Remove ptInv
tdammers ef32b02
Pairing tests (failing)
tdammers e8c3a2d
Reinstate other pairing tests
tdammers 18e7e6b
Fix argument order for blst_miller_loop
tdammers ed4e413
Remove unused test function
tdammers f2fb07c
Fix incorrect size_fp calculation
tdammers cc82400
Remove unused integerAsCStr function
tdammers 3e9fc94
Use CSize when appropriate
tdammers 1e1d5d5
Use type aliases for consistency
tdammers 1e446ef
Use add_or_double() rather than add()
tdammers c3c607f
Remove onCurve function (not used)
tdammers 3a588c5
Cleanup
tdammers 373107d
Check exact size of serialised points
iquerejeta d34ba83
Trailing white spaces
iquerejeta ea62c3e
Activate windows CI
iquerejeta 4e8bf0b
Use CSize to marshall size_t
iquerejeta c10c042
Length check for scalarFromBS
iquerejeta a2b34f2
Rewrite scalarFromBS fn
iquerejeta f324559
Remove ghc-prim from dependencies
iquerejeta dff81dc
Check length before calling c function
iquerejeta e677cc1
Explicit check on Points serialisation size
iquerejeta debf4cd
Try new GITHUB_PATH variable
iquerejeta 5be0f93
testing - building win
iquerejeta a54ec95
typo in yml
iquerejeta 88e7a43
typo in yml
iquerejeta 11f4d79
Missed if
iquerejeta 2ddda77
Typo
iquerejeta afdb57e
explictly set MSYSTEM as mingw
iquerejeta 3c1f813
Update haskell.yml
angerman 6221ec1
Update haskell.yml
angerman 4790e6e
Create build-blst.bash
angerman 3eaac9c
Update build-blst.bash
angerman 4d744a4
Update haskell.yml
angerman 9e968c4
additional test to check intermediate structure
iquerejeta 7161d33
editorial nits
iquerejeta 8081a28
Apply suggestions from code review
iquerejeta 9ae1175
Bump bytestring and use correct imports
iquerejeta efa4181
Enforce that Points are part of the prime order subgroup
iquerejeta d4e8f5c
Improve docs of scalar mult
iquerejeta e57a905
use build-blst.bash for non-windows blst installs
iquerejeta a31978f
Update permissions
iquerejeta f061b19
Review comments
iquerejeta f572d87
bls prefix for bindings functions
iquerejeta 18a0d00
Merge BLSPoint and BLSCurve typeclasses
tdammers c41c920
Make BLS `Point` nominal to avoid incorrect `Coercible` instances
tdammers 1b872a9
Merge branch 'master' into bls12-381
iquerejeta 66662d4
Update haskell.yml (fix indentation)
angerman 327883a
Enable ssh for debugging
iquerejeta bea40a0
Activate tmate session if failure
iquerejeta 128dc9c
Debugging windows CI
iquerejeta 2b5bd23
cygpath var
iquerejeta caef6cf
Reactivate tmate
iquerejeta 056b281
No tmate for now
angerman 5d443ac
Update build-blst.bash
angerman 9a5014a
Add tmate again
angerman 3049b5a
:facepalm:
angerman 2f57926
Cleanup
angerman 7ead184
miller loop always succeeds
iquerejeta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #!/bin/bash | ||
| # I don't understand why this just vanishes. | ||
| export PATH=/usr/bin:$PATH | ||
|
|
||
| mkdir blst-sources && cd blst-sources | ||
| git clone https://github.com/supranational/blst | ||
| cd blst | ||
| git reset --hard $BLST_REF | ||
| ./build.sh | ||
| cd ../.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,3 +36,4 @@ test-show-details: direct | |
|
|
||
| program-options | ||
| ghc-options: -Werror | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.