feat(signing): Mode 2 Ed25519 manifest signer (optional extra) - #269
Open
Demiladepy wants to merge 1 commit into
Open
feat(signing): Mode 2 Ed25519 manifest signer (optional extra)#269Demiladepy wants to merge 1 commit into
Demiladepy wants to merge 1 commit into
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Trust Mode 2 — authenticated integrity from
docs/features/trust-modes.md.Mode 1 proves an asset's bytes are intact; it doesn't prove who produced it. This PR adds optional Ed25519 manifest signing to
genblaze_core.signing, so a pipeline can prove a manifest was produced by a trusted key. It complements v0.6.0'sverify --fetch(bytes unchanged) with an authorship guarantee — together they close the full provenance chain that EU AI Act Article 50 transparency calls for.Shipped behind an optional
[signing]extra, so core stays dependency-light and existing behavior is unchanged.Changes
libs/core/genblaze_core/signing/base.py—SignatureBundle+ verification interfacelibs/core/genblaze_core/signing/ed25519.py—Ed25519Signer, canonical-JSON signing,verify_signature_bundlelibs/core/genblaze_core/signing/__init__.py— lazy exportslibs/core/genblaze_core/__init__.py— surface the signing modulelibs/core/pyproject.toml— optional[signing]extra (cryptography)libs/core/tests/unit/test_ed25519_signing.py— sign/verify + tamper-detection testsdocs/features/trust-modes.md— document Mode 2Test plan
make testpasses (unit tests for sign/verify + tamper detection added)make lintpassestrust-modes.mddescribes Mode 2Related
Reference consumer: ATTEST, an EU AI Act Article 50 compliance gateway built on Genblaze + Backblaze B2 (Backblaze Generative Media Hackathon). Signs every generated asset's manifest with Ed25519 and exposes a public verifier.