Use sign_with for signing grandpa's outgoing message (#6178)

* Use sign_with and stop using `Pair`

* PR feedback

* Remove clone

* Transfer ownership of public to sign_message

* Use Option

* Simplify code

* Fix error message

* Pass keystore as ref

* Pass keystore properly

* Fix tests
This commit is contained in:
Rakan Alhneiti
2020-06-09 09:39:30 +02:00
committed by GitHub
parent 65ba701f50
commit 2577dde3d9
11 changed files with 95 additions and 61 deletions
@@ -23,6 +23,7 @@ parking_lot = "0.10.0"
rand = "0.7.2"
assert_matches = "1.3.0"
parity-scale-codec = { version = "1.3.0", features = ["derive"] }
sp-application-crypto = { version = "2.0.0-rc3", path = "../../primitives/application-crypto" }
sp-arithmetic = { version = "2.0.0-rc3", path = "../../primitives/arithmetic" }
sp-runtime = { version = "2.0.0-rc3", path = "../../primitives/runtime" }
sp-utils = { version = "2.0.0-rc3", path = "../../primitives/utils" }