Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reserve 0x2f (ASCII /) as the *path* multicodec #93

Merged
1 commit merged into from
Mar 18, 2019
Merged

Conversation

Stebalien
Copy link
Member

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

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 💯 But needs a rebase

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
@Stebalien Stebalien force-pushed the feat/reserve-slash branch from 098b11d to 56b1f8f Compare March 18, 2019 16:47
@Stebalien
Copy link
Member Author

@lgierth rebased.

@ghost ghost merged commit ee69bc0 into master Mar 18, 2019
@ghost ghost deleted the feat/reserve-slash branch March 18, 2019 16:50
@ghost ghost removed the in progress label Mar 18, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant