Skip to content

feature: spark address as username#4

Merged
r1n04h merged 1 commit into
masterfrom
feat-spark-address-as-username
Dec 8, 2025
Merged

feature: spark address as username#4
r1n04h merged 1 commit into
masterfrom
feat-spark-address-as-username

Conversation

@r1n04h
Copy link
Copy Markdown

@r1n04h r1n04h commented Dec 5, 2025

Note

Enables using a Spark address directly in the LNURL-pay callback by validating with isSparkAddress and falling back to DB lookup; adds tests for the validator.

  • API
    • Update GET /api/lightning-address/:username/callback to accept either a Spark address or username.
      • Validate amount and username.
      • Use isSparkAddress(username) to decide between direct use or DB lookup via databaseService.getSparkAddressByUsername.
      • Generate invoice with createInvoiceForSparkAddress.
  • Spark Service
    • Add isSparkAddress(address) to validate Spark bech32m addresses.
  • Tests
    • Add test/spark-service.test.ts covering isSparkAddress true/false cases.

Written by Cursor Bugbot for commit d8b8e39. This will update automatically on new commits. Configure here.

@r1n04h r1n04h merged commit 3f728de into master Dec 8, 2025
4 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