This pull request consists of 3 commits which make the existing java wrapper working for linux and windows targets.
https://github.com/mattrglobal/ffi-bbs-signatures/commit/b91b04bf6ecd86ab3e6cdaedf33d9964981b88b0 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.
https://github.com/mattrglobal/ffi-bbs-signatures/commit/5cfe730ae7310067004da4734bd03f3cff1fc178 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.
[x] Tests for the changes have been added (for bug fixes / features)
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.).
Description
This pull request consists of 3 commits which make the existing java wrapper working for linux and windows targets.
https://github.com/mattrglobal/ffi-bbs-signatures/commit/b91b04bf6ecd86ab3e6cdaedf33d9964981b88b0 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.
https://github.com/mattrglobal/ffi-bbs-signatures/commit/2a9680b6c6102c79db7636b39c0dd67b15bf20b9 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 https://github.com/mattrglobal/ffi-bbs-signatures/commit/5cfe730ae7310067004da4734bd03f3cff1fc178 is not applied.
https://github.com/mattrglobal/ffi-bbs-signatures/commit/5cfe730ae7310067004da4734bd03f3cff1fc178 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.
[x] Tests for the changes have been added (for bug fixes / features)
[x] The commit message(s) follow conventional commits
[ ] Documentation has been added / updated (for bug fixes / features)
[x] 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?