Commit Graph
2 Commits
Author SHA1 Message Date
terminarandClaude Opus 5.5 e1495430c5 trust: the signing half of publisher signatures
Moved from yet's internal/trust without changing behavior or file
formats: KeyPair, GenerateKey, SaveKeyPair, LoadPrivateKey,
ParsePrivateKey, LoadPublicKey, MarshalPublicKey, SignEd25519,
VerifyEd25519, ExportPEM, ImportPEM, and the package signature as
SignDigest. New: Sign and VerifyMessage, a detached minisign signature
over any bytes and its check (returns the trusted comment; another key
with a colliding ID fails), and KeyFromRef, a key pair from a
core/secretref reference with error messages that never carry the
secret. A golden vector (testdata/sign-vector.*) pins the output, and
VerifySignature is tested against what SignDigest makes.

For yabar's evidence signing (ADR-0037 there, owner decision Q-5
option A); yet keeps registry signing and its auto-sign key store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:08:12 +01:00
terminarandClaude Opus 5.5 35f8b7d18a trust: the verifying half of publisher signatures (own module)
Moved from yet/internal/trust, behavior and file formats unchanged, so
yacota (images) checks against the same trust-policy.json and
known-keys.json as yet (packages): the signature payload and its check
(Verify over fetched referrers), known keys with TOFU pinning
(Reconcile; refusals are ErrRefused), the trust policy (Evaluate,
AllowsCapability), Curated, Pinned and Home (yet's data directory).
Signing, key storage and the registry side stay in yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 16:27:35 +01:00