fn handle_execevm(&self, eid: sgx_enclave_id_t, msg: &Value) -> Result<(String), Error> {
        // get the EVM inputs
        let evm_input = self.unwrap_execevm(msg);

        // make an ecall to encrypt+compute
        let result: evm::EvmResponse = evm::exec_evm(eid, evm_input)?;
        // serialize the result
        let str_result = serde_json::to_string(&result).unwrap();
        // send
        Ok(str_result)
    }
// private function : handle execevm cmd
private function : handle execevm cmd
private function : handle execevm cmd
fn handle_execevm(&self, eid: sgx_enclave_id_t, msg: &Value) -> Result<(String), Error> {
        // get the EVM inputs
        let evm_input = self.unwrap_execevm(msg);
        // make an ecall to encrypt+compute
        let result: evm::EvmResponse = evm::exec_evm(eid, evm_input)?;
        // serialize the result
        let str_result = serde_json::to_string(&result).unwrap();
        // send
        Ok(str_result)
    }
fn handle_execevm ( & self , eid : sgx_enclave_id_t , msg : & Value ) -> Result < ( String ) , Error > { // get the EVM inputs let evm_input = self . unwrap_execevm ( msg ) ; // make an ecall to encrypt+compute let result : evm :: EvmResponse = evm :: exec_evm ( eid , evm_input ) ? ; // serialize the result let str_result = serde_json :: to_string ( & result ) . unwrap ( ) ; // send Ok ( str_result ) }
private function : handle execevm cmd
private function : handle execevm cmd
&self
eid
sgx_enclave_id_t
msg
&Value
&self
eid
sgx_enclave_id_t
msg
&Value