Commit Graph

22 Commits

Author SHA1 Message Date
fiatjaf
7cbca5f040 nip46: dynamic signer to store sessions associated with the handler pubkey to prevent stupid bugs when the same client try to use two different bunkers. 2025-07-18 14:36:42 -03:00
fiatjaf
4befaa0129 nip11, nip13, nip46 changes from promenade port.
and verify pubkey validity when decoding it from an arbitrary json object.
2025-05-11 17:42:19 -03:00
fiatjaf
631ff67d52 nip46: fixes from nak bunker tests. 2025-04-22 08:37:34 -03:00
fiatjaf
3d595039cc fixes and tweaks from nak port work. 2025-04-21 08:35:19 -03:00
fiatjaf
1c56906506 fix some pubkeys that were strings still. 2025-04-17 00:54:50 -03:00
fiatjaf
376834cbf9 more conversions. 2025-04-15 00:00:03 -03:00
fiatjaf
b4268d649c a bunch of [32]byte conversions. still more needed. 2025-04-14 17:47:53 -03:00
fiatjaf
459273216c replace deprecated functions in multiple places. 2025-03-10 02:56:12 -03:00
fiatjaf
72d9aac9b1 replace all ocurrences of encoding/json with json-iterator so we get rid of HTML escaping and hopefully get faster too. 2024-12-03 00:49:27 -03:00
fiatjaf
d4399892ee nip46: dynamic signer sessions were missing nip44 conversation key. 2024-10-26 19:26:20 -03:00
fiatjaf
e05dbb5d51 nip46: revamp dynamic signer, require a ctx on HandleRequest(). 2024-10-14 16:26:16 -03:00
sebas
27bd9bfc8c nip46: fix HandleRequest request parsing logic
Move out the `session.ParseRequest` call from the `else` branch. This
caused an empty `Request` object to be used down in the function when
the `Session` already existed.
2024-10-01 16:58:54 -03:00
jiftechnify
1b6ac1fe0a implement ping method in nip46 signers 2024-10-01 09:39:03 -03:00
fiatjaf
03ae3812c8 nip46: remove duplicated code.
fixes https://github.com/nbd-wtf/go-nostr/issues/152
2024-10-01 00:00:21 -03:00
fiatjaf
c6ea51653b make nip44 conversation key be static array. 2024-09-11 10:13:29 -03:00
fiatjaf
7578bf6c71 nip46: support decrypting with nip44. 2024-05-20 09:20:39 -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
d690fd7f07 nip46: bunker implementation changes for more streamlined authorization prompts. 2024-03-02 08:16:11 -03:00
fiatjaf
9c4ea87d0b use stdlib "slices". 2024-02-08 16:33:39 -03:00
fiatjaf
2586144a5c replace usage of IsValidPublicKeyHex() in subpackages. 2024-01-18 20:30:20 -03:00
fiatjaf
fd8b2b22b2 nip-46 dynamic and static signers. 2024-01-09 17:20:14 -03:00