Skip to content

Latest commit

 

History

History
20 lines (19 loc) · 380 Bytes

README.md

File metadata and controls

20 lines (19 loc) · 380 Bytes

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)