Summary
Specify a versioned environment-secret envelope that replaces the Stacks reference implementation simplified public/private construction with X25519 key agreement, HKDF-SHA-256 key derivation, and AES-256-GCM authenticated encryption while retaining an explicit legacy-read migration path.
Deliverables
- Versioned envelope and canonical binary layout
- X25519 key serialization and ephemeral-static key agreement
- HKDF salt/info and AES-GCM nonce/tag sizes
- Authenticated metadata and strict parsing/error behavior
- Legacy read/new write migration window
- Rotation, revocation, recovery, and logging guarantees
- Independent security review
Implementation and governance status
The proposal is published as RFC 0005 in ea9dbe4. Reference implementation and tests are in stacksjs/stacks draft PR #2064, primarily commit ffa42cd. Independent review remains tracked in stacksjs/stacks#2061. The RFC remains Proposed through the public review window ending 2026-08-20; implementation does not imply acceptance or production ratification.