swap ed25519-dalek for ed25519-zebra (#11781)

* swap ed25519-dalek for ed25519-zebra; no batch verificaiton

fixed batch verificaiton tests

removed additional zero verificaiton tests

removed comments, fixed test bug, added #[derive(Clone)]

Update primitives/core/src/ed25519.rs

Co-authored-by: Squirrel <gilescope@gmail.com>

* modified assertion to allow default ed25519-zebra zero key behavior

* cargo clippy

* Update primitives/core/Cargo.toml

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Update primitives/core/src/ed25519.rs

Co-authored-by: Davide Galassi <davxy@datawok.net>

* Update primitives/core/src/ed25519.rs

Co-authored-by: Davide Galassi <davxy@datawok.net>

* Update primitives/core/src/ed25519.rs

Co-authored-by: Davide Galassi <davxy@datawok.net>

* Update primitives/core/src/ed25519.rs

Co-authored-by: Davide Galassi <davxy@datawok.net>

* updated Cargo.lock for sp-core

* fix inaccurate comment

Co-authored-by: Squirrel <gilescope@gmail.com>
Co-authored-by: Bastian Köcher <info@kchr.de>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: Davide Galassi <davxy@datawok.net>
This commit is contained in:
Jake Hemmerle
2022-08-15 03:53:39 -04:00
committed by GitHub
parent 2d988e5f60
commit d987d2b413
5 changed files with 57 additions and 45 deletions
+15 -1
View File
@@ -1788,6 +1788,20 @@ dependencies = [
"zeroize",
]
[[package]]
name = "ed25519-zebra"
version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "403ef3e961ab98f0ba902771d29f842058578bb1ce7e3c59dad5a6a93e784c69"
dependencies = [
"curve25519-dalek 3.0.2",
"hex",
"rand_core 0.6.2",
"sha2 0.9.8",
"thiserror",
"zeroize",
]
[[package]]
name = "either"
version = "1.6.1"
@@ -9624,7 +9638,7 @@ dependencies = [
"byteorder",
"criterion",
"dyn-clonable",
"ed25519-dalek",
"ed25519-zebra",
"futures",
"hash-db",
"hash256-std-hasher",