pub async fn has_key(
        &self,
        public_key: Bytes,
        key_type: String,
    ) -> Result<bool, Error> {
        let params = &[to_json_value(public_key)?, to_json_value(key_type)?];
        Ok(self.client.request("author_hasKey", params).await?)
    }
/// Checks if the keystore has private keys for the given public key and key type.
///
/// Returns `true` if a private key could be found.
Checks if the keystore has private keys for the given public key and key type.
Returns `true` if a private key could be found.
Checks if the keystore has private keys for the given public key and key type . Returns ` true ` if a private key could be found .
pub async fn has_key(
        &self,
        public_key: Bytes,
        key_type: String,
    ) -> Result<bool, Error> {
        let params = &[to_json_value(public_key)?, to_json_value(key_type)?];
        Ok(self.client.request("author_hasKey", params).await?)
    }
pub async fn has_key ( & self , public_key : Bytes , key_type : String , ) -> Result < bool , Error > { let params = & [ to_json_value ( public_key ) ? , to_json_value ( key_type ) ? ] ; Ok ( self . client . request ( " " , params ) . await ? ) }
Checks if the keystore has private keys for the given public key and key type.
Checks if the keystore has private keys for the given public key and key type .
&self
public_key
Bytes
key_type
String
&self
public_key
Bytes
key_type
String