From 43630cbfa650f731c4843dc4acb5dcd9f792d8f0 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 18 Apr 2024 16:03:21 -0700 Subject: [PATCH] zaps: don't verify deschash seems like most clients don't do this and apparently simplfies some zapper implementations. It's not a huge deal for us since people can fake bolt11s anyways. Suggested-by: bumi, calle Link: 20240418230321.1907519-1-jb55@jb55.com Signed-off-by: William Casarin --- damus/Util/Zap.swift | 3 --- 1 file changed, 3 deletions(-) diff --git a/damus/Util/Zap.swift b/damus/Util/Zap.swift index 19f8282e..f425d73c 100644 --- a/damus/Util/Zap.swift +++ b/damus/Util/Zap.swift @@ -411,9 +411,6 @@ func get_zap_description(_ ev: NostrEvent, inv_desc: InvoiceDescription) -> Stri guard let data = desc.data(using: .utf8) else { return nil } - guard sha256(data) == deschash else { - return nil - } return desc }