Closed staab closed 2 years ago
I noticed the same behavior on https://webln.twentyuno.net/info for @getalby.com acounts:
I think we can add the missing fields for LNDHub, but I think there are a few cases where connectors do not provide this information. (Galoy, LNBits) I'll have a look into it.
sorry for my late reply here. What do you try to do exactly?
Please note that when using a custodial connector (Alby connected to LndHub for example) then the node pub_key is the key of the shared node. (the same for many users)
Interesting — I am trying to put together sort of a "sign in with wallet" feature for a social-sign-in type of thing. But if public keys are not unique, it seems I won't be able to use Alby to support this use-case. But I'm a little confused, if the node id is shared, how do payments get routed to the right user?
Is there a specific reason for you to use data from webln.getInfo()
for that?
You might want to take a look at LNURL-auth for doing authentication via Lightning. There are several libraries available that allow you to integrate that into your application.
No, just dipping my toes in here, though I am hoping for a client-side-only solution. I'll take a look at LNURL-auth!
Can this be closed then?
Yep, thanks for your help!
as an alternative to lnurl-auth you can also use the signMessage
call. typically those authentication options work with requesting a signature from the user. The user then proofs to have the private key to a public key.
but for web authentications I think lnurl-auth is the current way to go. It generates a key for each website and thus preserves the user's privacy.
@escapedcat or @reneaaron , I'm using alby with bitcoin-connect-react. I am trying to get the pubkey from my connected alby account so that i can do a keysend to it later, but looks like that is not working. Can you confirm that i will be unable to send keysend to getalby wallet?
Hi @Jared-Dahlke let's move this conversation to the issue you opened: https://github.com/getAlby/lightning-browser-extension/issues/3131
I am looking at using webln to build a social website which uses signing to verify messages, and shares a user's public key as an account's unique identifier. It looks like Alby doesn't fulfill the entire webln spec, since when I call:
I get
I'd love to get a node.pubkey back per the spec. I can sort of work around this by asking the user to sign a constant message to get a derived key, e.g.,
But that brings up a prompt, which is a weird user experience.