Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds BTC DNS scheme for Money Addresses #40

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

hugomd
Copy link
Contributor

@hugomd hugomd commented Aug 12, 2024

Refers to resolving a Money Address via DNS according to BIP-03531.

Changes:

  • Updates table of contents
  • Adds BTC DNS currency specific part definition

Notes:

  • In the format definition, I've referred to the user-provided input value as internet-identifier, based on the address specific defined by RFC 53222. Although BIP-0353 does not explicitly mention this, its definition does match RFC 5322.

Footnotes

  1. https://github.com/bitcoin/bips/blob/master/bip-0353.mediawiki

  2. https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1

Refers to resolving a Money Address via DNS according to BIP-0353[^0].

Changes:
- Updates table of contents
- Adds BTC DNS currency specific part definition

Notes:
- In the format definition, I've referred to the user-provided input
  value as `internet-identifier`, based on the address specific
  defined by RFC 5322[^1]. Although BIP-0353 does not explicitly
  mention this, its definition does match RFC 5322.

[^0]: https://github.com/bitcoin/bips/blob/master/bip-0353.mediawiki
[^1]: https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1
@@ -217,6 +220,10 @@ urn:<currency_code>:<curr_specific_part>

`urn:btc:spaddr:sp1qqweplq6ylpfrzuq6hfznzmv28djsraupudz0s0dclyt8erh70pgwxqkz2ydatksrdzf770umsntsmcjp4kcz7jqu03jeszh0gdmpjzmrf5u4zh0c`

#### BTC DNS ([BIP-0353](https://github.com/bitcoin/bips/blob/master/bip-0353.mediawiki))

`urn:btc:dns:hugo@hugo.md`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let me know if there's a more appropriate example I can use here, e.g. matt@mattcorallo.com.

##### DNS (BIP-353)

###### Format
`urn:btc:dns:<internet-identifier>`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought dns was the most appropriate prefix here, as the Money Address is resolved via a TXT lookup.

Copy link
Member

Choose a reason for hiding this comment

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

@hugomd do you know if there are any other dns based address/invoice/offer lookup BIPs or conventions that are used within Bitcoin? if not, dns makes sense to me!

Copy link
Contributor Author

@hugomd hugomd Aug 14, 2024

Choose a reason for hiding this comment

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

I didn't think there were, but I did some more digging. It looks like OpenAlias defines a similar mechanism using DNS.

Given BIP-353 is a merged BIP, I'm inclined to say we should use dns, and other mechanisms should use their own namespace, e.g. urn:btc:openalias:<internet-identifier>

Copy link
Member

@mistermoe mistermoe left a comment

Choose a reason for hiding this comment

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

thanks @hugomd !

@mistermoe mistermoe merged commit d899595 into TBD54566975:main Aug 15, 2024
@hugomd hugomd deleted the adds-btc-dns-bip-353 branch August 19, 2024 23:26
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