pub async fn insert_key(
        &self,
        key_type: String,
        suri: String,
        public: Bytes,
    ) -> Result<(), Error> {
        let params = &[
            to_json_value(key_type)?,
            to_json_value(suri)?,
            to_json_value(public)?,
        ];
        self.client.request("author_insertKey", params).await?;
        Ok(())
    }
/// Insert a key into the keystore.
Insert a key into the keystore.
Insert a key into the keystore .
pub async fn insert_key(
        &self,
        key_type: String,
        suri: String,
        public: Bytes,
    ) -> Result<(), Error> {
        let params = &[
            to_json_value(key_type)?,
            to_json_value(suri)?,
            to_json_value(public)?,
        ];
        self.client.request("author_insertKey", params).await?;
        Ok(())
    }
pub async fn insert_key ( & self , key_type : String , suri : String , public : Bytes , ) -> Result < ( ) , Error > { let params = & [ to_json_value ( key_type ) ? , to_json_value ( suri ) ? , to_json_value ( public ) ? , ] ; self . client . request ( " " , params ) . await ? ; Ok ( ( ) ) }
Insert a key into the keystore.
Insert a key into the keystore .
&self
key_type
String
suri
String
public
Bytes
&self
key_type
String
suri
String
public
Bytes