Skip to content

HashAndIdNTupleLayoutConfig

Defined in: src/layouts/0003-hash-and-id-n-tuple-storage-layout.ts:8

Object directories named by their encoded id, nested under pieces of the id’s digest.

optional digestAlgorithm?: FixityAlgorithm

Defined in: src/layouts/0003-hash-and-id-n-tuple-storage-layout.ts:12

Algorithm used to hash the id. Defaults to sha256.


extensionName: "0003-hash-and-id-n-tuple-storage-layout"

Defined in: src/layouts/0003-hash-and-id-n-tuple-storage-layout.ts:10

Name of the layout’s OCFL extension.


optional numberOfTuples?: number

Defined in: src/layouts/0003-hash-and-id-n-tuple-storage-layout.ts:16

Number of directory levels. Defaults to 3.


optional tupleSize?: number

Defined in: src/layouts/0003-hash-and-id-n-tuple-storage-layout.ts:14

Characters of the digest in each directory level. Defaults to 3.