// NewShard creates a new, empty HAMT shard with the given size.
NewShard creates a new, empty HAMT shard with the given size.
// NewShard creates a new empty HAMT shard with the given size .
func NewShard(dserv ipld.DAGService, size int) (*Shard, error) {
	ds, err := makeShard(dserv, size)
	if err != nil {
		return nil, err
	}
	ds.hashFunc = HashMurmur3
	return ds, nil
}
func NewShard ( dserv ipld . DAGService , size int ) ( * Shard , error ) { ds , err := makeShard ( dserv , size ) if err != nil { return nil , err } ds . hashFunc = HashMurmur3 return ds , nil }
NewShard creates a new, empty HAMT shard with the given size.
NewShard creates a new empty HAMT shard with the given size .
// FIXME: Make this at least a static configuration for testing.