interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / ED25519_DEPENDENCY_REVIEW.md

43 lines · 2307 bytes Raw Blame History Rendered
1# Binary Artifact Ed25519 dependency review
2
3Binary Artifact v0 uses the RustCrypto `ed25519-dalek` implementation pinned
4to **2.2.0**. The kernel-facing dependency disables default features and
5enables only `fast`; this keeps the verifier `no_std` and excludes signing
6helpers, serialization, and OS integration from the kernel build. Verification
7uses `VerifyingKey::verify_strict` over the exact 29-byte signature domain
8followed by the 32-byte ArtifactId. The format does not accept Ed25519ph or
9Ed25519ctx.
10
11The exact dependency graph is locked in `Cargo.lock` and all workspace registry
12dependencies are checked into `vendor/`. `.cargo/config.toml` redirects
13crates.io to this snapshot so builds do not need registry access. The vendored
14manifest versions, upstream license declarations, and Cargo checksum metadata
15are retained. The primary packages in the signature implementation are:
16
17| Package | Locked version | Declared license |
18|---|---:|---|
19| `ed25519-dalek` | 2.2.0 | BSD-3-Clause |
20| `curve25519-dalek` | 4.1.3 | BSD-3-Clause |
21| `ed25519` | 2.2.3 | Apache-2.0 OR MIT |
22| `sha2` | 0.10.9 | MIT OR Apache-2.0 |
23| `subtle` | 2.6.1 | BSD-3-Clause |
24
25The application-side checks are deliberately narrow: the public-key
26fingerprint must match the selected local trust anchor; `verify_strict` must
27accept the canonical domain-plus-ArtifactId message; empty production anchors
28reject every signer; and qualification-only tests reject changed payloads,
29signature bytes, and signer fingerprints. The deterministic private test seed
30exists only in test/host qualification code and is never linked into the
31kernel. The qualification public key is behind the explicit
32`seed0b-test-anchor` feature, and the boot report labels that image as a test
33qualification build.
34
35This is a dependency selection and integration review, not a claim that this
36repository performed an independent cryptographic implementation audit. Any
37dependency update requires re-vendoring, lockfile review, the signature test
38vectors, and offline `aarch64-unknown-none` verification before merge.
39
40Upstream implementation and feature metadata:
41
42- <https://github.com/dalek-cryptography/curve25519-dalek/tree/main/ed25519-dalek>
43- <https://docs.rs/ed25519-dalek/2.2.0/ed25519_dalek/struct.VerifyingKey.html#method.verify_strict>