fiatjaf
a187e448f2
get rid of some of the HTML escaping that plagues golang json.
2024-11-11 23:09:15 -03:00
fiatjaf
847f8aaa69
remove duplicated password decryption prompts by returning the bare key together with the Keyer when it is given.
2024-10-29 21:11:15 -03:00
fiatjaf
134d1225d6
nak event: presence of key flags indicates the need to resign a given event.
...
fixes https://github.com/fiatjaf/nak/issues/41
2024-10-29 13:33:35 -03:00
fiatjaf
d7c0ff2bb7
update go-nostr keyer interface and make req --auth work again.
2024-09-22 19:21:41 -03:00
fiatjaf
dae7eba8ca
use keyer.Keyer in most places instead of raw bunkers and plaintext keys, simplifies the code a little at the cost of some abstraction but I think it's strictly good this time.
2024-09-17 11:33:02 -03:00
fiatjaf
2b5f3355bc
use a single global sdk.System and its Pool.
2024-09-17 11:33:02 -03:00
arkinox
9bbc87b27a
specify how ; can separate multiple tag values
2024-09-10 19:13:25 -03:00
fiatjaf
36c32ae308
make it possible to have empty content on kind 1.
...
fixes https://github.com/fiatjaf/nak/issues/32
2024-08-26 15:49:13 -03:00
fiatjaf
cfdea699bc
fix using NOSTR_SECRET_KEY environment variable.
2024-08-21 10:46:29 -03:00
fiatjaf
014c6bc11d
--pow: parallel work.
2024-08-20 23:06:14 -03:00
fiatjaf
9d43e66fac
nak event --pow
...
closes https://github.com/fiatjaf/nak/issues/29
2024-08-20 10:34:47 -03:00
fiatjaf
c90e61dbec
set .DisableSliceFlagSeparator to true.
...
fixes nostr:nevent1qqs9qwgwnr2rzguzrgt99hhhyv8e84mcdr4mnk86uvm6ndjvzl4rjxqpzpmhxue69uhkztnwdaejumr0dshsz9mhwden5te0vf5hgcm0d9hx2u3wwdhkx6tpdshszxnhwden5te0vfhhxarj9ekx2cm5w4exjene9ehx2ap0j8u0fj
2024-08-07 11:46:08 -03:00
fiatjaf
928c73513c
just move imports around.
2024-07-30 11:43:14 -03:00
fiatjaf
220fe84f1b
hardcode our fork of urfave/cli because go is stupid.
...
fixes https://github.com/fiatjaf/nak/issues/26
2024-07-23 15:23:13 -03:00
fiatjaf
49ce12ffc2
use natural date parser thing for req "since", "until" and event "ts".
2024-07-13 13:07:49 -03:00
fiatjaf
a5013c513d
disallow negative kinds and limits.
2024-07-13 13:07:49 -03:00
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