Skip to main content

Tamper‑evident signatures and license lineage for LoRA / adapter files

Project description

LoRA‑Provenance loraprov

CI
License
Python versions
📚 Docs: https://keithtyser.github.io/lora-provenance

Tamper‑evident signatures and license lineage for any LoRA / adapter file.


Quick‑start

# install (after first PyPI release)
pip install loraprov

# generate a signing key
loraprov key generate alice

# sign an adapter
loraprov sign adapter.safetensors --parent-sha 6efa... --license MIT --key alice

# verify before deploying
loraprov verify adapter.safetensors

Tip → to protect Hugging Face pushes, enable the pre‑upload filter.
Need compliance docs? loraprov sbom adapter.safetensors exports a CycloneDX SBOM instantly.


Architecture

flowchart LR
    A[Developer] --> B["loraprov sign"]
    B --> C["Signed Adapter"]
    C --> D["loraprov verify<br/>(CI / Prod)"]
    B --> E["HF filter"]
    E --> C
    C --> F["SBOM export"]

Why use LoRA‑Provenance?

Problem Benefit
Poisoned adapters Signature mismatch blocks deployment
License ambiguity License + parent SHA embedded at sign‑time
Compliance (EU AI Act, NIST AI RMF) One‑line SBOM and full provenance chain
Reproducibility Cite an immutable SHA‑256 instead of a URL

Roadmap

  • WebAssembly verifier (browser demo)
  • Hardware‑backed keys (YubiKey)
  • Lineage visualizer (interactive graph)

Contributing

  1. git clone … → poetry install
  2. poetry run pytest (tests + lint)
  3. Open a PR – CI must stay green

Licensed under Apache‑2.0 © 2025 Keith Tyser & contributors.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loraprov-0.1.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loraprov-0.1.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file loraprov-0.1.1.tar.gz.

File metadata

  • Download URL: loraprov-0.1.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.9.13 Windows/10

File hashes

Hashes for loraprov-0.1.1.tar.gz
Algorithm Hash digest
SHA256 536acf611a2c102d937d59a3e2ee42bb14675df0f4d719271a3ff8e2c1cd5487
MD5 7653619f224be379f15b742eff214274
BLAKE2b-256 a27561fc396f842a47f48ea8265ab667746842981122347f0505f3710bc51d2a

See more details on using hashes here.

File details

Details for the file loraprov-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: loraprov-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.9.13 Windows/10

File hashes

Hashes for loraprov-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6a9a42378ac02c9483eb7f5dc8c97433daf2560d4904a1425ed2ab5e5b20de6
MD5 c17749143ef759deee878403053c2376
BLAKE2b-256 287b8610ceec08e1578f1e06e6eb0f2a0fb33653163253344b7490934412deef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page