-
Notifications
You must be signed in to change notification settings - Fork 87
added onion protocol #13
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
Conversation
|
@ricott1 Thanks for this - please ping me when that pull request has gone through |
|
@ricott1 Also can you please add a test for the new protocol |
src/utils/contents.js
Outdated
| } else if (contentType === 'bzz') { | ||
| encoded = '0x' + contentHash.fromSwarm(content) | ||
| } else if (contentType === 'onion') {//In the future insert here general encoding given by contentHash library | ||
| encoded = '0x' + contentHash.fromOnion(content) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be contentHash.encode('onion', content);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
Tests added |
| "ethers": "^4.0.30", | ||
| "js-sha3": "^0.8.0", | ||
| "lodash": "^4.17.11", | ||
| "node-gyp": "^5.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are we using node-gyp and rebuild for?
| "ethers": "^4.0.30", | ||
| "js-sha3": "^0.8.0", | ||
| "lodash": "^4.17.11", | ||
| "node-gyp": "^5.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are we using node-gyp and rebuild for
|
🎉 |
Migrated pull from ensdomains/ens-app#355
I added the option to register an onion address, encoded as a multiaddress, in the
contenthashentry.This pull will work in tandem with a metamask pull.
It depends on another pull made on the content-hash dependency, which we should wait for.