Simplify BABE pre-digest definitions (#5289)

* Init vrf crate without type alias

* Generic PreDigest definition for BABE

* Fix BABE vrf interface change

* Missing default-features def in sp-consensus-babe

* Fix sp-consensus-babe compile

* frame-babe: fix type inference

* Unify type definitions of vrf output/proof and randomness

* frame-babe: fix tests

* Bump node impl version

* Update cargo lock

* Derive Copy for RawVRFOutput and RawVRFProof

* Fix duplicated derive

Co-authored-by: Gavin Wood <gavin@parity.io>
This commit is contained in:
Wei Tang
2020-03-23 11:53:41 +01:00
committed by GitHub
parent 95d1d668c3
commit 9c7261fab3
17 changed files with 392 additions and 190 deletions
@@ -12,9 +12,9 @@ repository = "https://github.com/paritytech/substrate/"
sp-application-crypto = { version = "2.0.0-alpha.4", default-features = false, path = "../../application-crypto" }
codec = { package = "parity-scale-codec", version = "1.2.0", default-features = false }
sp-std = { version = "2.0.0-alpha.4", default-features = false, path = "../../std" }
schnorrkel = { version = "0.9.1", features = ["preaudit_deprecated"], optional = true }
sp-api = { version = "2.0.0-alpha.4", default-features = false, path = "../../api" }
sp-consensus = { version = "0.8.0-alpha.4", optional = true, path = "../common" }
sp-consensus-vrf = { version = "0.8.0-alpha.4", path = "../vrf", default-features = false }
sp-inherents = { version = "2.0.0-alpha.4", default-features = false, path = "../../inherents" }
sp-runtime = { version = "2.0.0-alpha.4", default-features = false, path = "../../runtime" }
sp-timestamp = { version = "2.0.0-alpha.4", default-features = false, path = "../../timestamp" }
@@ -25,9 +25,9 @@ std = [
"sp-application-crypto/std",
"codec/std",
"sp-std/std",
"schnorrkel",
"sp-api/std",
"sp-consensus",
"sp-consensus-vrf/std",
"sp-inherents/std",
"sp-runtime/std",
"sp-timestamp/std",