Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

noscl public fails with "Error decoding key from hex" #60

Open
WesleyBatista opened this issue Aug 26, 2023 · 2 comments
Open

noscl public fails with "Error decoding key from hex" #60

WesleyBatista opened this issue Aug 26, 2023 · 2 comments

Comments

@WesleyBatista
Copy link

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
@kuba-04
Copy link

kuba-04 commented Jun 20, 2024

I have the same problem. But where is your config.json?

@fiatjaf
Copy link
Owner

fiatjaf commented Jun 20, 2024

Use https://github.com/fiatjaf/nak instead

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants