Skip to content

Commit

Permalink
Adds BTC DNS scheme for Money Addresses (#40)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hugomd authored Aug 15, 2024
1 parent 3bde7a6 commit d899595
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- [BTC Lightning Address](#btc-lightning-address)
- [BTC LNURL](#btc-lnurl)
- [BTC Silent Payment Address (BIP-0352)](#btc-silent-payment-address-bip-0352)
- [BTC DNS (BIP-0353)](#btc-dns-bip-0353)
- [KES Mobile Money](#kes-mobile-money)
- [Currency Specific Parts](#currency-specific-parts)
- [USDC](#usdc)
Expand All @@ -46,6 +47,8 @@
- [Format](#format-3)
- [Silent Payment Address](#silent-payment-address)
- [Format](#format-4)
- [DNS (BIP-353)](#dns-bip-353)
- [Format](#format-5)
- [DID Resource](#did-resource)
- [Examples](#examples-2)
- [Example Service Entry](#example-service-entry)
Expand Down Expand Up @@ -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`

#### KES Mobile Money

`urn:kes:momo:mpesa:254712345678`
Expand Down Expand Up @@ -266,6 +273,11 @@ This specification proposes Currency Specific Parts for USDC and BTC.
###### Format
`urn:btc:spaddr:<address>`

##### DNS (BIP-353)

###### Format
`urn:btc:dns:<internet-identifier>`

## DID Resource

A Money address is associated to a DID by representing it as a [Service](https://www.w3.org/TR/did-core/#services) entry on a [DID Document](https://www.w3.org/TR/did-core/#dfn-did-documents).
Expand Down

0 comments on commit d899595

Please sign in to comment.