This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
Repurpose ipfs-block as a container for { data, cid } #25
Labels
kind/enhancement
A net-new feature or improvement to an existing feature
need/community-input
Needs input from the wider community
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.
The text was updated successfully, but these errors were encountered: