Trait fvm_ipld_encoding::CborStore
source · [−]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.