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

Adding a function to verify QR signature #22

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

t-anjan
Copy link

@t-anjan t-anjan commented Aug 2, 2024

In addition to the verification function, added some error-handling code.

t-anjan added 3 commits August 2, 2024 12:55
Also, adding some better error handling and debugging print statements.
From Secure QR documentation (User_manulal_QR_Code_15032019.pdf):
Validate (signature value and signed data value) by using public key with algorithm SHA256withRSA.
The default public key is "pyaadhaar/uidai_publickey.pem", which is extracted from the certificate
present in the offline KYC XML (uidai_certificate_from_xml.cer).
    > openssl x509 -inform PEM -in uidai_certificate_from_xml.cer -pubkey -noout > uidai_publickey.pem
…tatus field.

3 and 2 have email. 3 and 1 have mobile.
Also, using the isEmailRegistered() and isMobileNoRegistered() functions, instead of checking the email_mobile_status field everywhere.
@t-anjan t-anjan mentioned this pull request Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant