diff --git a/16.md b/16.md index 5227715..c29e1d7 100644 --- a/16.md +++ b/16.md @@ -13,6 +13,16 @@ Upon seeing such an address, `WALLET` makes a GET request to `https:///. The response from `SERVICE` then MUST be the same as in [LUD-06](06.md), step 3, and the flow is the same. +### Default identifier + +A `SERVICE` MAY offer a default internet identifier for a domain by using `_` as the ``. + +Upon seeing an address in the format `@`, a `WALLET` MAY treat it as shorthand for `_@` and make a GET request to the `https:///.well-known/lnurlp/_` endpoint if `domain` is clearnet or `http:///.well-known/lnurlp/_` if `domain` is onion. For example, if the address is `@bitcoin.org`, the request is to be made to `https://bitcoin.org/.well-known/lnurlp/_`. + +This shorthand is optional. A `WALLET` that does not implement it MAY reject `@` as an invalid internet identifier, and a `SERVICE` that does not offer a default identifier MAY return an error or 404 for `/.well-known/lnurlp/_`. Existing `@` identifiers MUST continue to resolve as specified above. + +If a `SERVICE` returns metadata for a default identifier, it SHOULD use `_@` as the canonical `text/identifier` value. + If providing such a scheme, `SERVICE` MUST add to the `metadata` JSON array either a `text/email` entry or a `text/identifier` entry, as in examples below: ```