Skip to content

Reconcile and verify BIP353 DNS records - #8

Merged
Alex71btc merged 2 commits into
mainfrom
fix/upgrade-public-bip353-reconcile
Aug 31, 2026
Merged

Alex71btc merged 2 commits into
mainfrom
fix/upgrade-public-bip353-reconcile

Conversation

@Alex71btc

Copy link
Copy Markdown
Owner

Summary

Improves BIP353 DNS handling and diagnostics for Cloudflare-managed setups.

Public BOLT12 address

  • Checks the configured public BIP353 TXT record against Cloudflare.
  • Prompts the user before recreating a missing record instead of silently writing DNS.
  • Rechecks before repair to avoid races or duplicate writes.
  • Keeps existing invalid/foreign TXT records untouched.
  • Adds DE/EN repair UI to Console, Setup and Pay pages.
  • Keeps the standard BOLT12 address and QR usable while DNS is missing.

Published BIP353 records

  • Adds manual verification for published Alias Manager records.
  • Skips unpublished/draft aliases.
  • Adds manual verification for BIP353 addresses published from Offer History.
  • Distinguishes:
    • correct
    • missing
    • invalid
    • offer mismatch
    • lookup errors
  • Verification is read-only and does not modify DNS records.

TXT parsing

  • Handles long BIP353 TXT records split into multiple quoted DNS character strings.
  • Prevents valid Cloudflare TXT records from being falsely reported as containing a different offer.

Diagnostics

  • Improves NWC logging while avoiding unnecessary exposure of long cryptographic identifiers.
  • Redacts BIP353 domains in logs while keeping the username useful for troubleshooting.

Testing

  • Python syntax checks passed.
  • git diff --check passed.
  • Docker Compose configuration validation passed.
  • Tested locally with Cloudflare-managed BIP353 records.
  • Verified correct detection of existing Alias Manager records.
  • Verified correct detection of Offer History BIP353 records.
  • Verified German and English UI.
  • Verified split Cloudflare TXT records are recognized correctly.

@Alex71btc Alex71btc changed the title Fix/upgrade public bip353 reconcile Reconcile and verify BIP353 DNS records Aug 31, 2026
@Alex71btc
Alex71btc merged commit d95a885 into main Aug 31, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant