Created
October 27, 2021 19:14
-
-
Save GaetanoPiazzolla/d748a950b97c09f1fb3e145ded63acb8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Signature signature = Signature.getInstance("SHA256withECDSA"); | |
signature.initVerify(key); | |
signature.update(dataToBeVerified); | |
coseSignature = ConvertToDer.convertToDer(coseSignature); | |
if (signature.verify(coseSignature)) { | |
System.out.println("Verified"); | |
} else { | |
System.out.println("Not verified"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to medium article
https://gae-piaz.medium.com/green-pass-qr-code-signature-verification-java-f742079cc88