Verify attested data segments. Standalone SHA-256 verification for data provenance.
Project description
fors33-verifier
Standalone verification for attested data segments. Confirm that a data segment matches a published SHA-256 hash.
Install
pip install fors33-verifier
Usage
Remote (presigned URL, full file):
fors33-verifier --url "https://..." --expected-hash <sha256_hex>
Remote (HTTP Range, segment only):
fors33-verifier --url "https://..." --start 0 --end 1048576 --expected-hash <sha256_hex>
Local full file:
fors33-verifier --file /path/to/segment.csv --expected-hash <sha256_hex>
Local segment (direct byte range):
fors33-verifier --file /path/to/data.csv --start 0 --end 4096 --expected-hash <sha256_hex>
Local segment (using attestation record):
fors33-verifier --file /path/to/data.csv --record /path/to/attestation_record.json
The attestation record JSON must contain byte_start, byte_end, and hash. Uses memory-efficient chunked reading (64KB) so large files do not cause OOM.
Output
System-log format with timestamp, target, SHA-256, and status. Exits 0 on match, 1 on mismatch.
Requirements
Python 3.9+. Uses only standard library (hashlib, json, argparse, urllib.request).
License
MIT License. See LICENSE file.
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 fors33_verifier-0.1.0.tar.gz.
File metadata
- Download URL: fors33_verifier-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8721ea4ef9180d29be99d711a54169a91e88bc5db1a7934b72c00f9932dbe1cd
|
|
| MD5 |
3fd39e805a4cd059f00e810422d97c7c
|
|
| BLAKE2b-256 |
6071c97ef18d32566284b0250863115eb152b6c2a98014fc663032fd9d3bc627
|
File details
Details for the file fors33_verifier-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fors33_verifier-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7245cf665fa27078c08279e53a2ad0b2d00e57396f7514831faa6ea803272153
|
|
| MD5 |
7945f4b738b6a127b5236f22b0a18143
|
|
| BLAKE2b-256 |
396f8f1d146048a4cafceebba5bd2554194743c8af4594087bf9624dd45186e9
|