Skip to content

PrimeStamp

Decentralized Document Authentication with Prime-Space Fingerprinting

PrimeStamp provides cryptographic proof of document existence, authorship, and integrity by combining blockchain timestamping with a novel Prime-Space fingerprinting system. It supports partial proofs and progressive disclosure, allowing you to prove properties of a document without revealing its full contents.


Key Features

  • Multi-algorithm hashing -- SHA3-256, BLAKE3, and SHA-256 for content integrity
  • Ed25519 digital signatures -- Prove authorship with fast, secure signing
  • Multi-chain blockchain anchoring -- Bitcoin, Ethereum, Solana, Polygon, and more
  • RFC 3161 timestamps -- Legally recognized timestamp authority support
  • Prime-Space fingerprinting -- Structural fingerprints with Merkle tree partial proofs
  • Configurable presets -- From casual blog posts to patent-grade maximum security
  • AES-256-GCM / ChaCha20 encryption -- Optional authenticated encryption at rest
  • Plugin architecture -- Extensible storage, anchors, fingerprinting, and integrations
  • CLI, REST API, GraphQL, gRPC, and WebSocket -- Multiple interfaces for every workflow

Quick Example

from primestamp import StampEngine, KeyPair

# Generate a signing identity
key_pair = KeyPair.generate()

# Create an engine with that identity
engine = StampEngine(key_pair=key_pair)

# Stamp a document using the "standard" preset
stamp = engine.create_stamp(
    b"This is my document content",
    preset="standard",
)

# Verify the stamp against the original content
result = engine.verify_stamp(stamp, b"This is my document content")
print(f"Valid: {result.is_valid}")          # True
print(f"Signature OK: {result.signature_valid}")  # True
print(f"Hash match: {result.content_hash_valid}") # True

How It Works

  1. Hash -- The document content is hashed with a cryptographic algorithm (default: SHA3-256).
  2. Sign -- An Ed25519 signature binds the hash to your identity.
  3. Anchor -- The signed hash is submitted to one or more blockchains for an immutable timestamp.
  4. Verify -- Anyone can check the hash, signature, and anchor proofs independently.

For documents requiring partial disclosure, PrimeStamp can also generate a Prime-Space fingerprint with a Merkle tree, enabling proofs about specific sections without revealing the whole document.

Next Steps