Ejemplo n.º 1
0
    def send_to_contract(self, encrypted_session_key, encrypted_request):
        """
        send a contract update request to the enclave

        :param encrypted_session_key: base64 encoded encrypted AES key
        :param encrypted_request: base64 encoded encrypted contract request
        """
        return pdo_enclave.send_to_contract(self.sealed_data,
                                            encrypted_session_key,
                                            encrypted_request)
Ejemplo n.º 2
0
    def send_to_contract(self, encrypted_session_key, encrypted_request):
        """
        send a contract update request to the enclave

        :param encrypted_session_key: base64 encoded encrypted AES key
        :param encrypted_request: base64 encoded encrypted contract request
        """
        try:
            return pdo_enclave.send_to_contract(self.sealed_data,
                                                encrypted_session_key,
                                                encrypted_request)

        except Exception as e:
            logger.error('send_to_contract failed; %s', str(e))
            raise