-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pad elliptic curve coordinates correctly in JWK representation (#22
) When creating and using JWK representations the byte array is padded at the start with 0x00 to ensure that all hashes of the JWK will be correct. When calculating the hashed token in `parse.go` and when creating proofs in `create.go` the `FillBytes(buf []byte)` function is used on the big.Int to get the byte array representation with added zeros at the start. - Fixes #21
- Loading branch information
1 parent
9db9bdb
commit 433762b
Showing
3 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters