[−][src]Crate forest_cid
Re-exports
pub use multihash; |
Modules
json |
Structs
Cid | |
Prefix | Prefix represents all metadata of a CID, without the actual content. |
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_TRUNC254_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 Definitions
Multihash | A Multihash with the same allocated size as the Multihashes produces by this derive. |