mikedilger / relay-manager

Command line nostr relay management
MIT License
1 stars 1 forks source link

Stuck at decrypting key #5

Open fiatjaf opened 1 month ago

fiatjaf commented 1 month ago

Whenever I run this, no matter what I do, the program halts at https://github.com/mikedilger/relay-manager/blob/6e49568228a663b5935f570790a28c4eef436243/src/signer.rs#L27 forever.

mikedilger commented 1 month ago

Maybe your encrypted private key uses a very high parameter for it's scrypt value?

I think the scrypt code is compiled with opt=3 even if you compile relay-manager in debug mode (based on the Cargo.toml in nostr-types), but if I'm wrong that could be an issue too.

fiatjaf commented 1 month ago

No, my private key doesn't take more than a second to decrypt anywhere, there must something else going on.

mikedilger commented 1 month ago

Does it prompt you for a password? Do you enter a password? Or are you running it from a script?

fiatjaf commented 1 month ago

Yes, it prompted me and I entered it.