Skip to content

Commit

Permalink
reserve 0x2f (ASCII /) as the *path* multicodec
Browse files Browse the repository at this point in the history
That way, we can always tell if something is a path or something else.

We may also be able to take advantage of this later to combine a few
concepts and get rid of the "multiaddrs look like paths but are totally not"
problem. However, we can think about that later. This PR just reserves the code
so we don't run into problems later.

* Remove the distinction between string/binary multiaddrs. Instead, the "string"
  will *also* be a valid binary multiaddr.
* Define a new multipath spec to combine multiaddrs and other paths.

Related to: multiformats/multiaddr#70
  • Loading branch information
Stebalien committed Nov 26, 2018
1 parent f543680 commit 098b11d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions table.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ codec, description, code

miscellaneous,,
raw, raw binary, 0x55
path, string path, 0x2f

bases encodings,,
identity, raw binary, NUL
Expand Down

0 comments on commit 098b11d

Please sign in to comment.