ed25519: Don't panic for invalid signature (#12965)

* 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
This commit is contained in:
Bastian Köcher
2022-12-19 19:58:25 +01:00
committed by GitHub
parent 46932f2b47
commit 74da30c8a2
3 changed files with 30 additions and 6 deletions
+5
View File
@@ -31,7 +31,11 @@ futures = { version = "0.3.21", features = ["thread-pool"], optional = true }
secp256k1 = { version = "0.24.0", features = ["recovery", "global-context"], optional = true }
tracing = { version = "0.1.29", default-features = false }
tracing-core = { version = "0.1.28", default-features = false}
# Required for backwards compatibility reason, but only used for verifying when `UseDalekExt` is set.
ed25519-dalek = { version = "1.0.1", default-features = false, optional = true }
# Force the usage of ed25519, this is being used in `ed25519-dalek`.
ed25519 = { version = "1.5.2", optional = true }
[features]
default = ["std"]
@@ -53,6 +57,7 @@ std = [
"log",
"futures",
"ed25519-dalek",
"ed25519",
]
with-tracing = [