-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update bn256 to c++20
#17
Merged
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2df06ef
Update bn256 to `c++20`
greg7mdp dd8657c
Update cmake minimum version to `3.12` for `CXX_STANDARD` `20` support
greg7mdp 3104395
Merge branch 'main' of github.com:AntelopeIO/bn256 into c++20_update
greg7mdp b8cec24
Update version for c++20 switch
greg7mdp f6fa8dd
C++20 span (non-dynamic extent) doesn't support implicit conversions …
greg7mdp 74e7ee4
Use g++-10 for C++20 `<span>` support
greg7mdp 5a0e363
Add libstdc++-10-dev to install for ubuntu 20.04
greg7mdp 4c36cab
Fix typo in actions.yml.
greg7mdp e36d4e7
Fix variable name in actions.yml.
greg7mdp c323afc
Explicitly use `std::array` instead of the `bn256::array` alias.
greg7mdp 2060711
Update version in `CMakeLists.txt` to `1.1.0`.
greg7mdp 3847251
Missed updating another instance of `version` to `1.1.0`
greg7mdp 489475c
Avoid setting the project version is two separate locations.
greg7mdp 6fffc7c
Further avoid duplication of version information.
greg7mdp cc8921e
Fix mistake in my previous commit.
greg7mdp b20f7f5
Set version to `2.0.0` (abi change) and cleanup version setting.
greg7mdp b4263f9
Update version to 2.0 in README as well.
greg7mdp 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 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 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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[submodule "third-party/Catch2"] | ||
path = third-party/Catch2 | ||
url = https://github.com/catchorg/Catch2 | ||
[submodule "third-party/span"] | ||
path = third-party/span | ||
url = https://github.com/martinmoene/span-lite |
This file contains 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 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# BN256 Cryptographic Library | ||
## Version : 1.0 | ||
## Version : 1.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably want 2.0 here too |
||
|
||
This library implements the bilinear group `BN256` in the C++ language. It is based off of the [cloudflare/bn256](https://github.com/ethereum/go-ethereum/tree/master/crypto/bn256/cloudflare) implementation. | ||
|
||
|
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can do
project(bn256 VERSION 1.1.0)
here and then usebn256_VERSION_MAJOR
elsewhere, instead of doing that parsing stuff.But it seems to me like this ought to be a 2.0.0 version instead, since don't these changes break the ABI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that works, thanks!
Hum, I'm not sure how to tell for sure, but I'm happy to switch to 2.0.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's mostly academic on 1.0.0 vs 1.1.0 vs 2.0.0 for many reasons.. but setting things like
bn256/CMakeLists.txt
Lines 23 to 25 in b20f7f5
shows an intent to version and since
std::span
is part of the public interface, switching from "not reallystd::span
" tostd::span
breaks usage of the library if it had been built as a shared library and installed. Again.. that seems like a stretch of a use case.. but maybe.