Repository navigation
Releases
Releases · foxhackerzdevs/stverify
v0.2.4
Full Changelog: v0.2.3...v0.2.4
v0.2.3
v0.2.2
v0.2.1
v0.2.0 - Parallel Multi-Shard Manifest Verification
🚀 stverify v0.2.0 — Parallel Multi-Shard Manifest Verification
stverify v0.2.0 introduces parallel multi-shard manifest signing and verification (sign-dir / verify-dir), engineered specifically for hyperscale AI deployments (such as multi-thousand GPU NVIDIA B300 clusters) running 70B–405B+ parameter LLMs across dozens of .safetensors shards.
🌟 What's New in v0.2.0
1. ⚡ Parallel Multi-Shard Hashing (rayon)
- Shards are discovered, sorted deterministically by filename, and hashed concurrently across all available CPU cores.
- Slashes verification latency for massive multi-shard weights (e.g., Llama-3 70B, DeepSeek 671B) before weights are mapped to GPU memory.
2. 📜 Canonical Manifest Signing (sign-dir)
- Builds a canonical, newline-delimited manifest (
<sha256_hex> <filename>) across every.safetensorsfile in the model directory. - Cryptographically signs the manifest with Ed25519, generating
stverify.manifestandstverify.sig.
3. 🛡️ Complete Directory Integrity Guarantees (verify-dir)
- Authenticity: Validates the Ed25519 signature of the manifest itself against the public key.
- Tampering Detection: Catches any bit-level weight corruption across any shard in parallel.
- Injection & Deletion Protection: Instantly detects missing shards or unmanifested rogue/backdoored shards injected into the directory.
4. 🐳 Cloud-Native & Kubernetes Ready
- Added multi-stage
Dockerfile(FROM scratch) for ultra-lightweight deployment (~5MB) as a Kubernetes init-container for Confidential GPU pods. - Added GitHub Actions automated multi-platform release matrix (Linux musl, macOS, Windows).
📦 CLI Commands
# Multi-shard directory operations (Recommended for production)
stverify sign-dir ./models/llama-3-70b-instruct/ signing.priv
stverify verify-dir ./models/llama-3-70b-instruct/ signing.pub
# Single-shard operations
stverify sign model-00001-of-00004.safetensors signing.priv model-00001.sig
stverify verify model-00001-of-00004.safetensors signing.pub model-00001.sig🎯 Process Exit Codes
| Exit Code | Meaning |
|---|---|
0 |
Success: Signature and framing verified; all shards intact. |
1 |
Error: Usage error, I/O failure, or malformed header. |
2 |
Failure: Signature mismatch, tampered weights, missing shard, or rogue shard injected. |
v0.1.0 - Initial Release
🚀 stverify v0.1.0 — Initial Release
stverify is a zero-bloat cryptographic signer and integrity verifier for .safetensors model weights, purpose-built for multi-tenant GPU enclaves, sovereign AI clusters, and zero-trust inference pipelines.
✨ Key Features
- 🦀 Zero-Bloat Static Rust Binary: Written in pure Rust with minimal, audited cryptographic dependencies (
ed25519-dalekandsha2). Requires zero Python runtimes, dynamic OpenSSL dependencies, or bloated container base layers. - ⚡ Constant-Memory Streaming: Hashes massive multi-gigabyte tensor shards in 64 KB streaming chunks. Verifies 70B+ parameter model shards within memory-constrained confidential VMs without memory spikes or risk of OOM kills.
- 🛡️ Framing & Header Sanity Validation: Validates the 8-byte little-endian
.safetensorsheader length boundary and enforces sanity limits (100 MB max header size) before reading payload bytes. - 🔐 Deterministic Ed25519 Signatures: Fast, constant-time signature generation and verification built for automated init-containers, CI/CD weight publishing, and KMS release gates.
- 🎯 Predictable Process Exit Codes:
0: Signature valid and file framing intact.1: Usage error, I/O failure, or malformed.safetensorsheader.2: Cryptographic verification failed (tampered weights or mismatched public key).
📦 CLI Commands
# 1. Generate an Ed25519 signing keypair
stverify keygen signing.priv signing.pub
# 2. Cryptographically sign a safetensors shard
stverify sign model-00001-of-00004.safetensors signing.priv model-00001.sig
# 3. Verify integrity prior to loading weights into GPU memory
stverify verify model-00001-of-00004.safetensors signing.pub model-00001.sig🔒 Threat Model Alignment
| Layer | Security Control |
|---|---|
| Silicon & Boot | NVIDIA GPU Hardware Root of Trust + SPDM Remote Attestation |
| Memory & Interconnect | CPU-to-GPU TEE Boundary + 5th-Gen NVLink Line-Rate Encryption |
| Fabric | Quantum InfiniBand Hardware Partition Keys (PKeys) |
| Model Weights | stverify |