Skip to content

FIX: remove the LNURLp metadata validation#6074

Merged
Overtorment merged 1 commit intomasterfrom
fix-lnurlp-validation
Jan 31, 2024
Merged

FIX: remove the LNURLp metadata validation#6074
Overtorment merged 1 commit intomasterfrom
fix-lnurlp-validation

Conversation

@Overtorment
Copy link
Copy Markdown
Member

@GladosBlueWallet
Copy link
Copy Markdown
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 thread class/lnurl.js
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.`);
}
Copy link
Copy Markdown

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
Copy Markdown
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
@Overtorment Overtorment deleted the fix-lnurlp-validation branch January 31, 2024 22:33
Copy link
Copy Markdown

@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