示例#1
0
    def create_initialize_request(self, request_originator_keys,
                                  enclave_service):
        """create a request to initialize the state of the contract

        :param request_originator_keys: object of type ServiceKeys
        :param enclave_service: object that implements the enclave service interface
        """
        return ContractRequest('initialize', request_originator_keys,
                               enclave_service, self)
示例#2
0
    def create_update_request(self, request_originator_keys, enclave_service,
                              expression):
        """create a request to update the state of the contract

        :param request_originator_keys: object of type ServiceKeys
        :param enclave_service: object that implements the enclave service interface
        :param expression: string, the expression to send to the contract
        """
        return ContractRequest('update',
                               request_originator_keys,
                               enclave_service,
                               self,
                               expression=expression)