-
Notifications
You must be signed in to change notification settings - Fork 55
Description
We already have multibase, multihash that all in nutshell are metada+data
. We don not however have similar thing for blocks, so it becomes impossible to derive what codec to use to decode it.
In the past when I was working on https://github.com/gozala/ipdf/ I came up with cid+block
thing that I called inline blocks, so that graphs could contain encrypted and concealed sub-graphs that would only reveal themselves to the key holder.
CAR format seems to also pair CID+block
s.
And this thread #36 (comment) I think also illustrates lack of such abstraction.
Ironically JS Block instance also contains CID+Block but when you encoded you can no longer decode it back without additionally providing 'codec' information.
I think if we do formalize such a building block it would allow for a nice and compos-able libraries around it.