diff --git a/37.md b/37.md new file mode 100644 index 000000000..e2216631a --- /dev/null +++ b/37.md @@ -0,0 +1,35 @@ +NIP-37 +====== + +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 +["", "
", ""] +``` +- `` describes which network is used. +- `
` describes where to address the service. +- `` 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"], + ["ipv4", "157.240.212.35", "http"], + ["ipv6", "2001:db8:3333:4444:CCCC:DDDD:EEEE:FFFF", "http"] + ] +} +``` \ No newline at end of file