Commit Graph

41 Commits

Author SHA1 Message Date
fiatjaf
8f51fe757b remove nson.
it's not being used by anyone and didn't gain enough traction, and also
now I think I have a more efficient way of encoding this, so using that
new scheme in the future will be better than this.
2024-07-13 13:06:51 -03:00
fiatjaf
316d94166e fix lineProcessingError() -- it wasn't returning a ctx so it was a noop. 2024-07-11 15:33:44 -03:00
fiatjaf
ac00c5065f nak req: --force-pre-auth flag. 2024-07-10 14:48:02 -03:00
fiatjaf
dba2ed0b5f update to cli v3. 2024-06-25 22:18:26 -03:00
fiatjaf
71dfe583ed rename flags from --musig2-... to --musig-..., add id to event and other small tweaks. 2024-05-14 23:52:56 -03:00
fiatjaf
81968f6c0c nak key combine and nak event --musig2 2024-05-14 15:23:08 -03:00
fiatjaf
ffe2db7f96
event: accept tags with a single item. 2024-02-21 09:47:34 -03:00
fiatjaf
6626001dd2
--connect-as to specify client pubkey when using --connect to bunker 2024-02-06 12:47:46 -03:00
fiatjaf
b7a7e0504f
--connect to use nip46 as a client to sign event and auth messages. 2024-02-06 00:58:26 -03:00
fiatjaf
3dfcec69b7
--nevent flag on nak event to print an nevent at the end. 2024-01-24 22:43:23 -03:00
fiatjaf
14b69f36cf
-q to silence stderr, -qq to silence everything. 2024-01-24 22:38:51 -03:00
fiatjaf
59a2c16b42
event: -d shortcut flag and use .AppendUnique() 2024-01-17 08:49:18 -03:00
fiatjaf
48d19196bb fix publishing to multiple relays. 2024-01-16 09:16:56 -03:00
fiatjaf
ad7010e506
use scanner.Buffer() to make stdin able to parse hellish giant events up to 256kb (the default was 64kb). 2024-01-11 21:48:54 -03:00
fiatjaf
a30f422d7d
close relay websockets cleanly. 2024-01-11 21:29:46 -03:00
Daniel Cadenas
f35cb4bd1d Fix tags with values containing = 2023-12-13 20:48:01 -03:00
fiatjaf
2d1e27f766
fix for nil error case on publish. 2023-12-10 20:49:08 -03:00
fiatjaf
b7b61c0723
support --auth/--sec/--prompt-sec on req. 2023-12-09 16:32:04 -03:00
fiatjaf
ed3156ae10
fix event publishing flow: no need to reconnect and AUTH messages make sense. 2023-12-09 09:14:45 -03:00
fiatjaf
30dbe2c1c0
fix handling multiple lines in event (broken in previous commit). 2023-12-07 18:14:26 -03:00
fiatjaf
4d75605c20
print event more consistently and auth when required and allowed. 2023-12-07 18:12:18 -03:00
fiatjaf
bc7cd0939c
nsecbunker work-in-progress. 2023-12-02 12:20:15 -03:00
fiatjaf
d9d36e7619
use easyjson and envelopes. 2023-11-28 15:18:43 -03:00
fiatjaf
f2f9dda33a
actually this is the fix. 2023-11-24 21:19:10 -03:00
fiatjaf
53cb2c0490
event: fix handling of -k and kind in stdin event, and default to 1. 2023-11-24 21:08:13 -03:00
fiatjaf
4a3c7dc825
remove extra whitespace on usage strings. 2023-11-20 15:01:53 -03:00
fiatjaf
8fbfdc65c8
add --silent global option to remove the stderr logs. 2023-11-13 15:03:27 -03:00
fiatjaf
11fe6b5809
connect to relays once per call instead of in each iteration and fail early if no connection works. 2023-11-13 14:57:35 -03:00
fiatjaf
6a7a5eb26e
fix bug with kind being set to zero and replaced silently. 2023-11-13 10:34:09 -03:00
fiatjaf
d95b6f50ff
--prompt-sec for getting a secret key from a prompt. 2023-11-08 14:26:25 -03:00
fiatjaf
78932833df
support running nak with multiple lines of stdin sequentially. 2023-11-07 23:43:37 -03:00
fiatjaf
bf966b3e2c
nak event can take (and optionally modify) events from stdin. 2023-10-29 21:48:18 -03:00
fiatjaf
3ace11d7b2
support --nson flag on event. 2023-07-05 14:11:15 -03:00
fiatjaf
2b2018b742
allow extra tag elements on event creation, separated by ";" 2023-06-26 20:52:12 -03:00
fiatjaf
dff57c207e
accept tags with keys of any length. 2023-06-07 07:02:38 -03:00
fiatjaf
bd7b22c4ff
cancel publish context after 10 seconds. 2023-05-30 13:43:57 -03:00
fiatjaf
9d4f1ec852
print the event before sending it to relays. 2023-05-23 23:31:31 -03:00
fiatjaf
88acf8ccda
update readme and help text. 2023-05-23 23:26:27 -03:00
fiatjaf
bbe4bfdaa0
nak event can also publish to relays directly. 2023-05-23 23:24:55 -03:00
fiatjaf
56f3539d06
nak event: fix created-at. 2023-05-03 19:49:07 -03:00
fiatjaf
2b08f66520
nak event 2023-05-03 18:14:06 -03:00