Make the java wrapper working on linux and windows #60
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.
Description
This pull request consists of 3 commits which make the existing java wrapper working for linux and windows targets.
b91b04b adds build tasks to build the wrapper for linux. The build tasks install the necessary tool chain (using rustup), build the native lib (using cargo) and copy the built libs into the src folder. The test task is modified to allow testing on linux and windows platforms using the libs in the src folder.
2a9680b modifies the tests to address signing and verifiying of large number of messages (e.g. required for signing vaccination credentials). The modified tests fail on windows if commit 5cfe730 is not applied.
5cfe730 fixes issues with invalid data due to loss of ownership. Instead of use of ByteArray::from(vec[8]) to create ByteArray ByteArray::from(&vec[8]) is used preventing move of ownership. The ownership remains in the calling scope and the data are not overwritten before used later in this scope.
Tests for the changes have been added (for bug fixes / features)
The commit message(s) follow conventional commits
Documentation has been added / updated (for bug fixes / features)
Changes follow the contributing document.
Motivation and Context
Make java wrapper available on linux and windows and fixes issues with invalid data when signing and verifying large number of messages. Signing and verifying large number of messages is required for jsonld data (e.g. verifiable credentials - vaccination credentials etc.).
issue#43
Does this PR introduce a breaking change?
Which merge strategy will you use?