Skip to content

Conversation

@nresare
Copy link

@nresare nresare commented Mar 20, 2025

The reason I would like to make this change is to enable the upgrade to rand_core 0.9.x in the upstream curve25519-dalek repo which in turn would enable the upgrade to other parts of the RustCrypto set of crates.

The change is quite substantial, as can be seen here: nresare/curve25519-dalek@2228215 so it would seem to me that making that change to the forked curve25519-dalek-ng would be quite the effort, which makes me think that it would make sense to switch back to the upstream curve25519-dalek and do a coordinated release of both packages.

@nresare
Copy link
Author

nresare commented Mar 20, 2025

For details on the rand_core update in curve25519-dalek, please see dalek-cryptography/curve25519-dalek#729

@baloo
Copy link

baloo commented May 13, 2025

@str4d any chance you could give this a look?

This is similar to zkcrypto/ff#122 and zkcrypto/group#56. This could use a new minor release once merged.

Thanks a lot!

@tarcieri
Copy link

It looks like @hdevalence and @alinush are the ones with publish access to the merlin crate. It would be fantastic if one of them could review it.

tarcieri added a commit to dalek-cryptography/curve25519-dalek that referenced this pull request Jun 20, 2025
`merlin` is currently a blocker for upgrading to `rand_core` v0.9 by way
of the `transcript.build_rng().finalize()` function (which we only pass
`ZeroRng` to).

There is an open PR to update `rand_core` in `merlin` and I have pinged
the relevant people to take a look, hopefully: zkcrypto/merlin#11

However, in the event we can't get `merlin` updated, this at least
unblocks the `rand_core` upgrade, and is being opened as a contingency
plan for that case.

The PR has been implemented in a way that it should be easy to switch
back to upstream `merlin` in the event they upgrade `rand_core`.
tarcieri added a commit to dalek-cryptography/curve25519-dalek that referenced this pull request Jun 20, 2025
`merlin` is currently a blocker for upgrading to `rand_core` v0.9 by way
of the `transcript.build_rng().finalize()` function (which we only pass
`ZeroRng` to).

There is an open PR to update `rand_core` in `merlin` and I have pinged
the relevant people to take a look, hopefully: zkcrypto/merlin#11

However, in the event we can't get `merlin` updated, this at least
unblocks the `rand_core` upgrade, and is being opened as a contingency
plan for that case.

The PR has been implemented in a way that it should be easy to switch
back to upstream `merlin` in the event they upgrade `rand_core`.
rozbb pushed a commit to dalek-cryptography/curve25519-dalek that referenced this pull request Jun 20, 2025
`merlin` is currently a blocker for upgrading to `rand_core` v0.9 by way
of the `transcript.build_rng().finalize()` function (which we only pass
`ZeroRng` to).

There is an open PR to update `rand_core` in `merlin` and I have pinged
the relevant people to take a look, hopefully: zkcrypto/merlin#11

However, in the event we can't get `merlin` updated, this at least
unblocks the `rand_core` upgrade, and is being opened as a contingency
plan for that case.

The PR has been implemented in a way that it should be easy to switch
back to upstream `merlin` in the event they upgrade `rand_core`.
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.

3 participants