-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add ECDSA key support (SECP256R1) #101
base: master
Are you sure you want to change the base?
Conversation
just want to get plumbed in and existing tests passing
src/main/java/org/biscuitsec/biscuit/token/UnverifiedBiscuit.java
Outdated
Show resolved
Hide resolved
sync upstream
This implements 3rd party block generation and appending to existing tokens. It also fixes existing issues with public key interning which made deserialization of tokens with 3rd party blocks incorrect in some cases. Co-authored-by: Geoffroy Couprie <[email protected]>
#104 is merged at last, and I tried to keep the conflict to a minimum, and have a similar API to what you used to sign the 3rd party blocks |
# Conflicts: # src/main/java/org/biscuitsec/biscuit/crypto/KeyPair.java # src/main/java/org/biscuitsec/biscuit/crypto/PublicKey.java # src/main/java/org/biscuitsec/biscuit/token/Biscuit.java # src/main/java/org/biscuitsec/biscuit/token/UnverifiedBiscuit.java # src/main/java/org/biscuitsec/biscuit/token/builder/parser/Parser.java # src/main/java/org/biscuitsec/biscuit/token/format/SerializedBiscuit.java # src/test/java/org/biscuitsec/biscuit/token/BiscuitTest.java
Implement 3rd party block creation (#104)
Updated and resolved the conflicts. Had some bumps with syncing upstream hopefully doesn't cause any issues. Would suggest squash merging this one, when it's satisfactory. |
@Geal rebased the remote signer branch as well, was a few touchpoints for the external signature handling which I've consolidated into the Signer class. Both branches passing again. |
Great. Timing wise, we have to release the library with the public key interning fix and another fix that will come within a few days, in a minor version, then this will be merged with other API changes in a major version very soon |
Uses BouncyCastle for the provider.
There are a few outstanding todos yet to be addressed, any pointers thereand feedback in general would be greatly appreciated. Thanks!