Skip to content

CUIT-CBI/dag-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dag-store

Data store based on ipfs merkle-dag

go get github.com/CUIT-CBI/dag-store

Getting Started

Create or open a store instance:

store := dagstore.New(".data")
defer store.Close()

Add data and get its cid

c, err := store.Add(context.Background(), file)

Get data from the store

writerTo, err := store.Get(context.Background(), c)