-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got an error stack after a successful follow, cannot repro #7
Comments
In the 4th line of iex, it is attempted to follow using an npub... The solution probably is {:ok, pubkey} = PublicKey.from_npub("npub15tmnw5709va4pgrzpn2kqnnuc2ejssm9a599262jwdpmvmwn9rmqawlkv7")
NostrApp.follow(pubkey) This probably is under documented as we speak. Also, an improvement might be that the lib converts npubs automatically, so that 4th line you made might start to make sense. To be honest, as a user, I'd expect what you did to work. Unfortunately, as we speak, most functions expect a binary version of most stuff, especially keys. |
Also, the fact that that specific line returns a Been a while I haven't tinkered with that lib, so, might be that in the past I made some improvements to make it work, but on the top of my head, that's not the case. |
Got the same error with a binary pubkey:
|
Got this error stack once, but restarted iex and it didn't happen the second time.
I'm pretty sure this is a legit npub:
iex(4)> NostrApp.follow("npub15tmnw5709va4pgrzpn2kqnnuc2ejssm9a599262jwdpmvmwn9rmqawlkv7")
:ok
iex(5)>
11:11:34.204 [info] sent an follow command for npub15tmnw5709va4pgrzpn2kqnnuc2ejssm9a599262jwdpmvmwn9rmqawlkv7
11:11:34.479 [info] wss://relay.nostr.bg sent 2484cad4a61410b8ed3129b25fe050f13c7e5eb60fef1e99ea3c8160fa0218d0: true
Here's how I initialized my iex:
.iex.local.exs:
from mix.lock:
Elixir:
The text was updated successfully, but these errors were encountered: