Is there a reason the private key is exported as hex? Could you change it to the actual nsec? Seems inconvenient…
Discussion
Yeah good point, no reason not to display both formats in either mode for convenience. Just updated that.
Also heads up that I moved the block/thread config to the makefile as compiler flags so people don’t have to edit 2 files.
Thanks!
Much better now. Another bug I saw — I don’t think it actually shutdown properly. After pressing Ctrl + C, my GPU was running and my entire computer stalled… it didn’t stop the program clearly. I had to forcefully shutdown my computer. May be worth investigating. Was in WSL Ubuntu.
Alas, the nsec doesn’t actually match to the public key. When I paste in the nsec on Damus or primal, it doesn’t show an account with that public key. Something is seriously broken.
😬 well that’s embarrassing. Spent too much time on performance and not enough on testing. The math was correct, it was just backwards. Just pushed a fix.
Validated on both prefix types in a nostr client.

Also for the record, while some might blame Claude, AI slop, etc etc… I see this as my fault. Once I cloned the Damus repo and gave Claude the right instructions for testing everything was sorted out quickly. Had I done that up front, which is the proper approach, this would have been avoided.
No worries, we all make mistakes! Thank you for fixing.