Commit Graph
65 Commits
Author SHA1 Message Date
fiatjaf 7f11c0c618 unsplit, backwards-compatibility, wasm relay and pool must be configured manually from the abstract classes. 2023-12-21 19:57:28 -03:00
fiatjaf a4ae964ee6 split relay and pool into pure and wasm modules. 2023-12-21 17:27:42 -03:00
Asai Toshiyaandfiatjaf_ 7552a36ff2 Update README.md 2023-12-20 13:41:52 -03:00
fiatjaf 8f03116687 tweak readme. 2023-12-19 14:21:04 -03:00
fiatjaf e6d1808fda update readme to mention fragment importing and nostr-wasm. 2023-12-19 14:14:40 -03:00
fiatjaf fe87529646 change tests and nips to use the new api. 2023-12-19 13:58:37 -03:00
fiatjaf 7a6c0754ad fix github actions again and put a badge in the readme. 2023-12-18 09:53:44 -03:00
fiatjaf 88703e9ea2 update readme with new api. 2023-12-17 22:46:35 -03:00
fiatjaf 1357642575 adjust packages exported. 2023-12-16 13:08:37 -03:00
fiatjaf 867aa11d12 remove all the NIP-26 stuff. 2023-12-13 15:24:57 -03:00
Paul MillerandGitHub eb0a9093f2 Implement NIP-44: secure versioned replacement for NIP4 (#221) 2023-09-29 20:43:48 -03:00
SherryandGitHub c73268c4e2 Add kind to nevent decode and encode (#304) 2023-09-26 12:20:17 -03:00
Sepehr Safariandfiatjaf_ 073dcaafd6 Update README.md
add docs about batchedList.
2023-09-15 20:38:39 -03:00
Asai ToshiyaandGitHub f9a048679f Improve example for finishEvent 2023-09-11 12:53:25 +09:00
Alex Gleason e7aa23cb1d README: add a note about typescript 5.0 2023-08-31 13:51:17 -05:00
Alex Gleason 718032022c just format 2023-08-31 13:42:15 -05:00
jiftechnify 8296ce897c fix a code sample in README
- add pool.close() usage
2023-08-28 01:54:33 +09:00
jiftechnify 3ca78c0e13 fix code samples in README 2023-08-28 01:47:35 +09:00
fiatjaf 9d690814ca turn .publish() into a normal async function returning a promise.
this simplifies the code and makes the API more intuitive.

we used to need the event emitter thing because we were subscribing to the same relay
to check if the event had been published, but that is not necessary now that we assume
an OK response will always come.

closes https://github.com/nbd-wtf/nostr-tools/issues/262
2023-07-30 18:23:05 -03:00
fiatjaf 0e364701da link to ndk and snort system. 2023-06-17 08:37:20 -03:00
Luka Doverandfiatjaf_ 977316915b Fix subtle inconsistency with NIP-04 in the decryption example
Sender's pubkey was incorrectly searched for in the `p` tag, where receiver's pubkey is found; use `event.pubkey` instead.
2023-05-03 09:44:03 -03:00
Alex Gleason 9a3e05ce5f Rename signEvent to getSignature 2023-04-23 11:13:15 -05:00
Alex Gleasonandfiatjaf_ 92988051c6 Add Unlicense 2023-04-20 12:22:39 -03:00
fiatjaf 8818e4f88a add parseReferences() for NIP-10 and NIP-27. 2023-03-26 09:44:33 -03:00
Eggeandfiatjaf_ e48d722227 Fixed readme for publishing with pool 2023-03-01 15:29:24 -03:00
fiatjaf a4c713efcb fix readme example.
fixes https://github.com/nbd-wtf/nostr-tools/issues/136
2023-02-27 12:43:24 -03:00
michaelhall923andfiatjaf_ 9530849f0a Fix pool sub example 2023-02-26 07:43:35 -03:00
BilligsterUserandfiatjaf 7bfd23af3c update close() usage
Signed-off-by: BilligsterUser <billigsteruser@protonmail.com>
2023-02-17 21:07:59 -03:00
Roland Bewickandfiatjaf f9748d9cc3 doc: fix order of commands to connect to relay 2023-02-16 12:35:13 -03:00
Roland Bewickandfiatjaf 3a22dd3da6 doc: add installation instructions 2023-02-16 12:29:09 -03:00
fiatjaf 0ddcfdce68 remove "seen" event from Pub.
too complicated. if anyone wants this they can do it themselves.
2023-02-15 20:21:29 -03:00
RbnRncnandfiatjaf 43ccb72476 docs: import SimplePool fix
Small fix of import SimplePool in new multiple relay docs.
2023-02-12 08:41:22 -03:00
fiatjaf b2b7999517 notice about just.
closes https://github.com/nbd-wtf/nostr-tools/pull/106
2023-02-09 22:02:07 -03:00
fiatjaf 9bcaed6e60 fix tests, .seenOn() method for pools. 2023-02-09 22:01:01 -03:00
fiatjaf ff3bf4a51c improvements and fixes on pool. 2023-02-09 12:05:31 -03:00
fiatjaf 7ff97b5488 list() and get() methods. 2023-02-08 16:37:53 -03:00
fiatjaf b2d1dd2110 a better way to do pubs and subs with SimplePool. 2023-02-08 14:15:54 -03:00
fiatjaf cc8e34163d most simple relay pool. 2023-02-08 08:39:59 -03:00
David Strayhornandfiatjaf 160987472f Update README.md
remove extra &&
2023-01-14 08:20:10 -03:00
Callum Macdonaldandfiatjaf 8b18341ebb Minor typo fix 2023-01-09 15:00:28 -03:00
fiatjaf 91b67cd0d5 fix readme signing example.
fixes https://github.com/nbd-wtf/nostr-tools/issues/78
2023-01-04 10:15:16 -03:00
pseudozachandfiatjaf 3cb351a5f4 fix typo 2022-12-28 09:18:09 -03:00
fiatjaf 50c3f24b25 replace two packages with a @scure dependency that already existed. 2022-12-27 11:35:21 -03:00
fiatjaf 83c397b839 do event signature and verification synchronously. 2022-12-23 17:32:13 -03:00
fiatjaf cd7d1cec48 implement nip26 delegation. 2022-12-23 17:30:35 -03:00
fiatjaf ac698ef67d make relay.connect() an awaitable thing. 2022-12-22 08:53:40 -03:00
fiatjaf 8aa31bb437 remove websocket-polyfill, instruct nodejs users to install it manually. 2022-12-21 16:23:47 -03:00
fiatjaf 41a1614d89 remove browserify-cipher, use crypto.subtle for nip04. 2022-12-21 16:04:00 -03:00
Sandwichandfiatjaf d5cf5930d1 Fix example code in readme, resolves #47 2022-12-21 08:44:52 -03:00
fiatjaf 83148e8bdf fix small things in README. 2022-12-20 22:34:19 -03:00