nostr-zap 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/nostr_zap/version.rb +1 -1
- data/lib/nostr_zap/zap/request_validator.rb +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a37e06d0b8cbcaf43059fa05aef8de40e96c735d7aba1e0a0d7b2f22060d3051
|
|
4
|
+
data.tar.gz: 15d1f6384ed3af2eb9413414f934dce327193b60e1aacfbfcae777594035cef0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 734a48257c00913f893257978dbf7b4c4b6f422d10530a2ccd0fa15112c3c107a0cd93363e5a0e567434bbb73f22e08d232fc6e652109923289197fdc2f35d63
|
|
7
|
+
data.tar.gz: edb0bc4efa7ce7b22765796faeb6ac3ee9b2f48f76eb002936449b49caecfa20bd32ee99ca3e0772e61fd769b33d0255b76f5ab58382a9c6bf55a24a6e8a2558
|
data/README.md
CHANGED
data/lib/nostr_zap/version.rb
CHANGED
|
@@ -11,7 +11,7 @@ module NostrZap
|
|
|
11
11
|
# - Have kind = 9734
|
|
12
12
|
# - Have a valid Schnorr signature (when verification is enabled)
|
|
13
13
|
# - Have a 'p' tag with the recipient's pubkey
|
|
14
|
-
# - Have a 'relays' tag with at least one
|
|
14
|
+
# - Have a 'relays' tag with at least one relay URL
|
|
15
15
|
#
|
|
16
16
|
# @example
|
|
17
17
|
# validator = NostrZap::Zap::RequestValidator.new(json_string)
|
|
@@ -138,9 +138,7 @@ module NostrZap
|
|
|
138
138
|
urls = relays_tag&.slice(1..)&.compact
|
|
139
139
|
return fail_with("Missing required 'relays' tag with at least one relay URL") if urls.nil? || urls.empty?
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
(error = RelayUrlValidator.validate(url, check_private: false)) ? fail_with(error) : true
|
|
143
|
-
end
|
|
141
|
+
true
|
|
144
142
|
end
|
|
145
143
|
|
|
146
144
|
def event_id_valid?
|