Repository navigation
build!: move to vitaminc 0.10.0 from crates.io - #144
Conversation
Both crates implement vitaminc-ore's traits, so the vitaminc-ore minor version is part of their public API: a crate on vitaminc 0.10 cannot use a scheme that implements 0.9's traits. Stack Encrypt needs 0.10 for the keyed order scheme and the `Orderable` trait without bytes. - Every vitaminc dependency moves from 0.9.0 to 0.10.0, in the workspace and in the detached ct-dudect, ct-taint and ore-rs fuzz crates, with their lockfiles. - vitaminc-ore 0.10 renames its `chrono` feature to `jiff`. The ore-rs test that orders a date now uses `jiff::civil::Date`, and chrono leaves the dev-dependencies. - The READMEs' dependency lines say 0.10. No stored format changes: vitaminc-ore 0.10 keeps every order term of 0.9.1 for dates and timestamps in years -9999 to 9999.
There was a problem hiding this comment.
🟡 Changes recommended
The jiff date adapter lacks a deterministic compatibility assertion to catch epoch changes, and the README’s mismatched dependency versions make the quick-start example fail to compile.
2 open issues
What changed in this PR
Upgrades ore-rs and clww-ore to vitaminc 0.10 from crates.io, enabling downstream stack-encrypt to use its updated ordering and PRF-based keying APIs.
Changes:
- Updates vitaminc dependencies and lockfiles across the workspace and detached testing tools.
- Replaces chrono with jiff in the date-ordering test and development dependencies.
- Updates README dependency guidance while retaining Rust 1.89 as the minimum supported version.
| File | Description |
|---|---|
packages/ore-rs/src/block_ore.rs |
Migrates date-ordering test inputs to jiff. |
packages/ore-rs/README.md |
Updates documented vitaminc dependency versions. |
packages/ore-rs/fuzz/Cargo.toml |
Upgrades fuzzing dependencies to vitaminc 0.10. |
packages/ore-rs/fuzz/Cargo.lock |
Refreshes the fuzzing dependency lockfile. |
packages/ore-rs/Cargo.toml |
Upgrades vitaminc and switches date-test support to jiff. |
packages/ct-taint/Cargo.toml |
Upgrades taint-checking dependencies to vitaminc 0.10. |
packages/ct-taint/Cargo.lock |
Refreshes the taint-checking dependency lockfile. |
packages/ct-dudect/Cargo.toml |
Upgrades timing-test dependencies to vitaminc 0.10. |
packages/ct-dudect/Cargo.lock |
Refreshes the timing-test dependency lockfile. |
packages/clww-ore/README.md |
Documents the vitaminc 0.10 requirement. |
packages/clww-ore/Cargo.toml |
Upgrades vitaminc runtime and conformance-test dependencies. |
Cargo.lock |
Locks upgraded vitaminc packages and replaces chrono with jiff. |
Review effort: Balanced
A jiff date's block ORE query is now compared byte for byte with the query for its day count since 1970-01-01. The frozen compatibility vectors pin the day-count encoding, so this ties the jiff adapter to the bytes stored terms were made with. The order check alone would pass under another epoch. The quick start named ore-rs 0.10, which is built on vitaminc 0.9. This change is breaking, so it releases as 0.12, the first ore-rs on vitaminc 0.10.
cipherstash-bot
left a comment
There was a problem hiding this comment.
Recommendation: 🟢 merge as it is
Nothing must change before merging. Four reviews of this change reported no problems. The change moves the dependency to vitaminc 0.10 and updates the jiff date test. This review has no inline comments, so it points to no specific diff line. It also does not list what each of the four reviews checked, so this result is a summary only.
How this review was made
| Agent | Model | Review type | Result |
|---|---|---|---|
| claude | claude-opus-5-5 | test-gap | 0 found, 0 posted |
| claude | claude-opus-5-5 | rust | 0 found, 0 posted |
| codex | gpt-5.6-terra | test-gap | 0 found, 0 posted |
| codex | gpt-5.6-terra | rust | 0 found, 0 posted |
Synthesis: claude-sonnet-5-5 merged the findings, removed duplicates and dropped findings it could not confirm in the code. 0 posted finding(s) were raised by two or more models.
Plain language: claude-sonnet-5-5 read every comment as a new reader would. No comment had a problem that stopped the reader acting, so none was rewritten. It also rewrote the review body.
Stack: not part of a stack.
Context loaded: the description, 0 linked issue(s) and 5 discussion entries.
vitaminc 0.10 is a breaking release. Three of its changes reach this repository's callers, and the rest is internal. - The `chrono` feature is now `jiff`, in stack-encrypt and eql-bindings. vitaminc 0.10 takes dates and timestamps from jiff, because chrono is marked unmaintained. `value::Date` and `value::Timestamp` convert to and from `jiff::civil::Date` and `jiff::Timestamp`. - Dates and timestamps must be in years -9999 to 9999, jiff's range, in every binding. The range was years -262143 to 262142. A value in range keeps its ciphertext and terms; a stored value outside it no longer reads. - `RangeError::LeapSecond` is renamed `RangeError::Nanoseconds`: jiff has no leap seconds, so the error says only that the nanoseconds were one second or more. Internally, `Sink::passthrough` takes its value by reference, so every sink in stack-encrypt and stack-guest-abi, and the test sources that write a passthrough, follow it. The Go module moves its vcffi and vcvalue pin to the commit vitaminc 0.10.0 was released from, so the host checks the same range as the guests. Its tests, README and the ledger fixture move to the new range's ends, and the conformance corpus's latest instant moves to jiff's maximum, 9999-12-30T22:00:00.999999999Z. clww-ore and ore-rs move to 0.8.0 and 0.12.0, their releases on vitaminc 0.10 (cipherstash/ore.rs#144). Those releases change no order term. The EQL timing harness's ciphertext generator moves with them, as its comment says it follows the root lockfile. A stored date or timestamp outside the new range reports Error::Aead, because vitaminc reports its leaf as malformed. cipherstash/vitaminc#630 tracks a clearer error.
vitaminc 0.10 is a breaking release. Three of its changes reach this repository's callers, and the rest is internal. - The `chrono` feature is now `jiff`, in stack-encrypt and eql-bindings. vitaminc 0.10 takes dates and timestamps from jiff, because chrono is marked unmaintained. `value::Date` and `value::Timestamp` convert to and from `jiff::civil::Date` and `jiff::Timestamp`. - Dates and timestamps must be in years -9999 to 9999, jiff's range, in every binding. The range was years -262143 to 262142. A value in range keeps its ciphertext and terms; a stored value outside it no longer reads. - `RangeError::LeapSecond` is renamed `RangeError::Nanoseconds`: jiff has no leap seconds, so the error says only that the nanoseconds were one second or more. Internally, `Sink::passthrough` takes its value by reference, so every sink in stack-encrypt and stack-guest-abi, and the test sources that write a passthrough, follow it. The Go module moves its vcffi and vcvalue pin to the commit vitaminc 0.10.0 was released from, so the host checks the same range as the guests. Its tests, README and the ledger fixture move to the new range's ends, and the conformance corpus's latest instant moves to jiff's maximum, 9999-12-30T22:00:00.999999999Z. clww-ore and ore-rs move to 0.8.0 and 0.12.0, their releases on vitaminc 0.10 (cipherstash/ore.rs#144). Those releases change no order term. The EQL timing harness's ciphertext generator moves with them, as its comment says it follows the root lockfile. A stored date or timestamp outside the new range reports Error::Aead, because vitaminc reports its leaf as malformed. cipherstash/vitaminc#630 tracks a clearer error.


Moves
ore-rsandclww-oreto vitaminc 0.10, so stack-encrypt can take vitaminc 0.10. stack-encrypt needs it for theOrderabletrait without bytes (cipherstash/stack#1611) and for keying an order scheme from a PRF without copying the plaintext.Summary
vitaminc-ore,vitaminc-protected,vitaminc-hmac,vitaminc-prf,vitaminc-randomandvitaminc-context. This covers the workspace and the detachedct-dudect,ct-taintandore-rs/fuzzcrates, and their lockfiles.chronofeature tojiff. The one ore-rs test that orders a date now usesjiff::civil::Date. chrono is no longer a dev-dependency.The MSRV stays at Rust 1.89, which is what vitaminc 0.10 declares too.
Why this is breaking
Both crates implement vitaminc-ore's
OrderScheme,OrderQueryandOrderKeyInit. So the vitaminc-ore minor version they build against is part of their public API. A crate on vitaminc 0.10 can't use a scheme that implements 0.9's traits.Stored format
No order term changes. vitaminc-ore 0.10 keeps every 0.9.1 order term for dates and timestamps in years -9999 to 9999, and the compatibility vectors and known answers pass unchanged.
Verification
cargo test --workspace --all-features: all pass.cargo +1.89.0 clippy --workspace --all-features --all-targets -- -D warnings: clean.cargo +1.89.0 fmt --all --checkandRUSTDOCFLAGS='-D warnings' cargo doc --workspace --all-features --no-deps: clean.