Repository navigation
deps: bump ed25519-dalek to 3 - #257
Merged
Merged
Conversation
This was referenced Oct 17, 2026
Contributor
Author
|
Workflow lint fails on the existing dtolnay/rust-toolchain pin in ci.yml, which this PR does not touch: zizmor reports ref-version-mismatch because the action's master branch moved to 683b588. The open Dependabot PRs fail the same way. #258 updates the pin; all other jobs here pass. |
Moep90
force-pushed
the
deps/ed25519-dalek-3
branch
3 times, most recently
from
October 27, 2026 19:10
226bcc9 to
8c4cffb
Compare
Supersedes the Dependabot bump, which fails to compile because ed25519-dalek 3 moved to rand_core 0.10 and pkcs8 0.11 while rand 0.8 and rsa 0.9 stay on rand_core 0.6 and pkcs8 0.10. The ed25519 ref function fills the 32-byte secret key from rand's OsRng instead of calling SigningKey::generate, which does exactly that. This drops the rand_core feature, so the tree keeps a single rand_core. public_key_pem brings ed25519-dalek's own DecodePrivateKey and LineEnding into scope for the Ed25519 branch. A test pins the RFC 8410 key pair, so parsing a PKCS#8 key and encoding its public key stay byte-identical to the previous version. Signed-off-by: moep90 <3042152+Moep90@users.noreply.github.com>
Moep90
force-pushed
the
deps/ed25519-dalek-3
branch
from
October 27, 2026 19:29
8c4cffb to
3f0991c
Compare
ademariag
approved these changes
Oct 27, 2026
Moep90
pushed a commit
to Moep90/krab
that referenced
this pull request
Oct 29, 2026
deps: bump ed25519-dalek to 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #249, which fails to compile in the clippy, MSRV and both test jobs:
ed25519-dalek 3 moved to rand_core 0.10 and pkcs8 0.11 (changelog). rand 0.8 and rsa 0.9 stay on rand_core 0.6 and pkcs8 0.10:
RsaPrivateKey::newneeds a rand_core 0.6 RNG, and rsa has no stable release on the newer stack yet (0.10 is still a release candidate).The
ed25519ref function now fills the 32-byte secret key from rand'sOsRnginstead of callingSigningKey::generate, which does exactly that. That drops therand_corefeature, so the tree keeps a single rand_core. The route the dalek docs show,SigningKey::generate(&mut UnwrapErr(getrandom::SysRng)), would add getrandom 0.4 and rand_core 0.10 next to the versions rand 0.8 and rsa use. The output format is unchanged: PKCS#8 v1 without the public key, ascryptographywrites it.public_key_pemused to resolveSigningKey::from_pkcs8_pemthrough theDecodePrivateKeyimported from rsa, which was the same pkcs8 0.10 trait until now. The Ed25519 branch brings ed25519-dalek's ownDecodePrivateKeyandLineEndinginto scope.keys_and_public_keysnow also pins the RFC 8410 key pair (private key from section 10.3, public key from 10.1), so parsing a PKCS#8 key and encoding its public key stay byte-identical. The assertion passes on main with 2.2.0 too.New duplicate crate versions, which cargo-deny reports as warnings: der, pem-rfc7468, pkcs8, sha2, signature, spki. They go away once rsa and the workspace
sha2move to the same stack.Test plan
cargo fmt --all --checkcargo clippy --all-targets --lockedwithCARGO_BUILD_WARNINGS=deny, and with--all-features -- -D warningscargo test --locked: 129 passed, 0 failed (the Python resolver and kadet tests skipped locally for lack of pyyaml)cargo +1.90 check --locked --all-targetslicenses bans sourcesok;advisorieslists the same eight advisories as main (rsa, rustls, zip)ed25519ref generated throughkrab compileparses in OpenSSL as a 48-byte PKCS#8 v1 key, and thepublickeyfunction's output equalsopenssl pkey -puboutLeft out on purpose
Moving the workspace
sha2to 0.11 and rsa to 0.10 would remove the duplicates, but rsa 0.10 is not released andsha2is used across crates; both are separate changes.