pub fn local_public_key(&self) -> Result<&[u8], OssuaryError> {
        match self.local_auth.public_key {
            None => Err(OssuaryError::InvalidKey),
            Some(ref p) => Ok(p.as_bytes()),
        }
    }
/// Get the local host's authentication public key
///
/// When a secret key is set with [`OssuaryConnection::set_secret_key`], the
/// matching public key is calculated.  This function returns that public
/// key, which can be shared with a remote server for future authentication.
Get the local host's authentication public key
When a secret key is set with [`OssuaryConnection::set_secret_key`], the
matching public key is calculated.  This function returns that public
key, which can be shared with a remote server for future authentication.
Get the local host ' s authentication public key When a secret key is set with [ ` OssuaryConnection :: set_secret_key ` ] the matching public key is calculated . This function returns that public key which can be shared with a remote server for future authentication .
pub fn local_public_key(&self) -> Result<&[u8], OssuaryError> {
        match self.local_auth.public_key {
            None => Err(OssuaryError::InvalidKey),
            Some(ref p) => Ok(p.as_bytes()),
        }
    }
pub fn local_public_key ( & self ) -> Result < & [ u8 ] , OssuaryError > { match self . local_auth . public_key { None => Err ( OssuaryError :: InvalidKey ) , Some ( ref p ) => Ok ( p . as_bytes ( ) ) , } }
Get the local host's authentication public key
When a secret key is set with [`OssuaryConnection::set_secret_key`], the
matching public key is calculated.
Get the local host ' s authentication public key When a secret key is set with [ ` OssuaryConnection :: set_secret_key ` ] the matching public key is calculated .
&self
&self