This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Description
I'm trying to retrieve a DAG persisted with the following options via webui. As I understand it, to do so I have to convert to a V0 address as per — https://github.com/ipld/js-cid/blob/38e5dd0f5e89a750d9f20efefdaa00d38b287739/test/index.spec.js#L81 :
const dagOpts = { format: 'dag-cbor', hashAlg: 'sha3-512' };
I have the following code that results in an error — 'Cannot convert a non dag-pb CID to CIDv0' :
let cid = new CID("zdpuAypJXbmGCLweJBL6R1iBpDGJyP8LU1BwZjzRjwNxohzvE");
console.log(cid.toV0());
Is it possible at all to access objects of format dag-cbor type from webui or IPFS cli?