fiatjaf
|
fd5cd55f6f
|
replace encoding/json with json-iterator everywhere so we get rid of HTML encoding and maybe be faster.
|
2024-12-03 00:43:52 -03:00 |
|
Yasuhiro Matsumoto
|
491a094e07
|
close ch
|
2024-11-23 08:14:13 -03:00 |
|
fiatjaf
|
2988c71ccb
|
nak/b and nak/s user-agents.
|
2024-09-26 22:17:31 -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 |
|
fiatjaf
|
cfdea699bc
|
fix using NOSTR_SECRET_KEY environment variable.
|
2024-08-21 10:46:29 -03:00 |
|
fiatjaf
|
d226cd6ce4
|
fix password input lowercasing characters.
fixes https://github.com/fiatjaf/nak/issues/28
|
2024-08-06 11:05: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
|
48c0e342e3
|
only look for private key in environment variable if --sec is not given.
|
2024-07-23 15:21:14 -03:00 |
|
jeremyd
|
ec2e214c02
|
Allow setting private key via ENV variable
|
2024-07-23 15:18:09 -03:00 |
|
fiatjaf
|
9f62d4679f
|
increase stdin line limit.
|
2024-07-17 13:16:40 -03:00 |
|
fiatjaf
|
27f925c05e
|
left pad keys on nak key too so nak key public 02 works, for example.
|
2024-07-12 14:04:14 -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
|
2079ddf818
|
support prompting for a password on nak decrypt.
|
2024-06-25 13:46:15 -03:00 |
|
fiatjaf
|
363bd66a8a
|
accept relay URLs without scheme everywhere.
|
2024-06-06 15:38:40 -03:00 |
|
fiatjaf
|
bb45059218
|
refactor bunker to work better. remove prompts, use lists of keys and secrets and a new random key.
|
2024-05-15 17:31:01 -03:00 |
|
Yasuhiro Matsumoto
|
8ddb9ce021
|
fix color output on Windows
|
2024-03-28 15:52:30 -03:00 |
|
fiatjaf
|
569d38a137
|
accept multiple arguments in many commands, add a lot of more tests.
|
2024-03-19 11:34:59 -03:00 |
|
fiatjaf
|
34c189af28
|
bunker improvements.
|
2024-03-02 08:18:40 -03:00 |
|
fiatjaf
|
5dd5a7c699
|
bunker: better colors and prompts.
|
2024-02-12 15:39:13 -03:00 |
|
fiatjaf
|
e89823b10e
|
ensure at least one blank line will be emitted when piped.
|
2024-02-06 12:47:58 -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 |
|
mattn
|
01e1f52a70
|
fix panic (#12)
* c.Args().Len() - 1 might be negative value
* fix getStdinLinesOrFirstArgument
* fix getStdinLinesOrFirstArgument
|
2024-02-03 10:03:32 -03:00 |
|
fiatjaf
|
0b9e861f90
|
fix: print prompt to stderr.
|
2024-02-02 14:13:11 -03:00 |
|
fiatjaf
|
bda18e035a
|
fix reading hex secret key from input.
|
2024-02-02 14:11:58 -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
|
14b69f36cf
|
-q to silence stderr, -qq to silence everything.
|
2024-01-24 22:38:51 -03:00 |
|
fiatjaf
|
b17887fe21
|
replace validate32BytesHex() with native calls from go-nostr.
|
2024-01-21 07:45:22 -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
|
b7b61c0723
|
support --auth/--sec/--prompt-sec on req .
|
2023-12-09 16:32:04 -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
|
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
|
795e98bc2e
|
close channel in getStdinLinesOrFirstArgument()
|
2023-11-08 22:54:52 -03:00 |
|
fiatjaf
|
d95b6f50ff
|
--prompt-sec for getting a secret key from a prompt.
|
2023-11-08 14:26:25 -03:00 |
|
fiatjaf
|
714d65312c
|
support multiline stdin on decode, encode and fetch, and improve the helpers.
|
2023-11-08 12:50:36 -03:00 |
|
fiatjaf
|
6f72d3c133
|
fix pipe check.
|
2023-11-07 23:51:07 -03:00 |
|
fiatjaf
|
78932833df
|
support running nak with multiple lines of stdin sequentially.
|
2023-11-07 23:43:37 -03:00 |
|
fiatjaf
|
c6e9fdd053
|
trim spaces from stdin.
|
2023-10-23 08:04:28 -03:00 |
|
fiatjaf
|
ffa41046fd
|
fetch with optional --relay flags.
|
2023-10-20 21:01:11 -03:00 |
|
fiatjaf
|
208d909727
|
support reading from stdin.
|
2023-10-20 20:57:29 -03:00 |
|