pub trait CborStore: Blockstore + Sized {
    fn get_cbor<T>(&self, cid: &Cid) -> Result<Option<T>>
    where
        T: DeserializeOwned
, { ... } fn put_cbor<S>(&self, obj: &S, code: Code) -> Result<Cid>
    where
        S: Serialize
, { ... } }
Expand description

Wrapper for database to handle inserting and retrieving ipld data with Cids

Provided Methods

Get typed object from block store by Cid.

Put an object in the block store and return the Cid identifier.

Implementors