damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 43630cbfa650f731c4843dc4acb5dcd9f792d8f0
parent ae2f48484acfe55c2851e39ba2c7b486135c1b21
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 18 Apr 2024 16:03:21 -0700

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 <jb55@jb55.com>

Diffstat:
Mdamus/Util/Zap.swift | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git 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 }