710 Commits

Author SHA1 Message Date
bndw
e781c1be8f nip96: http file storage 2024-08-09 21:07:20 -03:00
fiatjaf
ca396e794f nip29: move relay-side moderation actions to relay29. 2024-08-03 10:23:08 -03:00
fiatjaf
1bed62c7af nip04: one more test to make @mleku happy. 2024-07-31 20:49:06 -03:00
fiatjaf
077c14cef6 pool: implement optional penalty box mechanic. v0.34.5 2024-07-29 14:58:53 -03:00
Yasuhiro Matsumoto
53ff9019d6 use ubuntu-24.04 2024-07-29 14:46:31 -03:00
Yasuhiro Matsumoto
4f71918311 fix IsValidRelayURL 2024-07-29 14:43:40 -03:00
Yasuhiro Matsumoto
f3f29950b7 fix test.yml 2024-07-20 09:44:21 -03:00
fiatjaf
81a396be56 nip44: some more refactors and fix max length case.
fixes https://github.com/nbd-wtf/go-nostr/issues/134
2024-07-15 22:28:10 -03:00
fiatjaf
6c19aa1b5e nip44: refactor so bizarre var declarations are eliminated. 2024-07-15 19:02:45 -03:00
fiatjaf
3ea28878de nip86: fix wrong rpc name. v0.34.4 2024-07-12 13:53:40 -03:00
fiatjaf
684ff538ab nip86: omit empty result or error. v0.34.3 2024-07-12 13:45:47 -03:00
fiatjaf
d4c31e3fc9 nip29: fix updating LastMembersUpdate and LastAdminsUpdate on .Apply() 2024-07-12 13:45:47 -03:00
fiatjaf
d3c2667428 nip29: fix making metadata event (about was name). 2024-07-11 11:03:35 -03:00
fiatjaf
a95de1dc8a nip86: structured response types. v0.34.2 2024-07-08 15:40:27 -03:00
fiatjaf
ad022f7c80 add nip86 (relay management API) types. 2024-07-08 09:00:08 -03:00
fiatjaf
ccdab0fa6b nip29: enable private groups. v0.34.1 2024-07-05 16:59:12 -03:00
fiatjaf
92b85c9483 fix localhost trick from 8aaf5b. v0.34.0 2024-07-04 16:29:20 -03:00
fiatjaf
f9fd760808 nip29: handle 9007 create_group. 2024-07-04 16:22:50 -03:00
P. Reis
8aaf5b8f98
Append 'ws://' prefix if url starts with localhost (#132)
* test: refactor NormalizeURL tests

* feat(NormalizeURL): add 'ws://' prefix if url starts with 'localhost'

* test(NormalizeURL): add 'ws://' prefix if url is localhost
2024-07-04 12:06:24 -03:00
fiatjaf
6ed112cc69 pool event middleware for optionally doing stuff with all events. 2024-06-27 16:49:50 -03:00
fiatjaf
a7303c385b error instead of panic'ing when opening subscription. 2024-06-27 14:50:24 -03:00
fiatjaf
a35cdff6c8 problem: connection can be nil when writing and we're panic'ing. 2024-06-21 09:32:53 -03:00
fiatjaf
3862333dfa nip11: always return a struct from Fetch() with URL filled. v0.33.0 2024-06-19 19:54:40 -03:00
fiatjaf
37ef70e4cb relay: prevent panic on double-closing.
probably fixes https://github.com/nbd-wtf/go-nostr/issues/130
2024-06-19 09:59:28 -03:00
fiatjaf
d6d02686a9 nip29: NewGroupFromMetadataEvent() 2024-06-07 14:22:17 -03:00
fiatjaf
b173c40f14 nip34: read all maintainers instead of just the first. 2024-06-07 08:11:35 -03:00
fiatjaf
00ae611115 binary: unsafe.String() decoders. v0.32.0 2024-06-03 20:56:03 -03:00
dtonon
742873bde6 Support a tags in GetImmediateReply 2024-05-29 17:59:08 -03:00
fiatjaf
d06f61136d allow using libsecp256k1 for signature verification in subscriptions. 2024-05-29 17:08:15 -03:00
fiatjaf
31e0645afe libsecp256k1: use a static global context and add verification tests. 2024-05-29 15:40:57 -03:00
fiatjaf
427bfc7a4b add libsecp256k1 wrapper for sign/verify. 2024-05-29 15:32:49 -03:00
fiatjaf
0e93b1173f deprecation notice on binary package. 2024-05-29 15:30:21 -03:00
fiatjaf
f8bf988882 move "normalEvents" used by binary and nson to a common place. 2024-05-29 15:26:56 -03:00
fiatjaf
2bf6c87b45 remove json annotations from event. 2024-05-29 08:40:54 -03:00
fiatjaf
0836352724 namedLock() uses normalized uri and a simple test. 2024-05-29 08:39:49 -03:00
fiatjaf
b00bf363c8 remove annotations from filter.
closes https://github.com/nbd-wtf/go-nostr/issues/128
2024-05-25 07:34:37 -03:00
fiatjaf
8897cc36e4 nip29: fix group address parsing and encoding order. v0.31.4 2024-05-24 15:13:05 -03:00
fiatjaf
e1ae36ceb2 nip29: fix printing of GroupAddress. v0.31.3 2024-05-24 14:39:56 -03:00
fiatjaf
96da8bd6f5 IncomingEvent.String() 2024-05-22 08:49:46 -03:00
fiatjaf
7578bf6c71 nip46: support decrypting with nip44. 2024-05-20 09:20:39 -03:00
fiatjaf
abe84f9089 improve COUNT envelope codec and add a test. 2024-05-20 08:26:13 -03:00
ann
9a29edca41 fix: CountEnvelope json.Marshal 2024-05-20 07:18:27 -03:00
fiatjaf
7ccd0e7192 nip46: client sends limit: 0 v0.31.2 2024-05-15 16:59:46 -03:00
fiatjaf
a183ab0768 nip46: pass secret to authorize functions. 2024-05-15 16:13:12 -03:00
fiatjaf
4a2242e965 nip46: support nip44 in servers. 2024-05-15 16:00:30 -03:00
fiatjaf
7be82655d3 nip44: adjust api so it is more like nip04. v0.31.1 2024-05-15 12:06:04 -03:00
fiatjaf
dd52fd4910 add nip44 (copied from reference implementation). 2024-05-15 10:24:19 -03:00
dtonon
a5767c9b5a Add timezones to CalendarEvent 2024-05-14 23:55:21 -03:00
fiatjaf
96dfeac1bd nip29: oh, right, group addresses. 2024-05-10 18:03:24 -03:00
fiatjaf
705d035281 nip54: identifier can contain number. 2024-05-10 17:58:21 -03:00