-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
add flag to 'ipfs add' to choose blake2 as hash function #2185
Comments
I'd vote for blake2b/s, but keep in mind that ipfs-inactive/archives#35 (comment). For effective optimization, it'd be better to make a breakdown of the bottlenecks #1616 (comment) (this benchmark is old, but just to serve a point). |
@rht makes sense. i'd opt for 2b/s as well. |
Here is a heuristic benchmark:
|
We should probably add support for this before ipfs 0.5.0 |
would be nice |
With the latest bitswap fixes, we can change the hash function up and have it work just fine. Lets actually get around to prioritizing this as an experimental feature |
@Kubuxu do you think you could take on getting the blake2 multihash stuff implemented? |
For 0.4.5? |
@Kubuxu hmm... I'd like to be able to have it in 0.4.5. But thats a decent hunk of work. If you think we can do it quickly enough then lets go for it, otherwise, its on 0.4.6 |
I will use this issue to add things I need you to take a look at for blake2 support: First one: multiformats/multicodec#25 |
The code for blake2 is now merged into master and will be in the 0.4.6 release. Its not yet available as an easily specifiable parameter to |
Moving the implementation of a |
Alright, having two releases in the wild that can understand this hash function is sufficient for deploying the change to master. Lets go ahead and do this for 0.4.8 :) (it should be very simple) |
It requires dependency propagation of go-multihash. So if you ware up to it, go for it. |
@whyrusleeping the |
@kevina we can probably bump this one to 0.4.9 I'm working right now on bubbling a dependency update, but it shouldnt be needed for blake2. I beleive that code is already merged into master here |
The dep is for sure in master now. Lets get this into 0.4.10 :) |
@whyrusleeping This sounds like an easy one for me to do, shall I? |
With #3919 merged this is now possible. |
Late question: is there a list of all the hashes supported by IPFS you can use with For example, an older one is here – https://multiformats.io/multihash/ – but blake2s-128 doesn't seem to be supported anymore. (At least it throws an error when using it.) |
@JayBrown There is now, |
@kevina Is that in a new version? My go-ipfs v0.4.17 doesn't have EDIT: you'd probably also have to specify the CID version to print the respective list of hashes. |
@jay we just released 0.4.18. |
Good day @Stebalien When i try to upload to ipfs, everything is successful, but whenever i try to use blake2b for the hashAlg,it fails with error, no hasher found for blake2b-208. I observed that just sha256 and sha512 are available. IPFS Version : 0.63.5 [nodemon] restarting due to changes... Error: No hasher found for "blake2b-208" |
@dozykeys you are showing a js-ipfs stack trace not a Kubo one. |
okay thank @Jorropo but can i also use kubo on nodejs? |
No. Kubo is written in go. |
@Stebalien thanks. |
@whyrusleeping just thought that when we add blake2 support, prior versions wont be able to use those hashes. if we can throw in support in 0.4.0 it would help. Feature creep i know but breakingness :S
(dat speed!)
The text was updated successfully, but these errors were encountered: