Repository navigation
v0.1.0 - Initial Release
·
15 commits
to main
since this 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 |