You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Decode CID (`decode_cid(str | bytes) -> dict`). Accepts CID stringified form or CID raw byte form.
34
-
- Encode CID (`encode_cid(bytes) -> str`). Encodes CID raw byte form to stringified form.
35
-
- Decode Multibase (`decode_multibase(str) -> tuple[str, bytes]`). Returns base and data.
36
-
- Encode Multibase (`encode_multibase(str, bytes) -> str`). Accepts base and data.
37
-
- Decode CAR (`decode_car(bytes) -> tuple[dict, dict[bytes, dict]]`). Returns a header and blocks mapped by CID. CIDs in raw byte form.
31
+
#### 🔗 CID (Content Identifier) Operations
32
+
-**`decode_cid(data: str | bytes) -> dict`** - Decode CIDs from string representation (e.g., `'bafy...'`) or raw bytes into structured data containing version, codec, and hash information
33
+
-**`encode_cid(data: str | bytes) -> str`** - Encode CID raw bytes to string representation, or return string CIDs as-is
0 commit comments