mirror of
https://github.com/luxfi/fhe.git
synced 2026-07-26 23:16:08 +00:00
- data-seal: Verifiable Data Integrity Seal (PIP-0010/LP-0535) FHE-encrypted tamper-proof sealing with Public/ZK/Private modes, batch sealing, homomorphic verification - content-provenance: AI & Media Content Provenance (PIP-0011/LP-7110) Model manifests, output attestation via homomorphic comparison, media derivation DAGs - encrypted-crdt: Encrypted CRDT (PIP-0013/LP-6500) LWW-Register with FHE values, OR-Set with tag-based add/remove, Lamport timestamp conflict resolution, deterministic merge - shadow-governance: Shadow Government Protocol (PIP-7010) Anonymous ministries, encrypted voting with homomorphic tallying, nullifier-based anti-fraud, quorum enforcement Each example includes Solidity contracts, Hardhat tests, CLI tasks, and README linking to corresponding PIP and LP specifications.
Content Provenance - AI & Media Authentication
FHE-powered content provenance tracking for AI models, generated outputs, and media.
Implements: PIP-0011 / LP-7110
Features
- Model Sealing: Register AI model manifests (weights, architecture, training data) with FHE-encrypted version
- Output Attestation: Prove AI output came from a specific model via homomorphic comparison — model ID never revealed
- Media Chain: Track full provenance from point-of-capture through every edit
- Derivation DAG: Directed acyclic graph of content lineage
Content Types
| Type | Description | Example |
|---|---|---|
| AIModel | Model weights/architecture | GPT checkpoint |
| AIOutput | Generated content | Text, image, code |
| MediaCapture | Point-of-capture media | Photo from device |
| MediaEdit | Edited derivative | Cropped, filtered |
| Document | Text document | Article, report |
Quick Start
npm install
npx hardhat compile
npx hardhat test
# Deploy
npx hardhat task:deploy
# Register a model
npx hardhat task:register-content --contract <addr> --hash 0x... --type 0
# Register AI output
npx hardhat task:register-content --contract <addr> --hash 0x... --type 1 --model 42
# Attest output origin
npx hardhat task:attest-output --contract <addr> --output 1 --model 42
# View provenance chain
npx hardhat task:verify-provenance --contract <addr> --id 0
Related
- Go implementation: github.com/luxfi/fhe/cmd/provenance — Boolean-circuit model provenance
- Go media seal: github.com/luxfi/fhe/cmd/mediaseal — Media authentication
- LP-0535: Data Integrity Seal Protocol
- LP-0530: Z-Chain Receipt Registry