pub fn keypair_as_string(&self) -> Option<(String, String)> {
        self.key_pair.as_ref().map(|key_pair| {
            let private_key_string = key_pair
                .private_key
                .to_encoded_string()
                .expect("Account private key to convertible to string!");
            let public_key_string = key_pair
                .public_key
                .to_encoded_string()
                .expect("Account public Key not convertible to string!");
            (private_key_string, public_key_string)
        })
    }
/// Serialize account keypair if exists.
Serialize account keypair if exists.
Serialize account keypair if exists .
pub fn keypair_as_string(&self) -> Option<(String, String)> {
        self.key_pair.as_ref().map(|key_pair| {
            let private_key_string = key_pair
                .private_key
                .to_encoded_string()
                .expect("Account private key to convertible to string!");
            let public_key_string = key_pair
                .public_key
                .to_encoded_string()
                .expect("Account public Key not convertible to string!");
            (private_key_string, public_key_string)
        })
    }
pub fn keypair_as_string ( & self ) -> Option < ( String , String ) > { self . key_pair . as_ref ( ) . map ( | key_pair | { let private_key_string = key_pair . private_key . to_encoded_string ( ) . expect ( " " ) ; let public_key_string = key_pair . public_key . to_encoded_string ( ) . expect ( " " ) ; ( private_key_string , public_key_string ) } ) }
Serialize account keypair if exists.
Serialize account keypair if exists .
&self
&self