1package util
2
3import (
4 cbor "github.com/ipfs/go-ipld-cbor"
5 mh "github.com/multiformats/go-multihash"
6)
7
8func CborStore(bs cbor.IpldBlockstore) *cbor.BasicIpldStore {
9 cst := cbor.NewCborStore(bs)
10 cst.DefaultMultihash = mh.SHA2_256
11 return cst
12}