Skip to content
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

feat: Remove requirement for bouncycastle #55

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

steve-gr4vy
Copy link
Collaborator

@steve-gr4vy steve-gr4vy commented Aug 28, 2024

DO NOT DELETE THE BRANCH as it's being used for poc testing.

  • removes dependencies on bouncycastle
  • introduces need to create public key from the EC private key

ACTION: Review is needed on whether we can do this without a public key - e.g. by passing the key ID .
FINDINGS: the public key is needed to build the JWSSigner, previously the public key was generated from the private key, but this caused an issue for Toursys due to their bouncycastle security provider wrapping the key as a BCECPrivateKey. Conclusion, the public key is needed and just passing the key ID alone won't help as the signer needs the public key as well.

# Conflicts:
#	src/main/java/com/gr4vy/api/model/Transaction.java
#	src/main/java/com/gr4vy/api/model/TransactionPaymentMethodRequest.java
@steve-gr4vy steve-gr4vy marked this pull request as draft October 2, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant