Closed lidel closed 1 year ago
This library is very old, and remembers the time before we had dag-cbor. It uses stringified JSON put in data field of dag-pb which is not only inefficiency and a technical debt, but an antipattern these days.
dag-pb
ipfs.object
ipfs.block
ipfs.dag
block
Problem
This library is very old, and remembers the time before we had dag-cbor. It uses stringified JSON put in data field of
dag-pb
which is not only inefficiency and a technical debt, but an antipattern these days.Solution
ipfs.object
API and JSON indag-pb
ipfs.block
(ipfs.dag
may change,block
won't) and space-efficient dag-cbor (https://www.npmjs.com/package/@ipld/dag-cbor)