mirror of
https://github.com/luxfi/fhe.git
synced 2026-09-24 00:27:17 +00:00
Two thousand and twenty-one packages carried more than one spec across this estate — eslint alone in a hundred and four forms — and a package resolved twice is two copies at run time, which is how react-hook-form came to report "two different types with this name" from files nobody had edited. None do now. The number lives in the catalog: a manifest names the package, the workspace names the version. Where a manifest cannot reach a catalog it still carries the one version, because the table is the source either way. Co-authored-by: Hanzo Dev <[email protected]>
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