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

FIX: remove the LNURLp metadata validation #6074

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Conversation

Overtorment
Copy link
Member

@GladosBlueWallet
Copy link
Collaborator

♫ This was a triumph. I'm making a note here: HUGE SUCCESS ♫

[android in browser] https://appetize.io/app/pdsxhitoqrk6x5bor73yilaa4u?device=pixel4

download apk

Comment on lines 147 to 150
const metadataHash = createHash('sha256').update(this._lnurlPayServicePayload.metadata).digest('hex');
if (metadataHash !== decoded.description_hash) {
throw new Error(`Invoice description_hash doesn't match metadata.`);
console.log(`Invoice description_hash doesn't match metadata.`);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just remove all of this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔

@Overtorment Overtorment merged commit 3da1a33 into master Jan 31, 2024
14 of 15 checks passed
@Overtorment Overtorment deleted the fix-lnurlp-validation branch January 31, 2024 22:33
Copy link
Contributor

@jaonoctus jaonoctus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

post-merge tACK

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.

6 participants