Simple rekor tool for assignment 4
Project description
Python Rekor Verifier
Introducing a powerful command-line tool explicitly designed for efficiently querying and verifying entries in a Rekor transparency log. With this tool, you can seamlessly fetch log entries, confidently verify inclusion proofs, and reliably check the consistency of the log's Merkle tree.
Description
This project offers a robust client for interacting directly with a Rekor server (e.g., https://rekor.sigstore.dev).
Key Features
- Effortlessly fetch log entries by index.
- Unquestionably verify artifact signatures using public keys from log entries.
- Conduct inclusion proof verification to ensure that an entry is securely within the log.
- Guarantee consistency between an old tree state and a new one with absolute confidence.
Installation
- Install the required dependencies:
pip install poetry poetry install
Usage
Harness the power of this tool directly from the command line.
Get Latest Checkpoint
Easily retrieve the latest signed tree head (checkpoint) from the Rekor server:
python main.py --checkpoint
Verify Inclusion
Confidently verify that an artifact is included in the log at a specified index. Simply provide the log index and the path to the original artifact:
python main.py --inclusion <LOG_INDEX> --artifact <PATH_TO_ARTIFACT>
Example:
python main.py --inclusion 12345 --artifact ./my-file.txt
Verify Consistency
Ensure that your previously known checkpoint is consistent with the latest checkpoint. Gather the treeID, treeSize, and rootHash from the old checkpoint for this verification:
python main.py --consistency --tree-id <TREE_ID> --tree-size <OLD_TREE_SIZE> --root-hash <OLD_ROOT_HASH>
Example:
python main.py --consistency --tree-id 238498... --tree-size 1000 --root-hash abcdef123...
Debug Mode
For detailed and verbose output for any command, confidently use the --debug or -d flag:
python main.py --checkpoint --debug
Get ready to take control of your log verification processes with the Python Rekor Verifier!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hap83334-4.0.0.tar.gz.
File metadata
- Download URL: hap83334-4.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.3 Linux/6.12.25-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efdbe6dff31f53ee1d383c43acb873b011a80f9ad9a9c1efcb0e08216e189efa
|
|
| MD5 |
79ae9ce10c2f7565cce64a9e4bc9f1c0
|
|
| BLAKE2b-256 |
85e51a96223cee535b6bec06dc40e62b99735ca6552c2190338e2bc04b401c83
|
File details
Details for the file hap83334-4.0.0-py3-none-any.whl.
File metadata
- Download URL: hap83334-4.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.3 Linux/6.12.25-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dab23e3613a0f49e89462789c8291ba4bdee0a188c44e4028e267604b3922369
|
|
| MD5 |
7bdbac5056ab45f16e1f1dcf728479f5
|
|
| BLAKE2b-256 |
18de2d957837d61317aaadffcbfe70199868bd9f8736b5540bad119345e46071
|