BlockStore
trait:
has_block
for finding out if a blockstore has a block available locallyput_block_keyed
for adding a block to the blockstore with a pre-computed CIDBlockStore::put_block
utilizing put_block_keyed
and create_cid
put_serializable
and get_serializable
functions from BlockStore
. Use Storable::store
and Storable::load
instead.Result
s in BlockStore
use BlockStoreError
as error type instead of anyhow::Error
BlockStore
for any &impl BlockStore
or Box<impl BlockStore>
BlockStore
trait (#402)AsyncSerialize
and RemembersCid
traits.Storable
, StoreIpld
and LoadIpld
traits.BlockStore::store_async_serializable
. Use Storable::store
instead.These traits allow the Link
type to be used with data that doesn't necessarily encode as dag-cbor
, such as UnixFS
files, which encode as dag-pb
.
For details see #378.