Skip to content

[FEATURE] Model Signing with Ed25519 #112

@noahgift

Description

@noahgift

Summary

Add cryptographic model signing for integrity verification and provenance tracking.

Background

Per trueno-aprender-stdlib-core-language-spec.md Section 13.4 (Model Persistence):

  • Model signing with Ed25519

Requirements

  1. Signing API

    impl Model {
        fn sign(&self, private_key: &Ed25519PrivateKey) -> SignedModel;
        fn verify(&self, public_key: &Ed25519PublicKey) -> Result<bool, Error>;
    }
  2. Features

    • Ed25519 signature (fast, secure)
    • Embedded signature in SafeTensors metadata
    • Key management utilities
    • Signature verification on load
  3. Security

    • Tamper detection
    • Provenance tracking
    • Chain of custody

Acceptance Criteria

  • Models can be signed with Ed25519 keys
  • Signatures can be verified
  • Signature embedded in SafeTensors format
  • Tampered models fail verification

Related

  • Ruchy spec: docs/specifications/trueno-aprender-stdlib-core-language-spec.md
  • SafeTensors already implemented in aprender::serialization

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions