foundation tier

foundation-crypto-sign

Algorithm-agile signing: Ed25519 / ML-DSA-65 (FIPS 204) / hybrid

Algorithm-agile signing: Ed25519 / ML-DSA-65 (FIPS 204) / hybrid

Tierfoundation
Roleunclassified (baselined)
Pathcrates/foundation/crypto-sign
Edition2021
Targetsfoundation_crypto_sign, conformance
Public items0 across 0 modules
Tests33

What it is for

Algorithm-agile signing library crate.

foundation-crypto-sign makes the signing algorithm a datum instead of a hardcoded curve, so a call site can migrate from classical Ed25519 to post-quantum ML-DSA-65 (FIPS 204) — or run both at once in a hybrid signature — without changing its shape. See docs/userstories/sprint-3.22-crypto-sign.md for the full design and the NIST IR 8547 migration timeline this exists to serve.

# Non-goals

KMS/key custody, ML-DSA-44/-87, SLH-DSA, ML-DSA context strings, and PEM/PKCS#8 interop are explicitly out of scope for this crate.

Capabilities

No public items.

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

No public items.

Re-exports. Exported here, defined elsewhere.

ExportDefined in
Errorerror::Error
SigAlgalg::SigAlg
Signaturesig::Signature
{SigningKey,VerifyingKey}keys::{SigningKey,VerifyingKey}

Boundary

Depends on no other workspace tier.

Shares tier foundation with 27 other crates: foundation-audit-log, foundation-basemodels, foundation-bounded-io, foundation-conversation-closure, foundation-decisioning, foundation-encounter-vocabulary, foundation-fs-metadata, foundation-i18n, … (27 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)foundation
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/foundation/crypto-sign
Vocabulary in force (lexicon)current

Dependencies

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
base64^0.22noalways
ed25519-dalek^2zeroizenoalways
ml-dsa=0.1.1alloc, zeroizenoalways
rand_core^0.6getrandomyesalways
serde^1derivenoalways
signature^2noalways
thiserror^2noalways
zeroize^1derivenoalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
serde_json^1noalways

Build. None.

Depended on by. 5 workspace crates.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  n_foundation_audit_log["foundation-audit-log"] -->|uses| SELF
  n_foundation_license["foundation-license"] -->|uses| SELF
  n_operations_block_imaging["operations-block-imaging"] -->|uses| SELF
  n_platform_privacy_scan_api["platform-privacy-scan-api"] -->|uses| SELF
  n_tools_ir_triage["tools-ir-triage"] -->|uses| SELF
  SELF["foundation-crypto-sign"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

FeatureEnablesOn by default
defaultyes
keygendep:rand_core, ed25519-dalek/rand_coreno
flowchart LR
  n_default["default"]
  n_keygen["keygen"] --> n_dep_rand_core["dep:rand_core"]
  n_keygen["keygen"] --> n_ed25519_dalek_rand_core["ed25519-dalek/rand_core"]

Targets

KindNameSource
libfoundation_crypto_sign`src/lib.rs`
testconformance`tests/conformance.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

5 workspace crates depend on this one: foundation-audit-log, foundation-license, operations-block-imaging, platform-privacy-scan-api, tools-ir-triage.

Verification

KindCount
Unit tests7
Integration tests26
Examples0
Doctests0

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc00
Public modules with a //! block00

Metrics

MetricValue
Rust source files5
Source lines979
Code lines589
Public API items0
Public modules0
Tests33
Examples0
Cargo features2
Direct runtime dependencies8
Workspace reverse dependencies5
pie showData
    title Rust source composition
    "Code" : 589
    "Blank or comment" : 390

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

All foundation · Manual