Commit Graph

40 Commits

Author SHA1 Message Date
tajava2006 0e6e7af934 chore: Bump version and document NIP-46 usage 2025-08-25 11:00:06 -03:00
hoppe ebe7df7b9e
feat(nip46): Add support for client-initiated connections in BunkerSigner (#502)
* add: nostrconnect

* fix: typo
2025-08-24 15:53:01 -03:00
fiatjaf b2f3a01439 nip46: remove deprecated getRelays() 2025-07-23 16:22:16 -03:00
fiatjaf a2b1bf0338 blossom test. 2025-06-04 21:45:43 -03:00
codytseng cb370fbf4f nip46: fix crash caused by endless resubscribe 2025-05-11 15:22:26 -03:00
fiatjaf ef28b2eb73 nip46: toBunkerURL() function. 2025-04-21 23:40:15 -03:00
fiatjaf e498c9144d nip46: auto-reconnect. 2025-04-02 10:58:26 -03:00
fiatjaf 4a738c93d0 nip46: stop supporting nip04-encrypted messages. 2025-04-02 10:25:19 -03:00
fiatjaf 2944a932b8 nip46: mark connection as closed when relays disconnect. 2025-03-29 18:03:39 -03:00
fiatjaf e7e8db1dbd nip46: take EventTemplate instead of UnsignedEvent. 2025-02-24 14:48:47 -03:00
Asai Toshiya c1172caf1d mark getRelays and get_relays as deprecated. 2025-02-21 15:08:55 -03:00
fiatjaf 29270c8c9d nip46: fix legacyDecrypt argument. 2024-11-02 08:13:33 -03:00
fiatjaf c1d03cf00b nip46: only encrypt with nip44 (breaking). 2024-10-27 14:59:27 -03:00
fiatjaf 66d0b8a4e1 nip46: export queryBunkerProfile() 2024-10-26 07:24:13 -03:00
fiatjaf a72e47135a nip46: we have no business checking the pubkey of the sign_event result. 2024-10-25 21:58:03 -03:00
fiatjaf f2d421fa4f nip46: remove "nip44_get_key" method as it was removed from the spec. 2024-10-25 10:22:21 -03:00
fiatjaf 75660e7ff1 nip46: cache the received pubkey. 2024-10-23 17:09:41 -03:00
fiatjaf 4c2d2b5ce6 nip46: fix getPublicKey() by making it actually call "get_public_key". 2024-10-23 16:38:14 -03:00
space-shell 4f6976f6f8
fix nip44Decrypt sending "nip44_encrypt" request (#435)
nip44Decrypt sends nip44_decrypt request
2024-09-24 12:56:36 -03:00
fiatjaf 9562c408b3 never import anything from index.ts in submodules. 2024-05-26 12:04:48 -03:00
António Conselheiro 88454de628
including interface for nip07 (#403)
* including interface for nip07

* fix types for NIP-07

* including NIP-07 export to jsr

* fix readme about nip07

* including in nip7 interface an output signature compatible with the event returned by the signer
2024-05-26 11:58:12 -03:00
fiatjaf fa31fdca78 nip46: try to decrypt with nip44 if nip04 fails. 2024-05-19 14:51:39 -03:00
fiatjaf fd945757be accept localSecretKey as a parameter on nip46.createAccount()
fixes https://github.com/nbd-wtf/nostr-tools/issues/401
2024-04-24 10:12:33 -03:00
Daniele Tonon c12ddd3c53 Add hyphen to BUNKER_REGEX 2024-04-20 16:16:13 -03:00
Nostr.Band e5cda3509c Fix pubkey param to nip46 connect
NIP46 requires remote_user_pubkey as first param to connect.
2024-03-27 08:09:13 -03:00
fiatjaf 7cf7df88db
nip46: skip duplicates on fetchBunkerProviders (prev fetchCustodialBunkers). 2024-02-19 18:54:18 -03:00
fiatjaf bded539122
nip46: fix messages being ignored after auth_url. 2024-02-19 18:53:48 -03:00
fiatjaf bb1e6f4356
nip46: only handle the first auth_url for every command. 2024-02-16 07:43:20 -03:00
fiatjaf 5626d3048b
nip46: remove NostrConnectAdmin wrong kind. 2024-02-16 07:40:21 -03:00
fiatjaf 3aab7121f7
use a public BunkerPointer property on BunkerSigner class. 2024-02-14 12:29:47 -03:00
fiatjaf b72b0dc1f0
nip46: fix typo in fetchCustodialBunkers() function name. 2024-02-14 12:24:47 -03:00
fiatjaf 29e5b71473
nip46: implement the remaining methods. 2024-02-14 12:24:33 -03:00
fiatjaf b4e54d679f
nip46: fix checking event that comes from bunker call sign_event and bump version. 2024-02-12 16:06:20 -03:00
fiatjaf 9d78c90a79
nip46: fix bunker url parsing. 2024-02-12 15:32:50 -03:00
fiatjaf 566a2deea3 nip46: omit custodial bunker providers that don't have relays configured. 2024-02-12 09:04:31 -03:00
fiatjaf 177e673d83 nip46: params for createAccount that get passed into BunkerSigner. 2024-02-12 09:04:06 -03:00
fiatjaf 7d332605ee nip46: tweaks. 2024-02-12 00:28:48 -03:00
fiatjaf 72f9b482ef nip46: NostrConnectAdmin kind and handle "auth_url". 2024-02-12 00:28:36 -03:00
fiatjaf d14830a8ff nip46 big implementation adapted from ignition. 2024-02-11 19:14:04 -03:00
fiatjaf 943cc4fb48 nip46 beginnings. 2024-02-11 08:32:08 -03:00