fn fetch_owner_account(&self) -> Result<AccountAddress, Error> {
        match self.backends.remote.clone() {
            None => Err(Error::RemoteStorageMissing),
            Some(owner_config) => {
                let owner_config = owner_config.set_namespace(self.owner_name.clone());

                let owner_storage = owner_config.create_storage(RemoteStorage)?;
                let owner_key = owner_storage
                    .get(OWNER_KEY)
                    .map_err(|e| Error::RemoteStorageReadError(OWNER_KEY, e.to_string()))?
                    .value
                    .ed25519_public_key()
                    .map_err(|e| Error::RemoteStorageReadError(OWNER_KEY, e.to_string()))?;
                Ok(account_address::from_public_key(&owner_key))
            }
        }
    }
/// Retrieves the owner key from the remote storage using the owner name given by
/// the validator-config command, and uses this key to derive an owner account address.
/// If a remote storage path is not specified, returns an error.
Retrieves the owner key from the remote storage using the owner name given by
the validator-config command, and uses this key to derive an owner account address.
If a remote storage path is not specified, returns an error.
Retrieves the owner key from the remote storage using the owner name given by the validator - config command and uses this key to derive an owner account address . If a remote storage path is not specified returns an error .
fn fetch_owner_account(&self) -> Result<AccountAddress, Error> {
        match self.backends.remote.clone() {
            None => Err(Error::RemoteStorageMissing),
            Some(owner_config) => {
                let owner_config = owner_config.set_namespace(self.owner_name.clone());
                let owner_storage = owner_config.create_storage(RemoteStorage)?;
                let owner_key = owner_storage
                    .get(OWNER_KEY)
                    .map_err(|e| Error::RemoteStorageReadError(OWNER_KEY, e.to_string()))?
                    .value
                    .ed25519_public_key()
                    .map_err(|e| Error::RemoteStorageReadError(OWNER_KEY, e.to_string()))?;
                Ok(account_address::from_public_key(&owner_key))
            }
        }
    }
fn fetch_owner_account ( & self ) -> Result < AccountAddress , Error > { match self . backends . remote . clone ( ) { None => Err ( Error :: RemoteStorageMissing ) , Some ( owner_config ) => { let owner_config = owner_config . set_namespace ( self . owner_name . clone ( ) ) ; let owner_storage = owner_config . create_storage ( RemoteStorage ) ? ; let owner_key = owner_storage . get ( OWNER_KEY ) . map_err ( | e | Error :: RemoteStorageReadError ( OWNER_KEY , e . to_string ( ) ) ) ? . value . ed25519_public_key ( ) . map_err ( | e | Error :: RemoteStorageReadError ( OWNER_KEY , e . to_string ( ) ) ) ? ; Ok ( account_address :: from_public_key ( & owner_key ) ) } } }
Retrieves the owner key from the remote storage using the owner name given by
the validator-config command, and uses this key to derive an owner account address.
Retrieves the owner key from the remote storage using the owner name given by the validator - config command and uses this key to derive an owner account address .
&self
&self