Skip to content

Prepare SAFE 0.4.0 release - #42

Merged
HDauven merged 2 commits into
mainfrom
release/0.4.0
Oct 8, 2026
Merged

HDauven merged 2 commits into
mainfrom
release/0.4.0

Conversation

@HDauven

@HDauven HDauven commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Prepare dusk-safe 0.4.0, in two commits on main:

  1. Update test dependencies to dusk-bls12_381 0.16 and dusk-jubjub 0.16. The library only depends on zeroize, so it is unchanged. The tests, the fixture generator and the README example pass None to hash_to_scalar, the byte-compatible legacy construction, and the frozen encryption vectors pass unchanged.
  2. Prepare the release: bump the version from 0.3.0 to 0.4.0, move the accumulated Unreleased entries into the dated 0.4.0 section, keep an empty Unreleased section and update the comparison links.

#41 has merged, so this is rebased onto main.

Compatibility

0.4.0 is the intended breaking release for the removal of Sponge: PartialEq in #40, tracked in #39. Consumers using whole-sponge equality or requiring that trait must update their code; the migration is documented on Sponge. The changelog also records the Rust 1.96.1 MSRV and the accumulated hardening fixes.

Validation

Passed locally on Rust 1.96.1:

  • make test and make cq, including debug/release tests and the zeroize 1.5.4 compatibility consumer.
  • No-default-features tests, and thumbv6m-none-eabi builds with and without encryption.
  • Documentation and all four frozen AE mechanics vectors.
  • cargo package --all-features and cargo publish --dry-run --all-features.
  • Debug/release, no-default-features, no_std, documentation and fixture checks repeated from the extracted 0.4.0 package.

After the rebase, make test, make cq, make no-std and cargo publish --dry-run pass 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.

@HDauven
HDauven marked this pull request as draft September 14, 2026 12:10
Base automatically changed from fix/absorb-validated-input to main September 14, 2026 13:51
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.
@HDauven
HDauven marked this pull request as ready for review October 7, 2026 17:50
@HDauven
HDauven requested review from Neotamandua and xevisalle and a balanced review from Copilot October 7, 2026 17:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.

@HDauven

HDauven commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

@xevisalle @Neotamandua since your approvals on 48db4a9, this PR gained a new first commit, 28566c4: the test dependencies move to dusk-bls12_381 0.16 and dusk-jubjub 0.16, with hash_to_scalar(None, …) in the tests, the fixture generator and the README example (the frozen encryption vectors pass unchanged). The release commit is rebased on top of it and re-dated to 2026-10-07. Could you take another look?

@HDauven
HDauven merged commit e7ad333 into main Oct 8, 2026
4 checks passed
@HDauven
HDauven deleted the release/0.4.0 branch October 8, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants