Yasuhiro Matsumoto
3fa1e2267e
curl: fix completely broken command, it lost its key flags when they moved to the root command (which realCurl bypasses) and Run was eating the first flag as the program name.
2026-07-15 10:38:26 +09:00
mattn
97b544fb6e
Merge pull request #154 from mattn/fix/bunker-concurrency
...
bunker: fix concurrency bugs
2026-07-15 01:33:15 +00:00
Yasuhiro Matsumoto
44db7af6c0
bunker: fix concurrency bugs, config.Clients/newSecret/cancelPreviousBunkerInfoPrint were accessed from multiple goroutines without a mutex, and nostrconnect subscriptions forwarded events into the pool-owned channel which panics once the pool closes it.
2026-07-15 10:26:55 +09:00
mattn
34281a9c8e
Merge pull request #153 from mattn/fix/nip22-parent-of-external-comment
...
publish: reference the parent comment with an e tag under external-content (I) threads
2026-07-15 01:25:47 +00:00
Yasuhiro Matsumoto
4f798759dd
publish: reference the parent comment with an e tag when commenting under an external-content (I) thread, instead of pointing at the root i again.
2026-07-15 10:24:18 +09:00
mattn
198cbc6d4a
Merge pull request #152 from mattn/fix/event-stale-tags
...
event: reset tags with [:0] instead of clear() between stdin events
2026-07-15 01:16:38 +00:00
Yasuhiro Matsumoto
5d45849595
event: reset tags with [:0] instead of clear(), which keeps the length and leaves phantom empty tags on subsequent stdin events.
2026-07-15 10:15:07 +09:00
mattn
8eb6b7303c
Merge pull request #151 from mattn/fix/nip22-empty-relay-hint
...
publish: don't put the pubkey in the relay-hint position of NIP-22 E/e tags
2026-07-15 01:13:51 +00:00
Yasuhiro Matsumoto
002763669b
publish: don't put pubkey in the relay-hint position of NIP-22 E/e tags when there is no relay hint.
2026-07-15 10:12:23 +09:00
mattn
ecb7514716
Merge pull request #150 from mattn/fix/wallet-nutzap-setup
...
wallet: fix nutzap setup
2026-07-15 01:11:13 +00:00
Yasuhiro Matsumoto
b188d7f803
wallet: fix nutzap setup, --mint was read under the wrong name and never used, the mandatory pubkey tag was never set on the kind:10019, and --force didn't actually replace the private key.
2026-07-15 10:09:46 +09:00
mattn
d79fd1ba59
Merge pull request #149 from mattn/fix/dekey-mismatched-key-kept
...
dekey: don't keep a decrypted key that doesn't match the announced pubkey
2026-07-15 01:08:34 +00:00
Yasuhiro Matsumoto
e62bf97acc
dekey: don't keep a decrypted key that doesn't match the announced pubkey, it could end up being redistributed to other devices.
2026-07-15 10:07:02 +09:00
mattn
c709647823
Merge pull request #148 from mattn/fix/key-combine-crash
...
key: fix combine crashing with unbounded recursion when no valid pubkeys are given
2026-07-15 01:04:15 +00:00
Yasuhiro Matsumoto
8563178bfd
key: combine crashed with unbounded recursion when no valid pubkeys were given, and silently dropped unparseable keys from the result.
2026-07-15 09:40:55 +09:00
fiatjaf
d374fe9bd3
publish: allow kind:1111 comment, force when --comment is used instead of --reply.
2026-07-02 13:32:41 -03:00
fiatjaf
4ea0edc52b
two blossom tweaks.
2026-07-02 00:48:43 -03:00
fiatjaf
6087c71072
publish: proper root/reply tags.
2026-07-02 00:18:30 -03:00
fiatjaf
0bcb90e37e
publish: also read from arguments, not only stdin.
2026-07-02 00:12:54 -03:00
fiatjaf
98b7a1ae6a
admin: color flag is an int now.
2026-06-25 19:00:44 -03:00
fiatjaf
46a809d284
admin: new nip86 "role" commands.
2026-06-25 17:54:52 -03:00
Yasuhiro Matsumoto
cbfc16f354
add --jq-raw flag to print jq string results unquoted, like jq -r
2026-06-22 21:14:26 -03:00
fiatjaf
62fa610a06
add --jq examples to README.
v0.20.0
2026-06-21 08:38:15 -03:00
fiatjaf
5afdce2672
profile: flags to print only specific things.
2026-06-21 08:26:55 -03:00
fiatjaf
4fd7400272
date function helpers in --jq
2026-06-21 08:19:33 -03:00
fiatjaf
40a934e3f9
fix conflicts with running bunker connections (client and server apparently) through auth-required relays, clarify "connect-as" and use a special flag for it, let's see.
...
hopefully fixes https://github.com/fiatjaf/nak/issues/116
2026-06-20 20:30:45 -03:00
fiatjaf
12000232a7
bunker: remove duplicated "--sec" flags that were interfering with everything.
2026-06-20 20:24:18 -03:00
fiatjaf
cc879b6bf6
serve: --auth and --eager-auth flags.
2026-06-20 20:23:39 -03:00
fiatjaf
483bf94ff4
support --jq flag on fetch and event commands.
2026-06-17 11:39:30 -03:00
fiatjaf
814059fcec
also use the default key as the bunker client key if nothing else is provided.
2026-06-17 11:11:57 -03:00
fiatjaf
b3e009730c
use a default key that is different for each machine.
2026-06-17 10:59:22 -03:00
fiatjaf
7bbff0a3ad
fix blossom ipv6 dialing.
...
fixes https://github.com/fiatjaf/nak/issues/142
v0.19.13
2026-06-15 08:31:32 -03:00
fiatjaf
c97e1815b4
nsite: --title
2026-06-15 08:30:22 -03:00
fiatjaf
29113783b3
nip: use the full terminal width.
2026-06-13 09:39:02 -03:00
fiatjaf
59c691f4d5
bring back color.
2026-06-11 18:10:33 -03:00
fiatjaf
0c8e643609
key and auth flags on root command.
2026-06-11 17:49:20 -03:00
fiatjaf
7872c61a4d
combineFlags() and authFlags compendium.
2026-06-11 16:23:20 -03:00
fiatjaf
97950d1203
nsite: fine-grained relay control.
2026-06-11 14:16:18 -03:00
fiatjaf
0960ceb6a6
nsite: --tag
2026-06-11 13:59:34 -03:00
fiatjaf
6a95407939
fix getKindSlice() usage. keep nil when no kinds are specified.
v0.19.12
2026-06-08 21:41:14 -03:00
fiatjaf
ac988a792d
nsite: log identifiers instead of printing.
2026-06-08 21:14:26 -03:00
fiatjaf
fa41c22c12
nak profile example on README.
2026-06-04 16:13:13 -03:00
fiatjaf
c2902bfb5d
nak kind, and accept names on --kind flags.
2026-06-04 16:13:13 -03:00
fiatjaf
0f7268c071
preliminary (half-broken) podcast support.
2026-06-04 16:12:48 -03:00
Yasuhiro Matsumoto
f7a00cec10
group chat: handle events synchronously in select, drop goroutine and mutex
2026-06-04 15:05:59 -03:00
alltheseas
52cf03d423
gift unwrap: override rumor pubkey from seal and recompute ID
...
NIP-17 requires clients verify that the kind:14 pubkey matches
the kind:13 pubkey to prevent sender impersonation. The CLI
gift unwrap path outputs the rumor as-is without setting the
pubkey from the verified seal or recomputing the event ID.
This mirrors nip59.GiftUnwrap() which does both operations.
The override is placed after the ZeroID sentinel check to
preserve decryption failure detection.
Fixes https://github.com/fiatjaf/nak/issues/110
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-06-04 09:16:03 -03:00
alltheseas
d0c291b25c
gift unwrap: verify seal signature before trusting pubkey
...
The CLI gift unwrap path skips seal signature verification that
nip59.GiftUnwrap() performs. Without this check, a forged seal
with an arbitrary pubkey would be trusted for decryption key
lookup and sender identity.
Fixes https://github.com/fiatjaf/nak/issues/110
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-06-04 09:16:03 -03:00
mattn
6ee60cb197
Merge pull request #139 from mattn/fix/count-auth-handler-consistency
...
count: use Pool.AuthRequiredHandler to match other commands
2026-06-04 01:56:59 +00:00
mattn
c2eb2d7bdd
Merge pull request #138 from mattn/fix/req-sync-save-error
...
req: propagate non-duplicate save errors when loading sync file
2026-06-04 01:56:34 +00:00
Yasuhiro Matsumoto
168a182d50
count: use Pool.AuthRequiredHandler to match other commands.
2026-06-04 10:55:14 +09:00