AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 24 Bitcoin

xpay: add xkeysend support.

Public commit record

What the developer wrote

Authored by Rusty Russell

58/100 · Thin
xpay: add xkeysend support.

This uses askrene, so it benefits from previous payment experience.

Changelog-Added: JSON-RPC: `xkeysend` command for keysend with modern routing support.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Descriptive subject✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds a new command called xkeysend to Core Lightning, which lets users send money to another node without needing an invoice. The code itself is a feature addition, not a bug fix. It includes a note that keysend payments do not provide cryptographic proof-of-payment, which is a known limitation of the keysend design. There is no direct evidence in the commit of a security vulnerability being fixed or introduced.

Recommended action

No immediate security action is required. Operators should review the xkeysend documentation to understand that keysend payments lack proof-of-payment, and should ensure only authorized callers can invoke the xkeysend RPC. Developers may want to audit the preapprovekeysend flow and the handling of extra_tlvs for robustness.

Security signals we found

01

New RPC command xkeysend added to plugins/xpay/xpay.c

02

Local preimage generation via randbytes() and SHA256 for keysend payments

03

Self-keysends explicitly rejected with JSONRPC2_INVALID_PARAMS

04

preapprovekeysend called before initiating payment

05

WIRE_INVALID_ONION_PAYLOAD handled specially for keysend (no invstring)

06

Documentation acknowledges lack of proof-of-payment for keysend

Risk score

Why this scored 24/100

Our methodology →
Potential impact 3/30
Exploitability 4/25
Stealth signal 3/15
Affected reach 5/15
Confidence 6/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.