domain_test_service

Trait DomainRuntime

source
pub trait DomainRuntime {
    type Keyring: Copy;
    type AccountId: DeserializeOwned + Encode + Decode + Clone + Debug + Display + FromStr + Sync + Send + 'static;
    type Address: Encode + Decode;
    type Signature: Encode + Decode;

    // Required methods
    fn sign(key: Self::Keyring, payload: &[u8]) -> Self::Signature;
    fn account_id(key: Self::Keyring) -> Self::AccountId;
    fn address(key: Self::Keyring) -> Self::Address;
    fn to_seed(key: Self::Keyring) -> String;
}

Required Associated Types§

source

type Keyring: Copy

source

type AccountId: DeserializeOwned + Encode + Decode + Clone + Debug + Display + FromStr + Sync + Send + 'static

source

type Address: Encode + Decode

source

type Signature: Encode + Decode

Required Methods§

source

fn sign(key: Self::Keyring, payload: &[u8]) -> Self::Signature

source

fn account_id(key: Self::Keyring) -> Self::AccountId

source

fn address(key: Self::Keyring) -> Self::Address

source

fn to_seed(key: Self::Keyring) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl DomainRuntime for Runtime

source§

type Keyring = Keyring

source§

type AccountId = <<EthereumSignature as Verify>::Signer as IdentifyAccount>::AccountId

source§

type Address = <<EthereumSignature as Verify>::Signer as IdentifyAccount>::AccountId

source§

type Signature = EthereumSignature

source§

fn sign(key: Self::Keyring, payload: &[u8]) -> Self::Signature

source§

fn account_id(key: Self::Keyring) -> Self::AccountId

source§

fn address(key: Self::Keyring) -> Self::Address

source§

fn to_seed(key: Self::Keyring) -> String

source§

impl DomainRuntime for Runtime

source§

type Keyring = Keyring

source§

type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId

source§

type Address = MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>

source§

type Signature = MultiSignature

source§

fn sign(key: Self::Keyring, payload: &[u8]) -> Self::Signature

source§

fn account_id(key: Self::Keyring) -> Self::AccountId

source§

fn address(key: Self::Keyring) -> Self::Address

source§

fn to_seed(key: Self::Keyring) -> String

Implementors§