527 Commits

Author SHA1 Message Date
fiatjaf
0750057b13 nip34: fixes. v0.34.11 2024-08-28 10:07:05 -03:00
fiatjaf
106ca136fd nip34: repository state and some ToEvent() helpers. 2024-08-27 12:05:10 -03:00
fiatjaf
c78c5658a3 move kind constants to kinds.go 2024-08-26 17:16:28 -03:00
fiatjaf
148942cfae nip13: use slightly more efficient difficulty checking on DoWork() that makes it 17% faster v0.34.10 2024-08-21 17:07:26 -03:00
fiatjaf
75e6befdd0 nip13: move Generate() to deprecated.go 2024-08-21 16:54:02 -03:00
fiatjaf
2fc34e0de8 nip13: fix slice pointer race issue on DoWork() 2024-08-21 16:53:40 -03:00
fiatjaf
83bd196bae nip13: parallel DoWork(), deprecate Generate() v0.34.9 2024-08-20 23:04:52 -03:00
fiatjaf
2da58356b0 Revert "nip13: crazier and more fun and hopefully slightly more performant nonce encoding."
This reverts commit edbbd6df445dcd2bed8025397c44f2d03661f014.
v0.34.8
2024-08-20 17:05:49 -03:00
fiatjaf
edbbd6df44 nip13: crazier and more fun and hopefully slightly more performant nonce encoding. v0.34.7 2024-08-20 13:54:51 -03:00
fiatjaf
437cdecfb1 nip13: CommittedDifficulty() 2024-08-20 13:19:21 -03:00
fiatjaf
0e72540696 nip13: fail when pubkey is not provided -- may help some clueless people like me. v0.34.6 2024-08-20 10:31:52 -03:00
fiatjaf
18dbda437b nip13: superficial changes. 2024-08-20 09:52:35 -03:00
Yasuhiro Matsumoto
b3ca3c1b82 add KindSimpleGroupLeaveRequest 2024-08-19 16:03:27 -03:00
Yasuhiro Matsumoto
b6aca13732 ditto 2024-08-19 16:03:27 -03:00
Yasuhiro Matsumoto
7faa3da20a add KindSimpleGroupDeleteGroup 2024-08-19 16:03:27 -03:00
fiatjaf
70dfeea299 127.0.0.1 also defaults to ws:// 2024-08-19 11:53:18 -03:00
fiatjaf
894a98b98b remove some useless checks from event json. 2024-08-13 22:02:39 -03:00
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