-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
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` |
There was a problem hiding this comment.
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>` |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @hugomd !
Refers to resolving a Money Address via DNS according to BIP-03531.
Changes:
Notes:
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
https://github.com/bitcoin/bips/blob/master/bip-0353.mediawiki ↩
https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1 ↩