Skip to content

A simple program to showcase the use of the go-ipld-prime

Notifications You must be signed in to change notification settings

Terramorpha/go-ipld-prime-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ipld example

The new way of using IPLD with RPC to kubo was not clear to me. I didn’t know how I should manipulate ipld nodes, marshall/unmarshall them, or navigate through them. In this example, I do the following:

  1. Use basicnode to unmarshall ipld data from codec to data structure.
  2. Use a LinkSystem (wrapping rpc.Block() to make the following the links created by basicnode possible.
  3. Use a selector to facilitate the traversal (without a bunch type casts) of a tree of multiple nodes.

About

A simple program to showcase the use of the go-ipld-prime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages