Module forest_filecoin::utils::encoding
source · Re-exports§
pub use cid_de_cbor::extract_cids;
Modules§
serde_bytes
with max length check
Functions§
- Generates BLAKE2b hash of fixed 32 bytes size.
- This method will attempt to de-serialize given bytes using the regular
serde_ipld_dagcbor::from_slice
. Due to a historical issue in Lotus (see more in FIP-0027, we must still support strings with invalid UTF-8 bytes. On a failure, it will retry the operation using the fallback that will de-serialize strings with invalid UTF-8 bytes as bytes.