This repository was archived by the owner on Oct 23, 2022. It is now read-only.
This repository was archived by the owner on Oct 23, 2022. It is now read-only.
How to get resolved IPLD structure #478
Open
Description
I've read through all dag examples and tests but could not find the case I'm looking for, but probably I'm overlooking something, so just read this as request for clarification! :)
I have a relatively large JSON structure (± 15-50MB) with a lot of internal redundancy (sheet music data). I deduplicate the structure by creating an IPLD where objects are referred to using CID links (Link(Cid)).
Is there a command like IpldDag::resolve that resolves a Cid to the nested structure where Cid links are replaced with the referenced List and Map structures?
// deduplicated linked ipld structure that is persisted
deduplicated = Ipld::List(vec!( Ipld::Link(cid1), .. ))
...
// redundant-full resolved structure that is read
resolved = Ipld::List(vec!( Ipld::Map(..), .. ))
Much appreciated!