Skip to content

Comments

Restore pubkey truncation in Lightning invoice logs#186

Merged
spe1020 merged 3 commits intofeature/membership-rings-and-baseline-fixesfrom
copilot/sub-pr-183-another-one
Feb 17, 2026
Merged

Restore pubkey truncation in Lightning invoice logs#186
spe1020 merged 3 commits intofeature/membership-rings-and-baseline-fixesfrom
copilot/sub-pr-183-another-one

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

Commit c6d3e38 inadvertently removed pubkey truncation from Lightning invoice creation logs, exposing full user identifiers. This restores the original privacy-preserving behavior.

Changes

  • Genesis endpoint: Truncate pubkey to first 16 chars in log at create-lightning-invoice/+server.ts:115
  • Membership endpoint: Truncate pubkey to first 16 chars in log at create-lightning-invoice/+server.ts:159
// Before (privacy risk)
console.log('[Founders Club Lightning] Invoice created:', {
  receiveRequestId,
  amountSats,
  pubkey,  // Full 64-char pubkey exposed
});

// After (privacy preserved)
console.log('[Founders Club Lightning] Invoice created:', {
  receiveRequestId,
  amountSats,
  pubkey: pubkey.substring(0, 16) + '...',  // Only first 16 chars
});

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: spe1020 <140115230+spe1020@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 17, 2026

Deploying frontend with  Cloudflare Pages  Cloudflare Pages

Latest commit: 91c3e5b
Status: ✅  Deploy successful!
Preview URL: https://342edad5.frontend-hvd.pages.dev
Branch Preview URL: https://copilot-sub-pr-183-another-o.frontend-hvd.pages.dev

View logs

Co-authored-by: spe1020 <140115230+spe1020@users.noreply.github.com>
Copilot AI changed the title [WIP] Update membership rings and Lightning KV store based on feedback Restore pubkey truncation in Lightning invoice logs Feb 17, 2026
Copilot AI requested a review from spe1020 February 17, 2026 17:31
@spe1020 spe1020 marked this pull request as ready for review February 17, 2026 17:39
@spe1020 spe1020 merged commit 93355c1 into feature/membership-rings-and-baseline-fixes Feb 17, 2026
1 check was pending
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.

2 participants