/// Retrieves the operator key from the remote storage using the given operator name, and uses
/// this key to derive an operator account address.
Retrieves the operator key from the remote storage using the given operator name, and uses
this key to derive an operator account address.
Retrieves the operator key from the remote storage using the given operator name and uses this key to derive an operator account address .
fn fetch_operator_account(&self, operator_name: String) -> Result<AccountAddress, Error> {
        let operator_config = self.backend.backend.clone();
        let operator_config = operator_config.set_namespace(operator_name);
        let operator_storage = operator_config.create_storage(RemoteStorage)?;
        let operator_key = operator_storage
            .get(OPERATOR_KEY)
            .map_err(|e| Error::RemoteStorageReadError(OPERATOR_KEY, e.to_string()))?
            .value
            .ed25519_public_key()
            .map_err(|e| Error::RemoteStorageReadError(OPERATOR_KEY, e.to_string()))?;
        Ok(account_address::from_public_key(&operator_key))
    }
fn fetch_operator_account ( & self , operator_name : String ) -> Result < AccountAddress , Error > { let operator_config = self . backend . backend . clone ( ) ; let operator_config = operator_config . set_namespace ( operator_name ) ; let operator_storage = operator_config . create_storage ( RemoteStorage ) ? ; let operator_key = operator_storage . get ( OPERATOR_KEY ) . map_err ( | e | Error :: RemoteStorageReadError ( OPERATOR_KEY , e . to_string ( ) ) ) ? . value . ed25519_public_key ( ) . map_err ( | e | Error :: RemoteStorageReadError ( OPERATOR_KEY , e . to_string ( ) ) ) ? ; Ok ( account_address :: from_public_key ( & operator_key ) ) }
Retrieves the operator key from the remote storage using the given operator name, and uses
this key to derive an operator account address.
Retrieves the operator key from the remote storage using the given operator name and uses this key to derive an operator account address .
&self
operator_name
String