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
|`merkle:object_hash`| string |**REQUIRED** in Items, Collections, and Catalogs. A cryptographic hash of the object's metadata, used to verify its integrity. |
|`merkle:object_hash`| string |**REQUIRED** in Items, Collections, and Catalogs. A cryptographic hash of the object's metadata, used to verify its integrity.|
36
36
|`merkle:hash_method`|[Hash Method Object](#hash-method-object)|**REQUIRED** in Collections and Catalogs. An object describing the method used to compute `merkle:object_hash` and `merkle:root`, including the hash function used, fields included, ordering, and any special considerations. Items inherit this from their parent Collection but may include it if they use a different method. |
37
-
|`merkle:root`| string |**REQUIRED** in Collections and Catalogs. The Merkle root hash representing the Collection or Catalog, used to verify the integrity of all underlying objects. |
37
+
|`merkle:root`| string |**REQUIRED** in Collections and Catalogs. The Merkle root hash representing the Collection or Catalog, used to verify the integrity of all underlying objects.|
38
38
39
39
### Additional Field Information
40
40
41
41
#### `merkle:object_hash`
42
42
43
43
-**Type:** string
44
44
-**Description:** A cryptographic hash of the object's metadata (Item, Collection, or Catalog), computed according to the method specified in
45
-
the `merkle:hash_method`. This hash allows users to verify that the object's metadata has not been altered.
45
+
the `merkle:hash_method`. This hash allows users to verify that the object's metadata has not been altered.
46
46
47
47
#### `merkle:hash_method`
48
48
@@ -57,25 +57,25 @@ the `merkle:hash_method`. This hash allows users to verify that the object's met
57
57
-**Usage:**
58
58
-**Collections and Catalogs:** This object is **REQUIRED**.
59
59
-**Items:** Items inherit the `merkle:hash_method` from their parent Collection by default. An Item can optionally include its own
60
-
`merkle:hash_method` if it uses a different hash method than the Collection.
60
+
`merkle:hash_method` if it uses a different hash method than the Collection.
61
61
62
62
#### `merkle:root`
63
63
64
64
-**Type:** string
65
65
-**Description:** The Merkle root hash representing the Collection or Catalog. It is computed by building a Merkle tree from the `merkle:object_hash`
66
-
values of its child objects and, optionally, its own `merkle:object_hash`. This root hash provides a single value that represents the integrity of
67
-
all underlying objects.
66
+
values of its child objects and, optionally, its own `merkle:object_hash`. This root hash provides a single value that represents the integrity of
67
+
all underlying objects.
68
68
69
69
### Hash Method Object
70
70
71
71
The `merkle:hash_method` object provides details about the hash computation method used for `merkle:object_hash` and `merkle:root`.
|`function`| string |**REQUIRED**. The cryptographic hash function used (e.g., `sha256`, `sha3-256`). |
76
76
|`fields`|\[string\]|**REQUIRED** (for all objects). An array of fields included in the hash computation. Use `"*"` or `"all"` to indicate that all fields are included. For nested fields, dot notation should be used (e.g., `properties.datetime`, `assets.image`). |
77
-
|`ordering`| string |**REQUIRED** (for Collections and Catalogs). Describes how the hashes are ordered when building the Merkle tree (e.g., "ascending by hash value"). |
78
-
|`description`| string | Optional. Additional details or notes about the hash computation method, such as serialization format or any special considerations. |
77
+
|`ordering`| string |**REQUIRED** (for Collections and Catalogs). Describes how the hashes are ordered when building the Merkle tree (e.g., "ascending by hash value"). |
78
+
|`description`| string | Optional. Additional details or notes about the hash computation method, such as serialization format or any special considerations. |
79
79
80
80
## Computing Hashes and Merkle Roots
81
81
@@ -101,7 +101,7 @@ The `merkle:hash_method` object provides details about the hash computation meth
101
101
- Pairwise hash the ordered hashes, proceeding up the tree until a single hash remains—the `merkle:root`.
102
102
4.**Include `merkle:hash_method`:**
103
103
- Specify the method used in the Collection's or Catalog's `merkle:hash_method` field, including any details necessary for users
104
-
to replicate the process.
104
+
to replicate the process.
105
105
106
106
## Examples
107
107
@@ -130,6 +130,7 @@ The `merkle:hash_method` object provides details about the hash computation meth
130
130
```
131
131
132
132
### Collection Example
133
+
133
134
```jsonc
134
135
{
135
136
"type":"Collection",
@@ -151,13 +152,12 @@ The `merkle:hash_method` object provides details about the hash computation meth
0 commit comments