Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8911276

Browse files
committed
feat: add well-known UnixFS CIDs section
documents commonly encountered empty structures including: - empty dag-pb directories (CIDv0, CIDv1, inlined) - empty dag-pb files (CIDv0, CIDv1) - empty raw blocks (CIDv1, inlined) these CIDs are frequently hardcoded in implementations for performance optimization
1 parent 0a11186 commit 8911276

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/unixfs.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,25 @@ Test vectors for UnixFS directory structures, progressing from simple flat direc
934934
935935
Test vectors for special UnixFS features and edge cases.
936936
937+
### Well-Known UnixFS CIDs
938+
939+
Common empty structures that implementations frequently encounter:
940+
941+
* **Empty dag-pb directory**
942+
- **CIDv0**: `QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn`
943+
- **CIDv1**: `bafybeiczsscdsbs7ffqz55asqdf3smv6klcw3gofszvwlyarci47bgf354`
944+
- **Inlined**: `bafyaabakaieac` (identity multihash)
945+
946+
* **Empty dag-pb file**
947+
- **CIDv0**: `QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH`
948+
- **CIDv1**: `bafybeif7ztnhq65lumvvtr4ekcwd2ifwgm3awq4zfr3srh462rwyinlb4y`
949+
950+
* **Empty raw block**
951+
- **CIDv1**: `bafkreihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku`
952+
- **Inlined**: `bafkqaaa` (identity multihash)
953+
954+
These CIDs appear frequently in UnixFS implementations and are often hardcoded for performance optimization.
955+
937956
### Symbolic Links
938957
939958
- Fixture: [`symlink.car`](https://github.com/ipfs/gateway-conformance/raw/refs/tags/v0.8.1/fixtures/path_gateway_unixfs/symlink.car)

0 commit comments

Comments
 (0)