aboutsummaryrefslogtreecommitdiffstats
path: root/tools/%2522%2520behind%2527,%2520%2521
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-15 15:13:12 -0700
committerAdam Soltys <[email protected]>2026-10-15 15:13:12 -0700
commit46829a7a54bf21138d8bb068966f7f083ac8df4c (patch)
tree0f7abb459e1861fdc3eca876130ee160910880a9 /tools/%2522%2520behind%2527,%2520%2521
parent393d4d77f03b015e2c15be19642cdd01364a3153 (diff)
downloadcoinosv3-master.tar.gz
coinosv3-master.zip
Lightning login (LNURL-auth): a site's login lnurl in Send logs you in instead of trying to pay it. A community member pasted Stacker News's lightning-login lnurl into Send and got "stacker.news: no sig query variable provided" (2026-10-16): every lnurl1 was taken for LNURL-pay, their login endpoint was fetched as if for pay parameters, and its refusal came back as the error. Now an lnurl whose URL carries tag=login and a 32-byte k1 (parseLnurlAuth; lightning: prefix and upper case fine; action register|login|link|auth) is a login: the wallet asks first — the site's name, what it is asking (log in / create an account / link / confirm it's you), that the challenge is signed with a key kept for this site alone and that nothing is paid or shared — then signs k1 (ECDSA, DER) with the LUD-05 linking key (m/138'/0 as hashing key, HMAC-SHA256 of the domain read as four 32-bit child indexes under m/138'; the same wallet is the same user on a site every time and a different one elsewhere; from the mnemonic, or an imported xprv) and calls back with sig and key (lnurlAuthKey, lnurlAuthLogin). The site's OK shows "Logged in to <site>", its reason otherwise, with Try again and Back. It takes no balance (checked before canPay in zaps' matchSendText), so it works on an empty wallet and from an Android lightning: intent. tools/lnurl-auth-unit-test.js (login vs pay vs bad k1; one key per site per wallet; the DER signature verifies under the key sent; the server's reason is the error) and tools/lnurl-auth-test.js (a stand-in site that verifies the signature: the ask, nothing sent before Log in, OK, the same key next time, a register link, a refusal's words); send-dest-test passes.HEADmaster
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01J1Kon8bxJoHRpJdSzshCkp
Diffstat (limited to 'tools/%2522%2520behind%2527,%2520%2521')
0 files changed, 0 insertions, 0 deletions