Commit Graph

151 Commits

Author SHA1 Message Date
fiatjaf
bda18e035a
fix reading hex secret key from input. 2024-02-02 14:11:58 -03:00
fiatjaf
0d46d48881
fix naddr. 2024-01-29 15:37:21 -03:00
fiatjaf
6f24112b5e
support ncryptsec in all operations that require a private key and have a nice password prompt. 2024-01-29 10:56:58 -03:00
fiatjaf
f4921f1fe9
nak key: generate, public, encrypt, decrypt. 2024-01-25 08:21:09 -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
3f7089e27e
signal that we accept patches over NIP-34. 2024-01-23 10:20:54 -03:00
fiatjaf
6a75c8aec3
UseShortOptionHandling and Suggest 2024-01-23 10:20:54 -03:00
fiatjaf
b17887fe21 replace validate32BytesHex() with native calls from go-nostr. 2024-01-21 07:45:22 -03:00
fiatjaf
77103cae0c
req: -d flag too. 2024-01-17 08:50:59 -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
584881266e
bunker: update to go-nostr nip46 api breaking change. 2024-01-11 21:41:50 -03:00
fiatjaf
a30f422d7d
close relay websockets cleanly. 2024-01-11 21:29:46 -03:00
fiatjaf
637b9440ef
upgrade go-nostr and xsync. 2024-01-10 21:19:19 -03:00
fiatjaf
16c1e795bd
fetch: more places to fetch relay lists from. 2024-01-02 11:05:43 -03:00
OHASHI Hideya
8373da647e Fix tags with values containing = 2023-12-24 09:29:29 -03:00
fiatjaf
f295f130f2
remove .scalafmt.conf 2023-12-23 21:30:58 -03:00
fiatjaf
5415fd369c
update go-nostr to fix pool infinite loop. 2023-12-15 11:15:12 -03:00
Daniel Cadenas
f35cb4bd1d Fix tags with values containing = 2023-12-13 20:48:01 -03:00
Yasuhiro Matsumoto
242b028656 -until now 2023-12-12 13:34:30 -03:00
Yasuhiro Matsumoto
f0d90b567c -since now 2023-12-12 13:34:30 -03:00
fiatjaf
2d1e27f766
fix for nil error case on publish. 2023-12-10 20:49:08 -03:00
fiatjaf
bfa72640cd
bunker: a better prompt. 2023-12-09 17:42:01 -03:00
fiatjaf
e5b0b15908
bunker: improve error message. 2023-12-09 17:11:55 -03:00
fiatjaf
0860cfcf6d
rename nsecbunker->bunker. 2023-12-09 16:37:59 -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
26b1aa359a
nsecbunker/nip46 is working now. 2023-12-02 15:33:37 -03:00
fiatjaf
bc7cd0939c
nsecbunker work-in-progress. 2023-12-02 12:20:15 -03:00
fiatjaf
5657fdc6a7
update go-nostr. 2023-12-01 13:22:04 -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
05f2275c9e
nak relay 2023-11-20 15:00:50 -03:00
fiatjaf
082be94614
update go-nostr. 2023-11-19 07:20:52 -03:00
fiatjaf
15217f2466
fetch: fix handling of --relay tags. 2023-11-15 09:48:57 -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
795e98bc2e
close channel in getStdinLinesOrFirstArgument() 2023-11-08 22:54:52 -03:00
fiatjaf
4fdd80670a
encode npub and nprofile tests. 2023-11-08 22:54:34 -03:00
fiatjaf
e507d90766
beginnings of some humble tests. 2023-11-08 22:26:41 -03:00
fiatjaf
d95b6f50ff
--prompt-sec for getting a secret key from a prompt. 2023-11-08 14:26:25 -03:00
fiatjaf
200e4e61f7
add a more complex example of fetching subnotes to readme. 2023-11-08 12:56:38 -03:00
fiatjaf
714d65312c
support multiline stdin on decode, encode and fetch, and improve the helpers. 2023-11-08 12:50:36 -03:00