noscl
noscl copied to clipboard
`noscl public` fails with "Error decoding key from hex"
steps to reproduce:
$ noscl key-gen
seed: royal vintage noise battle film insane define entire airport shield olympic purse doll advance chief gas equal dad route pride just eyebrow few before
private key: 2338b5466b6aefb19f64a6d907e771da7894df1a07a39207aa1353754df8244f
$ noscl setprivate 2338b5466b6aefb19f64a6d907e771da7894df1a07a39207aa1353754df8244f
$ noscl public
<> 2023/08/26 17:32:09 Error decoding key from hex: encoding/hex: invalid byte: U+0023 '#'
config.json:
{
"relays": {},
"following": {},
"privatekey": "#8\ufffdFkjﱟd\ufffd\ufffd\u0007\ufffdq\ufffdx\ufffd\ufffd\u001a\u0007\ufffd\ufffd\u0007\ufffd\u0013SuM\ufffd$O"
}
environment:
-
go version go1.21.0 darwin/arm64(MacOS M1) - intallation method:
git clone+go install
If I manually set the privatekey in the config.json then I get this:
$ noscl public
25991580b28caf03e519215d25fb3dc0c49f623a8a6f0b518bdf785e0876ecd9
npub1ykv3tq9j3jhs8egey9wjt7eacrzf7c363fhsk5vtmau9uzrkanvsqwnx7u
I have the same problem. But where is your config.json?
Use https://github.com/fiatjaf/nak instead