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§
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
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.