Skip to content

Create a Simple Rust Plugin for Human Readable addresse (BIP-353) lookup in Core Lightning #8361

@ShahanaFarooqui

Description

@ShahanaFarooqui
Collaborator

Implement a Core Lightning plugin in Rust which should have a BIP-353 lookup command and returns the results and the proof. It can utilise already existing crate bitcoin_payment_instructions. In future, xpay and other payment methods can use this feature to resolve BIP-353 addresses.

Acceptance Criteria:

  • BIP353 lookup RPC implemented.
  • RPC returns results and the proof.
  • RPC return appropriate message in case of failure.
  • Automated tests covering most possible scenarios.
  • Detailed documentation of the RPC.

References:

Activity

added this to the v25.09 milestone on Jun 18, 2025
daywalker90

daywalker90 commented on Jun 18, 2025

@daywalker90
Collaborator

I made a PR for this: #8362.

It currently only supports bolt12 offers from bip353 addresses.

The crate you linked and i used would make it quite easy to also lookup lnurlp addresses. Is this wanted?

Are onchain addresses from bip-353 wanted?

I also wasn't sure if a lowercase hex encoding for the proof is the right fit. Any feedback is welcome.

The PR as is would make request over clearnet trying 3 different hard coded DNS servers (cloudflare, google, quad9). Is tor proxying wanted? Should these be configurable?

To write meaningful tests i would assume i have to use a real life bip-353 address, correct? Should i use mine or do you want to provide one?

What do you want me to document for the RPC? Is the output in lightning-cli help enough? A .md file? json schema?

Currently it's just fetchbip353 [address]

added
BOUNTY! 🫰A bounty is available for this PR
Status::AssignedThe issue has been given to a team member for resolution.
on Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BOUNTY! 🫰A bounty is available for this PRStatus::AssignedThe issue has been given to a team member for resolution.pluginrustIssue related to rust

Projects

No projects

Relationships

None yet

    Participants

    @daywalker90@ShahanaFarooqui@madelinevibes

    Issue actions

      Create a Simple Rust Plugin for Human Readable addresse (BIP-353) lookup in Core Lightning · Issue #8361 · ElementsProject/lightning