Irakli Gozalishvili
Irakli Gozalishvili
Also please note that assumption here is incorrect > ```js > const bytes = Buffer.from(request.body, 'base64') > const car = await CAR.codec.decode(bytes) > const root = car.roots[0].cid.toString() > const cbor...
@vasco-santos from our conversation I was under impression that ideally we'd just add `toJSON` method to delegation so you could get a JSON corresponding to the invocation block. `delegation.bytes` already...
> You might want to thread this deeper I wrote up a issue describing what I think would be an ideal solution well aligned with some other features in the...
Below idea describes a general way of embedding DAGs in data structures which: 1. Will encode as links 2. Will have a way to bundle relevant blocks ```ts interface Embed<...
Now we have an interface that could be implemented to allow iteration over underlying IPLD blocks https://github.com/web3-storage/ucanto/blob/aeea7e3c7494143dce535792b0d53520e559c45a/packages/interface/src/lib.ts#L169-L193 Even so I would not want to traverse arbitrary objects to identify `IPLDView`s....
I have looked into this and I see there are couple of options available, no option feels perfect so I think it will boil down to picking a right tradeoffs....
@vasco-santos your feedback would be helpful
> What we loose however is an ability to require that encoder pass a DAG as opposed to a link unless .resolve is used, but if you do use .resolve...
I have submitted issue to multiformats https://github.com/multiformats/js-multiformats/issues/228, but in the meantime we could workaround this via JSON.stringify replacer function which can substitute `{ code, version, hash }` as needed.
It is worth calling out that direction new UCAN spec is headed would make this non issue because they remove proofs from the delegation and consequently it if you had...