我正在尝试通过 webui 检索具有以下选项的 DAG。据我了解,为此,我必须按照https://github.com/ipld/js-cid/blob/38e5dd0f5e89a750d9f20efefdaa00d38b287739/test/index.spec.js#L81转换为 V0 地址:
const dagOpts = { format: 'dag-cbor', hashAlg: 'sha3-512' };
我有以下导致错误的代码 - 'Cannot convert a non dag-pb CID to CIDv0' :
let cid = new CID("zdpuAypJXbmGCLweJBL6R1iBpDGJyP8LU1BwZjzRjwNxohzvE");
console.log(cid.toV0());
dag-cbor
是否可以从 webui 或 IPFS cli访问格式类型的对象?