Commit Graph

697 Commits

Author SHA1 Message Date
fiatjaf 5e2e0bf458 keyring -> keyer, fix misunderstanding with NIP-59 and adjust api. 2024-09-11 11:49:53 -03:00
fiatjaf 9addd57db7 missing bit from f57d93. 2024-09-11 10:16:28 -03:00
fiatjaf 072da132f4 move nostr-sdk repository into here because why not? 2024-09-11 10:14:13 -03:00
fiatjaf c6ea51653b make nip44 conversation key be static array. 2024-09-11 10:13:29 -03:00
fiatjaf 873453928e nip17: forgot to close this channel. 2024-09-11 10:13:29 -03:00
fiatjaf 7514629906 nip17 and nip59. 2024-09-11 10:13:29 -03:00
fiatjaf cc038de0dd nip46: encrypt/decrypt nip44 methods on client. 2024-09-11 10:13:29 -03:00
K c91e7b9765 using testify instead of testing.T methods. (#143) 2024-09-09 07:20:56 -03:00
fiatjaf b2692a2584 move all the binary stuff to github.com/fiatjaf/eventstore. 2024-09-08 12:00:30 -03:00
fiatjaf 6ebdf9cc00 remove "pure" binary marshal/unmarshal since it was always just an exercise. 2024-09-08 11:55:34 -03:00
fiatjaf 2016f11dd1 remove nson.
it isn't worth keeping this here since it isn't being used and is unlikely to ever be.
2024-09-08 11:53:58 -03:00
kehiy b7c79c9c9c Fix nson benchmarks 2024-09-08 11:52:37 -03:00
fiatjaf 7787a4fcf7 fix binary encoding stupid encoding bug that just guessed a slice length and if we were to go above it it would just panic.
for example: https://github.com/bitvora/wot-relay/issues/16
2024-09-08 11:48:12 -03:00
fiatjaf e175e634c8 unsafe.String() on binary decoding is not safe. 2024-09-07 10:48:25 -03:00
fiatjaf f57d93ac78 after getting an EOSE we should stop checking since/until. 2024-09-06 19:37:34 -03:00
fiatjaf cd145f4fcb nip19: fix decoding faulty kind from tlv. 2024-09-05 14:34:15 -03:00
fiatjaf 51e527680e WithNoticeHandler() just calls a function, no channel stuff anymore.
probably fixes https://t.me/nostr_protocol/145832

I think we were using this channel for legacy reasons, it feels completely unnecessary now.
2024-08-31 23:12:20 -03:00
fiatjaf 5edb54efee nip46: do not allow one faulty relay to break RPC calls to other relays. 2024-08-29 17:49:51 -03:00
fiatjaf 1db4da7ed3 nip29: get rid of useless constant. 2024-08-29 07:57:05 -03:00
fiatjaf ddf28001cf nip34: fix .Branches -> .Tags for refs/tags/ 2024-08-28 16:08:04 -03:00
fiatjaf 0750057b13 nip34: fixes. 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 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() 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 edbbd6df44.
2024-08-20 17:05:49 -03:00
fiatjaf edbbd6df44 nip13: crazier and more fun and hopefully slightly more performant nonce encoding. 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. 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. 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. 2024-07-12 13:53:40 -03:00
fiatjaf 684ff538ab nip86: omit empty result or error. 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