Merge 459e5aaead
into 7dec812f99
This commit is contained in:
commit
38f11d71d2
|
@ -0,0 +1,35 @@
|
|||
NIP-137
|
||||
======
|
||||
|
||||
Transport methods announcement
|
||||
-----------------------------------
|
||||
|
||||
`draft` `optional`
|
||||
|
||||
This NIP describes how digital services can announce how clients can reach them, it describes which network is used and depending on the network what other data is needed to reach it.
|
||||
|
||||
## Specification
|
||||
|
||||
A replacable event of kind `11111`, containing one or more of the following tag(s):
|
||||
|
||||
```json
|
||||
["<network>", "<address>", "<protocol>"]
|
||||
```
|
||||
- `<network>` describes which network is used.
|
||||
- `<address>` describes where to address the service.
|
||||
- `<protocol>` describes which protocol/schema should be used
|
||||
|
||||
## Example
|
||||
|
||||
```json
|
||||
{
|
||||
"kind": 11111,
|
||||
"tags": [
|
||||
["clearnet", "some.domain.com", "wss"],
|
||||
["tor", "somehash.onion", "ws"],
|
||||
["i2p", "somehash.b32.i2p/", "ws"],
|
||||
["clearnet", "157.240.212.35", "http"],
|
||||
["clearnet", "2001:db8:3333:4444:CCCC:DDDD:EEEE:FFFF", "http"]
|
||||
]
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue