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: CHANGELOG.md
+1-7Lines changed: 1 addition & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Added
11
11
12
-
### Changed
13
-
14
-
### Deprecated
15
-
16
-
### Removed
17
-
18
-
### Fixed
12
+
- Added `verify` command to cli with accompanying script to ensure that the Merkle tree verification json produced by the `compute` command matches [#2](https://github.com/stacchain/stac-merkle-tree-cli/pull/2)
- path/to/catalog_directory: (Required) Path to the root directory containing catalog.json.
141
+
-`path/to/catalog_directory`: (Required) Path to the root directory containing `catalog.json`.
136
142
137
143
#### Options:
138
144
139
-
- --merkle-tree-file TEXT: (Optional) Path to the output Merkle tree structure file. Defaults to merkle_tree.json within the provided catalog_directory.
145
+
-`--merkle-tree-file TEXT`: (Optional) Path to the output Merkle tree structure file. Defaults to `merkle_tree.json` within the provided catalog_directory.
Merkle tree structure saved to /path/to/my_stac_catalog/merkle_tree.json
178
184
```
179
185
186
+
### 2. `verify`
187
+
188
+
The `verify` command validates the integrity of a Merkle tree JSON file by recalculating `merkle:root` values and comparing them to the expected values.
- Collection 'COP-DEM' has mismatched merkle:root.
220
+
- Catalog 'Catalogue' has mismatched merkle:root.
221
+
```
222
+
180
223
## Merkle Tree Extension Specification
181
224
182
225
This tool complies with the [Merkle Tree Extension Specification](https://github.com/stacchain/merkle-tree), which outlines how to encode STAC objects in a Merkle tree to ensure metadata integrity.
@@ -352,15 +395,19 @@ Contributions are welcome! If you encounter issues or have suggestions for impro
352
395
353
396
## Verification Steps
354
397
355
-
### 1. Run the CLI Tool:
398
+
### 1. Compute Merkle Tree
399
+
400
+
Use the `compute` command to process your STAC catalog and generate a Merkle tree structure.
Merkle tree structure saved to /path/to/catalog_directory/merkle_tree.json
374
421
```
375
422
376
-
-**Merkle Tree JSON**: Verify that the `merkle_tree.json` (or your specified output file) accurately represents the hierarchical structure of your STAC catalog with correct `merkle:object_hash` and `merkle:root` values.
423
+
- The tool will generate a `merkle_tree.json` file (or the specified output file), which represents the hierarchical structure of your STAC catalog, including `merkle:object_hash` and `merkle:root` values.
424
+
425
+
### 2. Verify Merkle Tree
426
+
427
+
Use the verify command to validate the integrity of the generated Merkle tree JSON file.
0 commit comments