Bring back SubmitSignedTransaction trait. (#3908)

* Bring back SubmitSignedTransaction.

* Fix long lines.

* Add missing docs.

* Update core/primitives/src/crypto.rs

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

* Update node/runtime/src/lib.rs

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

* Update core/primitives/src/crypto.rs

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Tomasz Drwięga
2019-10-25 12:24:58 +02:00
committed by Gavin Wood
parent e05e624a3a
commit cecf3a1438
5 changed files with 173 additions and 18 deletions
-12
View File
@@ -96,12 +96,6 @@ pub mod sr25519 {
mod app_sr25519 {
use app_crypto::{app_crypto, key_types::IM_ONLINE, sr25519};
app_crypto!(sr25519, IM_ONLINE);
impl From<Signature> for sr_primitives::AnySignature {
fn from(sig: Signature) -> Self {
sr25519::Signature::from(sig).into()
}
}
}
/// An i'm online keypair using sr25519 as its crypto.
@@ -119,12 +113,6 @@ pub mod ed25519 {
mod app_ed25519 {
use app_crypto::{app_crypto, key_types::IM_ONLINE, ed25519};
app_crypto!(ed25519, IM_ONLINE);
impl From<Signature> for sr_primitives::AnySignature {
fn from(sig: Signature) -> Self {
ed25519::Signature::from(sig).into()
}
}
}
/// An i'm online keypair using ed25519 as its crypto.