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.
Overview
This PR adds JNI support to compilation of native code for https://github.com/bitcoin-core/secp256k1.
JNI files are taken from PR which removed support on the source repo.
bitcoin-core/secp256k1#682
Also files are updated from the PR on https://github.com/bitcoin-s/bitcoin-s repo which also uses original source.
bitcoin-s/secp256k1-zkp@17ab106 (PR bitcoin-s/secp256k1-zkp#1)
Also fix for macOS for JDK path is taken from @nzpr's build.
nzpr/secp256k1@41fa378
GitHub CI workflow
GitHub workflow CI files are added with support for bors. Running examples can be seen on the fork repo.
https://github.com/tgrospic/secp256k1-native/actions/runs/2851923440
TODO
Makefile and configure are for now copied as a whole files, but later only changes should be extracted to a script of diff file to update originals.
What's missing is support for multiple architecture e.g. ARM and CI action to create releases.