indy-sdk
indy-sdk copied to clipboard
Add VCX Java demo
This VCX Java Alice/Faber demo was created with reference to the VCX node demo.
Also, it contains small bug fix in VCX Java wrapper APIs.
- issuerSendCredentialCB - Remove credentialDefId parameter (incurred error)
- vcxProofGetStateCB - Remove proofHandle parameter (returned wrong state)
Looks good to me 👍 Let's wait for @jovfer 's review as well.
@Patrik-Stas @mirgee, only 1 nuance makes me concerned about this PR: it puts jar binary to the repo. If there is no reasonable way to avoid it - fill free to merge it. Everything else is a valuable contribution for sure, thank you @baegjae
@jovfer Currently, demo is not executed when using maven's com.evernym:vcx:0.8.0
, so it is written to use the local vcx java wrapper (jar) temporarily. In my opinion, it would be better to merge this PR first. Next, as soon as this PR's bugfix applies to maven, I will register a PR that imports the vcx java wrapper from maven.
@baegjae I see it's common practice to commit gradlew files cvs, and the .jar file is just 50kb, but for sake of security, can you make binary file checksum as part of jenkins pipeline? See: https://docs.gradle.org/current/userguide/gradle_wrapper.html#wrapper_checksum_verification
@Patrik-Stas I applied the your request. If you have any further needs, please let me know.
@baegjae Thanks for update - however still missing the check part. I'd rather not have the checksum file as part of the repo - instead either in jenkins, or as a github action, I'd like to:
- download the checksum file for this gradlew version from
gradle.org
- verify the checksum as part of the pipeline
I think actually this will be much easier to add as github action. Extending existing Jenkins pipeline can be quite difficult due to extremely long feedback loop.
Since VCX is forked and will be removed here, I think this PR should be dropped in this repository. https://github.com/hyperledger/indy-sdk/pull/2416