In simple case Multiaddr looks similar to /ip4/127.0.0.1/tcp/80
. It is easily parseable - /{key}/{value/{key}/{value}
.
But I found this example:
/ip4/1.2.3.4/tcp/443/tls/sni/example.com/http/example.com/index.html
It makes Mulriaddr needing some sort of formal grammar specification (BNF?). Is there one? If no, do you think Multiaddr should support this?