Skip to content

nostr: support NIP-A3 payto payment targets - #1467

Open
TheAwiteb wants to merge 1 commit into
nostrdevkit:masterfrom
TheAwiteb:nip-a3
Open

TheAwiteb wants to merge 1 commit into
nostrdevkit:masterfrom
TheAwiteb:nip-a3

Conversation

@TheAwiteb

Copy link
Copy Markdown
Member

Close: #1466
Refs: https://github.com/nostr-protocol/nips/blob/24b2ae9fdfeb4e5c0d3be854df5977b81afe1983/A3.md

Description

Support NIP-A3 payto tag, added a simple function to return a URI.

Checklist

  • I followed the contribution guidelines
  • I updated the relevant CHANGELOG.md (if applicable)
  • I understand and can explain all code in this PR

Comment thread nostr/src/nips/nipa3.rs
Comment on lines +22 to +25
/// payment `type` (e.g., `"bitcoin"`, `"lightning"`), always lowercase.
payment_type: String,
/// `address` (e.g., address, username)
payment_address: String,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I extract this into PaytoTag? So I can implement to_uri on it directly.

@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

Support NIP-A3 (payto: Payment Targets)

1 participant