eosxx
b66ca1787a
fix(nip04): crypto.subtle is undefined
2023-04-28 05:56:25 -03:00
fiatjaf_
278cdda9c2
Merge pull request #195 from alexgleason/get-signature
2023-04-24 07:28:06 -03:00
Alex Gleason
552530fa3f
Add back deprecated signEvent function with a warning
2023-04-24 01:22:12 -05:00
futpib
13e9b4aa3e
Add NIP-25 utils
2023-04-23 20:19:52 -03:00
Alex Gleason
9a3e05ce5f
Rename signEvent to getSignature
2023-04-23 11:13:15 -05:00
fiatjaf
55ff796b9f
v1.10.1
v1.10.1
2023-04-22 21:59:41 -03:00
fiatjaf_
3ef2ad5bc4
Merge pull request #194 from alexgleason/nip27
2023-04-22 21:58:36 -03:00
Alex Gleason
45c07a5f45
nip27: make matchAll a generator function
2023-04-22 19:22:06 -05:00
Alex Gleason
6a037d1658
nip27.find --> nip27.matchAll
2023-04-22 19:06:53 -05:00
Alex Gleason
dcf101c6c2
yarn format
2023-04-22 18:33:09 -05:00
Alex Gleason
eb97dbd9ef
Add NIP-21 and NIP-27 modules for parsing nostr URIs
2023-04-22 18:30:57 -05:00
Alex Gleason
92988051c6
Add Unlicense
2023-04-20 12:22:39 -03:00
fiatjaf
bf7e00d32a
hotfix types.
v1.10.0
2023-04-18 15:29:28 -03:00
fiatjaf
9241089997
v1.10.0 with @noble/secp256k1 back, nip42 support and nip19 typing improvements.
2023-04-18 15:17:57 -03:00
Lynn Zenn
32c47e9bd8
relay: separate auth() and publish() methods
2023-04-18 15:16:40 -03:00
Lynn Zenn
6e58fe371c
relay: add support for NIP42 authentication
2023-04-18 15:16:40 -03:00
Lynn Zenn
26e35d50e0
relay: fix type errors
2023-04-18 15:16:40 -03:00
fiatjaf
ef3184a6e0
remove @noble/curves. people are not ready for it, causes BigInt issues.
2023-04-18 15:14:21 -03:00
Alex Gleason
56fe3dd5dd
nip19: improve return type
2023-04-18 07:30:43 -03:00
Jonathan Staab
f1bb5030c8
Add support for count
2023-04-16 06:43:38 -03:00
fiatjaf
ac212cb5c8
tag v1.9.0 using @noble/curves.
v1.9.0
2023-04-14 17:09:28 -03:00
Paul Miller
204ae0eff1
Switch from noble-secp256k1 to noble-curves
2023-04-14 16:45:01 -03:00
Alejandro Gomez
f17ab41d72
NIP-19: Add nrelay encoding and decoding
2023-04-14 13:26:31 -03:00
fiatjaf
f6f5ee8223
tag v1.8.4
v1.8.4
2023-04-11 18:23:04 -03:00
Alex Gleason
a05506468d
Add NIP-13 (proof-of-work) module
2023-04-11 18:21:40 -03:00
Agustin Kassis
674ff66b6f
added badge events
...
Added the following badge kinds according to NIP 58
BadgeDefinition: 30008,
BadgeAward: 8,
ProfileBadge: 30009,
2023-04-11 17:39:13 -03:00
channelninja
731705047a
fix(nip05): allow dot in name
2023-04-09 19:32:58 -03:00
Alex Gleason
94b382a49f
Fix validateEvent type checking
2023-04-08 17:53:31 -03:00
fiatjaf
199411a971
yarn.lock with deduped packages.
v1.8.3
2023-04-08 15:44:37 -03:00
fiatjaf
a1dc6f41b9
fix conflict in noble dependencies.
2023-04-08 15:43:47 -03:00
Alex Gleason
5b59b93d86
validateEvent: use assertion function
2023-04-08 15:07:25 -03:00
OFF0
12acd7bdca
scripts: add npm build, format and test scripts
...
in addition to the just tasks, this commit adds npm scripts back,
for convenience.
example taks:
- npm test
- npm test filter.test.js
- npm run build
- npm run format
in yarn it should just work without 'run' i.e. 'yarn build'.
2023-04-08 09:05:23 -03:00
OFF0
3bdb68020d
nip01: add support for filter prefix in authors and ids
...
so clients can filter events by prefix in authors and ids as
described in nip-01, i.e. to subscribe to mined events starting
with zeroes or to add some privacy for clients that may not want
to disclose the exact filter.
see also https://github.com/scsibug/nostr-rs-relay/issues/104
2023-04-07 08:29:00 -03:00
Susumu OTA
b0a58e2ca4
fix: Event type has id and sig field.
2023-04-06 06:15:07 -03:00
Susumu OTA
b063be76ae
fix: must be tag not ref.
2023-04-06 06:14:40 -03:00
fiatjaf
e3cea5db16
tag v1.8.2
v1.8.2
2023-04-04 10:26:35 -03:00
fiatjaf
9ee58bd6c7
fix async race condition that caused pool.publish() callbacks to not be called.
...
fixes https://github.com/nbd-wtf/nostr-tools/issues/169
2023-04-04 10:26:23 -03:00
Steve Perkins
f1eb9a3bc7
Reuse connectionPromise for relay connect.
2023-04-04 08:10:51 -03:00
futpib
ce081bb4cb
Rename pubkeys to profiles (NIP-10)
2023-04-02 10:04:04 -03:00
futpib
7413072e9f
Fix pubkey relays lost in NIP-10 parsing
2023-04-02 08:34:36 -03:00
futpib
4c464b39cf
Fix explicit NIP-10 root/reply/mention markers parsed incorrectly
2023-04-02 08:34:36 -03:00
futpib
11ef43abdc
Run prettier
2023-04-02 08:34:36 -03:00
futpib
3e67f9b014
Add NIP-10 thread root/reply/mention parsing
2023-04-01 08:30:22 -03:00
futpib
0933fba6d5
Add .editorconfig
2023-04-01 08:18:57 -03:00
fiatjaf
51b8f42529
bump to v1.8.1
v1.8.1
2023-03-27 10:41:10 -03:00
fiatjaf
24d885aaeb
Revert "earlier .add() on pool _knownIds."
...
This reverts commit 687f387385 .
2023-03-27 10:27:42 -03:00
Sepehr Safari
74c77a2e9f
add 17 test cases for nip57 ( #166 )
2023-03-26 19:38:33 -03:00
fiatjaf
ce73b96565
bump to v1.8.0
v1.8.0
2023-03-26 09:45:03 -03:00
fiatjaf
8818e4f88a
add parseReferences() for NIP-10 and NIP-27.
2023-03-26 09:44:33 -03:00
fiatjaf
5a63c75f24
nevent author is not mandatory.
2023-03-26 09:35:42 -03:00