Skip to content

Import vitaminc-aead, -aead-frame and -aead-derive into the stack with their history #1836

Done

Description

@coderdan

Background

The plan in docs/plans/2026-11-14-move-vitaminc-aead-into-the-stack.md (#1831) moves three crates from cipherstash/vitaminc into this repository: vitaminc-aead, vitaminc-aead-frame and vitaminc-aead-derive. They define the value types Stack Encrypt seals, how each is encoded, and how a value is sealed. Today stack-encrypt takes them from crates.io at 0.10.0.

Stage 0 (#1832) pinned the bytes of every stored and wire format, so this stage can prove it changes nothing.

Problem

A change to these crates needs a vitaminc release before stack-encrypt can use it, and the engine cannot consolidate its own copy of the value types (stage 2) while the crates live elsewhere.

Proposal

  1. Import the three crates with their git history, at the code stack-encrypt uses today (0.10.0; nothing in them has changed in vitaminc since), into packages/vitaminc-aead, packages/vitaminc-aead-frame and packages/vitaminc-aead-derive. Keep their names and their MIT licence.
  2. Make them members of the root workspace, not published from here yet.
  3. Add [patch.crates-io] entries so that stack-encrypt and the vitaminc crates that stay on crates.io (vitaminc-normalize, -prf, -ore, -encrypt) all build against the copy here. Do the same in every workspace that resolves these crates on its own: the TypeScript SDK, the bridge's test addon, the Go guests, EQL's workspace and packages/stack-encrypt/fuzz.
  4. Change no behaviour. The stage 0 tests pass with no change to pinned bytes, and the copied source matches the published 0.10.0 crates apart from manifest changes the move needs.

The checks vitaminc runs on these crates (Kani, sanitizers, the storage corpus append-only check, cargo vet, cargo deny, fuzzing, Miri) move in a separate issue.

Metadata

Metadata

Assignees

Labels

RustSDKenhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions