Repository navigation
feat: prove an inclusion of one sidecar path - #12
Merged
Merged
Conversation
`rfc9162-sidecar prove` writes a checkpoint and an inclusion proof for one path. `verify-proof` checks that proof, and an optional blob file, without opening the log.
The sidecar reference and the log how-to cover prove and verify-proof, and the install page lists both commands.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Write an inclusion receipt for one path in a Request for Comments (RFC) 9162 sidecar log, and check that receipt without the log.
rfc9162-sidecar prove --dir DIR --path PATHwrites one JSON object: the checkpoint note, the exact entry, the inclusion path, and the blob hash of a put.verify-proof --proof FILE --trusted KEYLINEchecks the note and the inclusion path.--blob-filechecks that the file's SHA-256 is the object's blob hash.verify-proofdoes not open the pack. A latersnapshotreplacespack/checkpoint. The stored object still verifies, because it keeps the note it was issued against.A consumer that keeps a record outside the log needs that receipt to stay valid after the next snapshot. The checkpoint file alone does not.
verify-proofprintsverified proofand the path, index, size, and root. The reference isdocs/src/reference/sidecar.md.