Skip to content

Feat/privacy mode - #5

Merged
Alex71btc merged 11 commits into
mainfrom
feat/privacy-mode
Jun 16, 2026
Merged

Feat/privacy mode#5
Alex71btc merged 11 commits into
mainfrom
feat/privacy-mode

Conversation

@Alex71btc

Copy link
Copy Markdown
Owner

Summary

Adds an optional Privacy Mode to BOLT12 Pay.

When enabled:

  • LNURL configuration fields are hidden in setup
  • Public alias pages only show BOLT12 offers and BIP353 addresses
  • LNURL metadata endpoints are disabled
  • LNURL callback endpoints are disabled

Compatibility Mode remains the default and preserves existing behavior.

Motivation

Some users prefer pure BOLT12/BIP353 payment flows and do not want LNURL fallback endpoints exposed, as LNURL may reveal additional node information depending on wallet behavior.

Privacy Mode allows users to opt into a BOLT12-only experience without affecting existing installations.

Tested

  • LNURL metadata endpoint returns 404 in Privacy Mode
  • LNURL callback endpoint returns 404 in Privacy Mode
  • BIP353 payments continue to work
  • Alias pages remain functional
  • Switching back to Compatibility Mode restores LNURL functionality

Alex71btc and others added 11 commits June 16, 2026 09:21
Re-indent the payment-mode and LNURL setup markup to match the
6-space section base indent (with +2 per nesting level) used by
the surrounding form. Formatting only; no behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Collapse the LNURL label/input pairs back to the single-line style
used by the adjacent BOLT12 and password inputs in the same form.
Attributes unchanged; no behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Drop the spurious whitespace-only line introduced after getCookie(),
restoring a single clean blank line. No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Re-indent updatePaymentModeUi() and the paymentModeInputs change
listener to the 4-space convention used by the surrounding script,
drop a trailing space, and restore the blank line separating the
DNS field group from the Cloudflare group. No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Use two blank lines before the newly added get_payment_mode()
top-level function, matching the convention used elsewhere in the
module. No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Alex71btc
Alex71btc merged commit 13c23d6 into main Jun 16, 2026
3 of 5 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