Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

ed25519: Don't panic for invalid signature #12965

Merged
merged 3 commits into from
Dec 19, 2022
Merged

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Dec 18, 2022

We should not panic for an invalid signature when the UseDalekExt is given.

We should not panic for an invalid signature when the `UseDalekExt` is given.
@bkchr bkchr added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Dec 18, 2022
@bkchr bkchr requested review from koute and a team December 18, 2022 19:29
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2172338

@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2172337

primitives/io/Cargo.toml Outdated Show resolved Hide resolved
@bkchr bkchr requested a review from a team December 19, 2022 06:38
Comment on lines +40 to +41
# Force the usage of ed25519, this is being used in `ed25519-dalek`.
ed25519 = { version = "1.5.2", optional = true }
Copy link
Member

@davxy davxy Dec 19, 2022

Choose a reason for hiding this comment

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

Suggested change
# Force the usage of ed25519, this is being used in `ed25519-dalek`.
ed25519 = { version = "1.5.2", optional = true }

Why you need this? We are using ed25519 from sp-core crate

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't have found it there :P

@@ -59,6 +63,7 @@ std = [
"futures",
"parking_lot",
"ed25519-dalek",
"ed25519",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"ed25519",

@bkchr bkchr merged commit 8a3b2f2 into master Dec 19, 2022
@bkchr bkchr deleted the bkchr-dalek-do-not-panic branch December 19, 2022 18:58
ltfschoen pushed a commit to ltfschoen/substrate that referenced this pull request Feb 22, 2023
* ed25519: Don't panic for invalid signature

We should not panic for an invalid signature when the `UseDalekExt` is given.

* Update Cargo.toml

* Update primitives/io/Cargo.toml
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* ed25519: Don't panic for invalid signature

We should not panic for an invalid signature when the `UseDalekExt` is given.

* Update Cargo.toml

* Update primitives/io/Cargo.toml
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants