Repository navigation
Prepare SAFE 0.4.0 release - #42
Conversation
Pass None to hash_to_scalar in the tests, the fixture generator and the README example. It selects the byte-compatible legacy construction, so the frozen encryption vectors pass unchanged.
Bump dusk-safe to 0.4.0 for the intentional Sponge equality API removal and the accumulated hardening fixes. Cut the dated changelog section and update release comparison links.
There was a problem hiding this comment.
🟢 Approval recommended
The release metadata and limited hashing API updates are consistent, with no blocking issues identified.
0 open findings
What changed in this PR
Prepares dusk-safe 0.4.0 to release accumulated hardening, including the previously merged removal of Sponge: PartialEq. Production library code is unchanged.
Changes:
- Updates test dependencies to 0.16 and selects legacy-compatible hashing in tests and examples.
- Bumps the package version and finalizes the dated changelog and comparison links.
| File | Description |
|---|---|
| tests/encryption.rs | Updates hashing calls to pass None. |
| README.md | Adapts the example to the updated hashing API. |
| examples/generate_encryption_fixtures.rs | Updates fixture-generator hashing calls. |
| CHANGELOG.md | Finalizes 0.4.0 while retaining an empty Unreleased section. |
| Cargo.toml | Bumps the release version and test dependencies. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@xevisalle @Neotamandua since your approvals on 48db4a9, this PR gained a new first commit, 28566c4: the test dependencies move to |
Summary
Prepare
dusk-safe0.4.0, in two commits onmain:dusk-bls12_3810.16 anddusk-jubjub0.16. The library only depends onzeroize, so it is unchanged. The tests, the fixture generator and the README example passNonetohash_to_scalar, the byte-compatible legacy construction, and the frozen encryption vectors pass unchanged.#41 has merged, so this is rebased onto
main.Compatibility
0.4.0 is the intended breaking release for the removal of
Sponge: PartialEqin #40, tracked in #39. Consumers using whole-sponge equality or requiring that trait must update their code; the migration is documented onSponge. The changelog also records the Rust 1.96.1 MSRV and the accumulated hardening fixes.Validation
Passed locally on Rust 1.96.1:
make testandmake cq, including debug/release tests and the zeroize 1.5.4 compatibility consumer.thumbv6m-none-eabibuilds with and without encryption.cargo package --all-featuresandcargo publish --dry-run --all-features.After the rebase,
make test,make cq,make no-stdandcargo publish --dry-runpass again on the new head (22 files packaged).Merge / publication
This prepares the release only: no tag or publication has been performed. The changelog date is set to 2026-10-07.