pub trait Storage { // Required methods fn get(&self, cid: &Cid<64>) -> Block; fn set(&mut self, block: Block) -> Cid<64>; }
Storage interface.
Returns a block from storage.
Inserts a block into storage.