-
Notifications
You must be signed in to change notification settings - Fork 37
hashAlg option of put method is not yet supported #82
Comments
You are right, this is a missing feature. The actually lack of implementation is not in the check of arguments but actually passing the hash function to the CID of the resolver: https://github.com/ipld/js-ipld-resolver/blob/master/src/index.js#L200-L205 Would you like to take a stab at it? I'll be very welcome to a PR :) |
See also ipld/interface-ipld-format#2 |
@diasdavid @vmx I would like to get this working. I think the following needs to done
Both BTW, a |
@richardschneider The breaking change for |
@vmx Good catch! I see that you already changed the
|
@vmx On second thought, I like your idea of an
Should ipld-dag-pb always use version 0, if the hash-alg is |
I think
I can see why, but then we'd have to breaking API changes in a row, although we already know that we'll break it again. In an ideal world we'd do the To gain insight and get priorities right: is this a change you need urgently for something else, or just something that it makes sense to fix? |
I'm doing a C#/.Net implementation of the Core API. I started to test my DAG API implementation against So I'm willing to contribute to |
Improving one thing at a time totally makes sense. So the things one at a time could be:
|
I would like to swap priorities 2 is adding This way only one breaking change is added DAG node to blob. |
Good point, let's swap it. I was too concerned about two subsequent breaking changes, but that's really not a problem if there aren't any releases in between. |
Sounds like a plan! I'll start by adding |
|
👏 👏 👏 👏 👏 |
HashAlg
option of theput
method is not yet supported, as stated here: https://github.com/ipld/js-ipld-resolver/blob/master/src/index.js#L192However, in the documentation appears as required, as well as in other documentations: https://github.com/ipfs/interface-ipfs-core/tree/master/API/dag#dagput
if this option is provided to the method, a message informing that it is not yet supported and the hash algorithm used (sha2-256) would improve the development experience.
The text was updated successfully, but these errors were encountered: