Skip to content

v0.1.0 - Initial Release

Choose a tag to compare

@Abhrankan-Chakrabarti Abhrankan-Chakrabarti released this 23 Nov 15:30
· 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-dalek and sha2). 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 .safetensors header 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 .safetensors header.
    • 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