482 Commits

Author SHA1 Message Date
fiatjaf
a4852ef6bc splitting the code into multiple packages (wip) 2024-05-29 16:33:57 -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
fiatjaf
b8ec1343cc nip29: some more group helpers. 2024-05-10 17:57:41 -03:00
fiatjaf
b43d0e374a reorder json serialization to write "kind" first and adjust tests. v0.30.2 2024-04-25 18:30:38 -03:00
fiatjaf
76997c619b nip46: client small tweaks. 2024-04-25 18:25:35 -03:00
fiatjaf
2a85932a4f omit id, pubkey and sig in jsonifying event and they're not present. 2024-04-25 18:20:37 -03:00
fiatjaf
ed62361f1b nip34: other fields in repository announcement. v0.30.1 2024-04-24 18:59:08 -03:00
leorighi
87390c11ac changed nostr relays from examples 2024-04-12 14:30:09 -03:00
fiatjaf
907cfd7846 Filter.LimitZero v0.30.0 2024-03-29 08:08:29 -03:00
fiatjaf
a6e208ad49 improve guessed buffer size on binary. 2024-03-29 08:08:29 -03:00
fiatjaf
01d5dc02c5 nip54: trim spaces. 2024-03-29 08:08:29 -03:00
fiatjaf
6f32e4da63 nip54: improve normalization and add tests. 2024-03-29 08:08:29 -03:00
ice-cronus
c0f1c4f510 add option to connect with custom TLS 2024-03-28 15:54:12 -03:00
fiatjaf
cff9af9aca
nip54: normalize identifier. 2024-03-13 12:53:33 -03:00
fiatjaf
7284ebcf13
fix nip05. v0.29.3 2024-03-11 13:44:58 -03:00
fiatjaf
c844dc2ccb use NormalizeURL() on nip11.Fetch() v0.29.2 2024-03-10 18:44:56 -03:00
Daniele Tonon
ec1e86e505 Support url without protocol in nip11.Fetch 2024-03-09 16:52:28 -03:00
fiatjaf
aea2895441
nip46: fix pubkey passed to "connect". v0.29.1 2024-03-04 09:30:45 -03:00
fiatjaf
d690fd7f07
nip46: bunker implementation changes for more streamlined authorization prompts. v0.29.0 2024-03-02 08:16:11 -03:00
fiatjaf
5aa4fbcc72
nip46: fix assigning client secret key to struct. 2024-03-02 07:48:41 -03:00
fiatjaf
9cb740764b
nip05: IsValidIdentifier 2024-03-02 07:48:24 -03:00
fiatjaf
f4cf242084
validating/parsing nip05 and nip46. 2024-03-01 15:55:02 -03:00
fiatjaf
c5f6692f74
explain how to turn off logs. 2024-03-01 15:54:11 -03:00
fiatjaf
f75501e7ef
nip46: auth_url support. 2024-02-29 20:37:16 -03:00
fiatjaf
6d5aef70c5
nip46: create_account 2024-02-29 20:29:08 -03:00
fiatjaf
e0ba846a03
nip46: support nip05 identifier in client. 2024-02-29 16:28:46 -03:00
fiatjaf
e4f0509689
nip05: omit empty fields. 2024-02-28 09:41:11 -03:00
ramin
c5819b6cb5 update checkout and setup-go versions to prevent node js 12 and 16 deprecations in github actions 2024-02-27 19:19:12 -03:00
fiatjaf
ced14c09ac pool: simplify batches (extra code was actually doing nothing at all). 2024-02-25 11:22:30 -03:00
fiatjaf
e6ef78c509 DirectedFilters to accept a list of filters. 2024-02-24 18:51:56 -03:00