author: akumaigorodski
-
User scans a LNURL QR code or accesses an
lightning:LNURL..
link withLN WALLET
andLN WALLET
decodes LNURL. -
LN WALLET
makes a GET request toLN SERVICE
using the decoded LNURL. -
LN WALLET
gets JSON response fromLN SERVICE
of form:{ "uri": string, // Remote node address of form node_key@ip_address:port_number "k1": string, // a second-level hex encoded secret byte array to be used by wallet in `InvokeHostedChannel` message, may be random if Host has no use for it "alias": string, // Optional remote node alias "tag": "hostedChannelRequest" // type of LNURL }
or
{"status": "ERROR", "reason": "error details..."}
-
LN WALLET
opens a connection to the target node usinguri
field. -
Once connected,
LN WALLET
sends anInvokeHostedChannel
message to the target node usingk1
converted to byte array. -
The rest is handled by hosted channel protocol.