Commit Graph

730 Commits

Author SHA1 Message Date
fiatjaf 9a612e59a2 update nip11 test. 2025-03-14 09:30:35 -03:00
fiatjaf 266dbdf766 nip27: rewrite to support urls and references in a simpler API for rich UIs. 2025-03-14 09:26:40 -03:00
fiatjaf 19ae9837a7 nip19: decodeNostrURI() function that doesn't throw. 2025-03-14 09:26:40 -03:00
António Conselheiro 4188f2c596
Generic repost 2025-03-10 01:58:00 -03:00
fiatjaf 97bded8f5b prevent a relay from eoseing then closing and causing pool handlers to fire twice. 2025-03-02 01:25:39 -03:00
fiatjaf 174d36a440 nip07: remove getRelays() 2025-03-02 01:25:39 -03:00
fiatjaf 0177b130c3 nip55: remove getRelays() 2025-03-02 01:25:39 -03:00
fiatjaf 05eb62da5b support subscription label, not only an absolute id. 2025-03-02 01:25:39 -03:00
Baris Aydek 3c4019a154 nip54 normalizeIdentifier function 2025-02-25 13:52:40 -03:00
fiatjaf e7e8db1dbd nip46: take EventTemplate instead of UnsignedEvent. 2025-02-24 14:48:47 -03:00
bitcoinpirate 44a679e642
added support for zapping replaceable events (#424)
* added support for zapping replaceable events

* Update nip57.ts

* Update nip57.ts

Co-authored-by: 雪猫 <SnowCait@users.noreply.github.com>

* apply @SnowCait's suggestions.

* fix lint error.

---------

Co-authored-by: AsaiToshiya <to.asai.60@gmail.com>
Co-authored-by: 雪猫 <SnowCait@users.noreply.github.com>
2025-02-24 00:46:51 +09:00
Asai Toshiya c1172caf1d mark getRelays and get_relays as deprecated. 2025-02-21 15:08:55 -03:00
Jon Staab 86f37d6003 Clean up nip96 upload validation and make it less strict 2025-02-11 15:58:20 -03:00
Sandwich 3daade322c export retention details
pain to use without being available as an export.
2025-02-10 09:25:33 -03:00
Asai Toshiya fcf10541c8 rename "parameterized replaceable" to "addressable". 2025-01-23 14:08:22 -03:00
Asai Toshiya 548abb5d4a
nip18: tweak test data. 2025-01-23 20:03:52 +09:00
Asai Toshiya 1e5bfe856b nip18: don't stringify protected event. 2025-01-17 21:30:09 -03:00
Anderson Juhasc 3266b4d4c2 added NIP-55 2025-01-04 14:15:11 -03:00
Asai Toshiya a0b950ab12 remove unnecessary id from Omit keys. 2025-01-02 15:57:39 -03:00
Asai Toshiya be741159d7 nip29: update GroupAdminPermission. 2024-12-17 13:33:00 -03:00
im-adithya 9c50b2c655 fix: clear timeout in publish and auth 2024-12-03 11:09:11 -03:00
Egge bbb09420fe export nip17 2024-11-26 11:59:58 -03:00
Asai Toshiya 2e85f7a5fe Revert "nip19: remove note1."
This reverts commit a8a805fb71.
2024-11-26 11:59:58 -03:00
Asai Toshiya b22e2465cc nip19: remove note1. 2024-11-26 11:59:58 -03:00
fiatjaf 43ce7f9377 fix reference to nostr-wasm dependency so it can be installed on deno.
fixes https://github.com/nbd-wtf/nostr-tools/issues/459
2024-11-25 21:33:25 -03:00
fiatjaf 5a55c670fb nip10: fix. 2024-11-13 01:21:54 -03:00
fiatjaf bf0c4d4988 nip10: improve, support quotes, author hints, change the way legacy refs are discovered. 2024-11-04 15:37:39 -03:00
fiatjaf 50fe7c2a8b streamline jsr publishes. 2024-11-02 08:35:52 -03:00
fiatjaf 29270c8c9d nip46: fix legacyDecrypt argument. 2024-11-02 08:13:33 -03:00
fiatjaf cb29d62033 add links to jsr.io 2024-10-31 16:33:24 -03:00
Asai Toshiya 0d237405d9
fix lint error. 2024-10-31 20:43:03 +09:00
Asai Toshiya 659ad36b62 nip05: use stub to test queryProfile(). 2024-10-31 07:51:53 -03:00
Asai Toshiya d062ab8afd make publish() timeout. 2024-10-30 11:55:04 -03:00
Fishcake 94f841f347 Fix fetch to work in the edge and node environments, cleanup type issues
- Fix "TypeError: Invalid redirect value, must be one of "follow" or "manual" ("error" won't be implemented since it does not make sense at the edge; use "manual" and check the response status code)." that is thrown when trying to use fetch in the edge environment  (e.g., workers)
- Cleanup types and variable definitions.
2024-10-28 14:56:10 -03:00
fiatjaf c1d03cf00b nip46: only encrypt with nip44 (breaking). 2024-10-27 14:59:27 -03:00
fiatjaf 29ecdfc5ec fix slow types so we can publish to jsr.io 2024-10-26 14:23:28 -03:00
fiatjaf d3fc4734b4 export missing modules. 2024-10-26 13:10:26 -03:00
fiatjaf 66d0b8a4e1 nip46: export queryBunkerProfile() 2024-10-26 07:24:13 -03:00
fiatjaf e2ec7a4b55 fix types, imports and other stuff on nip17 and nip59. 2024-10-25 22:10:05 -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
Anderson Juhasc de7bbfc6a2 organizing and improving nip17 and nip59 2024-10-25 11:49:28 -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
Anderson Juhasc cae06fc4fe
Implemented NIP-17 support (#449) 2024-10-24 21:10:09 -03:00
fiatjaf 5c538efa38 nip28: fix naming bug. 2024-10-23 17:11:35 -03:00
fiatjaf 013daae91b nip05: fix test. 2024-10-23 17:09:56 -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
António Conselheiro aba266b8e6
Suggestion: export kinds as named types (#447)
* including kinds for nip17 and nip59

* including kinds as types

* solving linter with prettier
2024-10-23 10:39:39 -03:00
Asai Toshiya d7dcc75ebe nip19: completely remove nrelay. 2024-10-22 13:06:34 -03:00
fiatjaf b18510b460 nip13: speed improvements. 2024-10-22 13:03:29 -03:00