Thanks for exposing /api/v0/dag/export on public gateways! This is game-changer for me
However my project (DAppNode) needs to download just a few files from a directory. Is it possible to query /api/v0/dag/export and get a verifiable CAR stream but stopping at the first directory?
Otherwise, is there a client that can reliably calculate the hash of a UnixFS directory given it’s JSON structure? i.e. given
{
"Links": [
{
"Name": "avatar.png",
"Hash": "QmTfnrUdZWaMgr2Zi1h1Z7zS5CbYtQZRs72yqKZQHj5fxT",
"Size": 23107
},
{
"Name": "dappnode_package.json",
"Hash": "QmTRKT4oBef93Xdyvm2VRoPvhRN2HnUPvHuJ9PpSpEjdYw",
"Size": 1645
},
],
"Data": "\b\u0001"
}
For context, I get a hash from a trusted source (a blockchain) that points to a UnixFS directory (assume the example above). Then I need to trustlessly download only the dappnode_package.json
file.