polymesh_api_client::signer

Trait KeypairSigner

Source
pub trait KeypairSigner:
    Send
    + Sync
    + Sized
    + Clone {
    // Required methods
    fn account(&self) -> AccountId;
    fn sign(&self, message: &[u8]) -> MultiSignature;
    fn from_string(s: &str, password_override: Option<&str>) -> Result<Self>;
}

Required Methods§

Source

fn account(&self) -> AccountId

Source

fn sign(&self, message: &[u8]) -> MultiSignature

Source

fn from_string(s: &str, password_override: Option<&str>) -> Result<Self>

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 KeypairSigner for Pair

Source§

fn account(&self) -> AccountId

Source§

fn sign(&self, message: &[u8]) -> MultiSignature

Source§

fn from_string(s: &str, password_override: Option<&str>) -> Result<Self>

Source§

impl KeypairSigner for Pair

Source§

fn account(&self) -> AccountId

Source§

fn sign(&self, message: &[u8]) -> MultiSignature

Source§

fn from_string(s: &str, password_override: Option<&str>) -> Result<Self>

Source§

impl KeypairSigner for Keypair

Source§

fn account(&self) -> AccountId

Source§

fn sign(&self, message: &[u8]) -> MultiSignature

Source§

fn from_string(s: &str, password_override: Option<&str>) -> Result<Self>

Source§

impl KeypairSigner for Keypair

Source§

fn account(&self) -> AccountId

Source§

fn sign(&self, message: &[u8]) -> MultiSignature

Source§

fn from_string(s: &str, password_override: Option<&str>) -> Result<Self>

Implementors§