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

Fixed padding to prevent valid signatures from failing in lnurl-auth … #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdance
Copy link

@mdance mdance commented Sep 3, 2021

…verifications

@rgex
Copy link
Contributor

rgex commented Sep 9, 2021

Thank you for your pull request, it looks good, Can you give some more insight on why the padding is different for inurl-auth?
I am afraid merging this pull request will cause issues for other use cases.

@mdance
Copy link
Author

mdance commented Sep 9, 2021

I dont have enough understanding of the checkSignaturePoints method to understand why, but I am consistently seeing

R: 00abcdefg
xRes: abcdefg

Seems to always be missing 2 leading 0, the previous check was expecting the strlen to be <64, strlen(R) is consistently 66

Would be happy to do a screenshare, and debug session to run you through some scenarios

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.

2 participants