You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After @vmx and I had a talk about what the next iteration of the format API should look like it occurred to me that it’s about time for us to start writing all of this out and discussing it.
Here’s an outline of my ideas for the next API iteration.
serialize(native Object)
Returns a Promise that resolves to an IPLD Block instance.
toBlock(binary Blob)
Returns a Promise that resolve to an IPLD Block instance.
reader(IPLD Block Instance)
Returns an implementation of the Reader interface 👇🏼
Reader.get(path)
Returns a Promise that resolves to an object in the following format.
After @vmx and I had a talk about what the next iteration of the format API should look like it occurred to me that it’s about time for us to start writing all of this out and discussing it.
Here’s an outline of my ideas for the next API iteration.
serialize(native Object)
Returns a Promise that resolves to an IPLD Block instance.
toBlock(binary Blob)
Returns a Promise that resolve to an IPLD Block instance.
reader(IPLD Block Instance)
Returns an implementation of the Reader interface 👇🏼
Reader.get(path)
Returns a Promise that resolves to an object in the following format.
Reader.links()
Returns an async iterator of all the links in the block as instances of CID.
Reader.tree()
Returns an async iterator of all the paths available in the block.