Trait forest_filecoin::utils::cid::CidCborExt
source · pub trait CidCborExt {
// Provided method
fn from_cbor_blake2b256<S: Serialize>(obj: &S) -> Result<Cid, Error> { ... }
}
Expand description
Extension methods for constructing dag-cbor
Cid
Provided Methods§
sourcefn from_cbor_blake2b256<S: Serialize>(obj: &S) -> Result<Cid, Error>
fn from_cbor_blake2b256<S: Serialize>(obj: &S) -> Result<Cid, Error>
Default CID builder for Filecoin
- The default codec is
fvm_ipld_encoding::DAG_CBOR
- The default hash function is 256 bit BLAKE2b
This matches abi.CidBuilder
in go
Object Safety§
This trait is not object safe.