Re-exports§
pub use multihash;
Modules§
Structs§
Enums§
- Code
- Multihash generation codes for the Filecoin protocol. This is not an exhausting list of codes used, just the ones used to generate multihashes.
- Error
- Error types
- Version
- The version of the CID.
Constants§
- DAG_
CBOR - FIL_
COMMITMENT_ SEALED - FIL_
COMMITMENT_ UNSEALED - POSEIDON_
BLS12_ 381_ A1_ FC1 - Multihash code for Poseidon BLS replica commitments.
- RAW
- SHA2_
256_ TRUN C254_ PADDED - Multihash code for Sha2 256 trunc254 padded used in data commitments.
Functions§
- new_
from_ cbor - Constructs a cid with bytes using default version and codec
- new_
from_ prefix - Create a new CID from a prefix and some data.
Type Aliases§
- Multihash
- A Multihash with the same allocated size as the Multihashes produces by this derive.