-
Notifications
You must be signed in to change notification settings - Fork 10
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
Handling COSE EC keys encoded without leading 0 bytes in coordinates. #64
Handling COSE EC keys encoded without leading 0 bytes in coordinates. #64
Conversation
da14320
to
00f45e9
Compare
Hi @waltercacau! Thank you so much for the report and also taking the time to propose a fix to it! The changes look good to me, although I wonder what make you go for a different approach that the one taken in |
I am not expert on it by any means but my understanding is that it is possible though might be unlikely. The approach I took here was inspired by the approach done in this java library: That code seemed to handle these cases more generally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense! I think it's okay to go with this approach 😄
Just one minor comment before merging 🙂
Alright, deleted the extra test/debug code I had and reran the tests:
I think this PR is now good to go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Thank you so much!!
Should address #63
Added a unit test to cover it and ran them locally to verify it was working: