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
Copy file name to clipboardExpand all lines: UNIXFS.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,10 @@ This data is serialized and placed inside the 'Data' field of the outer merkleda
82
82
83
83
For files comprised of a single block, the 'Type' field will be set to 'File', 'filesize' will be set to the total number of bytes in the file and the file data will be stored in the 'Data' field.
84
84
85
+
For HAMT Sharded directories the 'Type' field will be set to 'HAMTShard', 'hashType' will be set to a codec value from the [multicodec table](https://github.com/multiformats/multicodec/blob/master/table.csv) and 'fanout' will be set to the bit size of the hash.
86
+
87
+
Although 'fanout' may have a value of 0-1.8×10^19 it is recommended that implementations limit the values they will accept during deserialization to a smaller number such as 1024 to prevent abuse.
88
+
85
89
## Metadata
86
90
87
91
UnixFS currently supports two optional metadata fields:
0 commit comments