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

fix: use multibase and add buffer #113

Merged
merged 4 commits into from
Mar 16, 2020
Merged

Conversation

hugomrdias
Copy link
Member

@hugomrdias hugomrdias commented Mar 13, 2020

Adds buffer related to ipfs/js-ipfs#2924

Uses multibase to encode.
Remove ip dep, copied some code from it. ip depends on os for things we don't need.

Adds buffer related to ipfs/js-ipfs#2924

Uses multibase to encode.
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

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

Just suggested two minor comments to clarify prepending b before decoding the onion addresses, but this looks good.

Ideally I think multibase should expose an api, similar to encode, where you can pass the base name (or access the base directly) but that's a separate issue.

src/convert.js Show resolved Hide resolved
src/convert.js Show resolved Hide resolved
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

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

👍

@jacobheun jacobheun merged commit f245744 into master Mar 16, 2020
@jacobheun jacobheun deleted the fix/use-multibase-add-buffer branch March 16, 2020 11:02
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.

2 participants