func hash(seed uint32, c *cid.Cid) uint32 { var buf [4]byte binary.LittleEndian.PutUint32(buf[:], seed) h := fnv.New32a() _, _ = h.Write(buf[:]) _, _ = h.Write(c.Bytes()) return h.Sum32() }
func CidToDsKey(k *cid.Cid) ds.Key { return NewKeyFromBinary(k.Bytes()) }