currently it is a wrapper around the data that adds a utility method for generating the multihash.
block.key(hashFn, cb) is not much better than hash(hashFn, block.data, cb).
Instead I propose we repurpose this as a container around { data, cid } since that is not captured in a standard interface yet but use it in a number of places.
currently it is a wrapper around the data that adds a utility method for generating the multihash.
block.key(hashFn, cb)
is not much better thanhash(hashFn, block.data, cb)
.Instead I propose we repurpose this as a container around { data, cid } since that is not captured in a standard interface yet but use it in a number of places.