Skip to content

[DEP-05/TD-01] Two crypto-primitive stacks (0.10 + 0.11-rc) compiled side-by-side #249

@intendednull

Description

@intendednull

Commit: 2f26d91 · Finding: DEP-05 / TD-01 (merged)

Problem

cargo tree -d shows parallel RustCrypto stacks:

  • digest 0.10.7 + 0.11.0-rc.10
  • block-buffer 0.10.3 + 0.11.0
  • crypto-common 0.1.6 + 0.2.1
  • sha2 0.10.x + 0.11.x
  • chacha20 0.9.1 + 0.10.0
  • curve25519-dalek 4.1.3 + 5.0.0-pre.1
  • ed25519-dalek split likely via iroh-base

willow-crypto / willow-state use the stable 0.10.x stack (sha2, hmac, hkdf, curve25519-dalek 4), while willow-network transitively pulls the 0.11-rc stack through iroh 0.97.0 and ed25519-dalek 3.0.0-pre.1.

Impact: doubles binary size for these crates, doubles build time, doubles the audit surface for any future RustCrypto advisory. RC crates in a production dependency tree is a yellow flag.

Fix

Either (a) pin iroh to a stable release that tracks the 0.10 stack, or (b) migrate willow-crypto/willow-identity/willow-state onto the 0.11-rc stack once it's final. Track in a single upgrade plan so all crates flip together.

Obvious? No — depends on iroh release timing.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions