This is a very simple example of how to use go-ipld-prime
to read and write IPLD data. It creates a linked list of "events".
It is assumed that the IPFS HTTP API is running on localhost:5000
To create an event with no predecessors
./ipld-prime-demo push '<event payload>'
This will print the CID of the resulting event
To create an event with a predecessor:
./ipld-prime-demo push '<event payload>' <predecessor payload CID>
./ipld-prime-demo fetch <head event CID>
This will print all the events which are reachable from <head event CID>