I have confirmed this works using js-ipld-dag-pb 0.14.8 and this is fine for my purposes.
Obviously much has changed with this package, most notably the removal of node.toJSON().multihash. How would one achieve the same result with the current version, 0.18.1?
Hello, Stack overflow and Medium have suggested the following for calculating an ipfs hash from a data buffer (which is my main goal here):
I have confirmed this works using js-ipld-dag-pb 0.14.8 and this is fine for my purposes.
Obviously much has changed with this package, most notably the removal of
node.toJSON().multihash
. How would one achieve the same result with the current version, 0.18.1?Edit: I will use ipfs-only-hash.