WO2023185041A1 - 一种数据处理方法、装置、电子设备和存储介质 - Google Patents

一种数据处理方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2023185041A1
WO2023185041A1 PCT/CN2022/135119 CN2022135119W WO2023185041A1 WO 2023185041 A1 WO2023185041 A1 WO 2023185041A1 CN 2022135119 W CN2022135119 W CN 2022135119W WO 2023185041 A1 WO2023185041 A1 WO 2023185041A1
Authority
WO
WIPO (PCT)
Prior art keywords
computing
node
task
chain
engine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2022/135119
Other languages
English (en)
French (fr)
Inventor
谢桂鲁
王毅飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ant Blockchain Technology Shanghai Co Ltd
Original Assignee
Ant Blockchain Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ant Blockchain Technology Shanghai Co Ltd filed Critical Ant Blockchain Technology Shanghai Co Ltd
Publication of WO2023185041A1 publication Critical patent/WO2023185041A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0891Revocation or update of secret information, e.g. encryption key update or rekeying

Definitions

  • the embodiments of this specification belong to the field of blockchain technology, and particularly relate to a data processing method, device, electronic equipment and storage medium.
  • Blockchain is a new application model of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • data blocks are combined into a chained data structure in a chronological manner and are cryptographically guaranteed to be an untamperable and unforgeable distributed ledger. Due to the characteristics of blockchain, such as decentralization, non-tamperable information, and autonomy, blockchain has also received more and more attention and applications.
  • the blockchain network can undertake off-chain computing tasks based on smart contract definitions.
  • each node device of each blockchain node in the blockchain network will call the locally deployed off-chain device under the guidance of events generated by the smart contract.
  • the computing engine is used to implement off-chain computing tasks.
  • For collaborative computing tasks that is, off-chain computing tasks that require multiple node devices to work together, there is often a need for data in a certain node device to be read by an off-chain computing engine in another external node device.
  • an off-chain computing engine participating in collaborative computing tasks is not deployed on a node device, a node device will not be able to achieve data interaction through communication between off-chain computing engines.
  • the object of the present invention is to provide a data processing method, device, electronic equipment and storage medium.
  • a data processing method is proposed, which is applied to a first node device where a first blockchain node is deployed, and a blockchain network to which the first blockchain node belongs.
  • Deployed off-chain computing contracts The method includes: monitoring task events generated by the off-chain computing contract for collaborative computing tasks; and determining that the first blockchain node belongs to the data provider node corresponding to the collaborative computing task and does not belong to the collaborative computing task.
  • the proxy access engine deployed on the first node device is called to perform the collaborative computing task.
  • the proxy access engine is configured to: during the process of executing the collaborative computing task, transmit the data read from the first node device to the data deployed on the second node device where the computing provider node is located.
  • Off-chain computing engine is configured to: during the process of executing the collaborative computing task, transmit the data read from the first node device to the data deployed on the second node device where the computing provider node is located.
  • a data processing method is proposed, applied to a second node device, the second node device is deployed with a second blockchain node, and the second blockchain node belongs to The blockchain network is deployed with off-chain computing contracts.
  • the method includes: monitoring task events generated by the off-chain computing contract for collaborative computing tasks; and when it is determined that the second blockchain node belongs to the computing provider node of the collaborative computing task, calling the second node device
  • the deployed off-chain computing engine performs the collaborative computing tasks.
  • the off-chain computing engine is used to: in the process of executing the collaborative computing task, obtain the proxy access engine deployed on the first node device where the data provider node of the collaborative computing task is located from the first node. According to the data read by the device, the first blockchain node deployed on the first node device does not belong to the computing provider node.
  • a data processing device which is applied to a first node device where a first blockchain node is deployed, and a blockchain network to which the first blockchain node belongs.
  • the device includes: a first event listening unit for monitoring task events generated by the off-chain computing contract for collaborative computing tasks; a data providing unit for determining that the first blockchain node belongs to the collaborative computing task. If the corresponding data provider node does not belong to the computing provider node corresponding to the collaborative computing task, the proxy access engine deployed on the first node device is called to execute the collaborative computing task.
  • the proxy access engine is configured to: during the process of executing the collaborative computing task, transmit the data read from the first node device to the data deployed on the second node device where the computing provider node is located.
  • Off-chain computing engine is configured to: during the process of executing the collaborative computing task, transmit the data read from the first node device to the data deployed on the second node device where the computing provider node is located.
  • a data processing device is proposed, applied to a second node device, the second node device is deployed with a second blockchain node, and the second blockchain node belongs to The blockchain network is deployed with off-chain computing contracts.
  • the device includes: a second event listening unit for monitoring task events generated by the off-chain computing contract for the collaborative computing task; a data acquisition unit for determining that the second blockchain node belongs to the collaborative computing task.
  • the off-chain computing engine deployed on the second node device is called to perform the collaborative computing task.
  • the off-chain computing engine is used to: in the process of executing the collaborative computing task, obtain the proxy access engine deployed on the first node device where the data provider node of the collaborative computing task is located from the first node. According to the data read by the device, the first blockchain node deployed on the first node device does not belong to the computing provider node.
  • an electronic device including: a processor; and a memory for storing instructions executable by the processor.
  • the processor implements the method described in the first aspect or the second aspect by running the executable instructions.
  • a computer-readable storage medium which stores computer instructions.
  • the instructions are executed by a processor, the method described in the first or second aspect is implemented. A step of.
  • the proxy access engine deployed on the first node device where the data provider node is located is used as an intermediary to provide local data to the second node device, and is read by the proxy access engine inside the first node device.
  • Data source, and communication is realized between the first node device and the second node device through the proxy access engine deployed on the first node device and the off-chain computing engine deployed on the second node device, thereby avoiding direct access to the second node device.
  • the local data source of the first node device is exposed.
  • the third node device can be restricted in a more controllable manner.
  • the data reading range of the two-node device avoids exposing private information and reduces security risks.
  • Figure 1 is a flow chart of a data processing method provided by an exemplary embodiment.
  • Figure 2 is a flow chart of another data processing method provided by an exemplary embodiment.
  • Figure 3 is a schematic diagram of a node device interaction scenario provided by an exemplary embodiment.
  • Figure 4 is a schematic structural diagram of a device provided by an exemplary embodiment.
  • Figure 5 is a block diagram of a data processing device provided in an exemplary embodiment.
  • FIG. 6 is a block diagram of another data processing device provided by an exemplary embodiment.
  • Figure 1 is a flow chart of a data processing method provided by an exemplary embodiment. This method is applied to a first node device deployed with a first blockchain node, and the blockchain network to which the first blockchain node belongs is deployed with an off-chain computing contract; the method includes:
  • S102 Monitor task events generated by the off-chain computing contract for collaborative computing tasks.
  • the off-chain computing contract is an on-chain carrier used to carry off-chain computing tasks.
  • the off-chain computing contract defines several sub-tasks included in the off-chain computing tasks, which are used to describe an off-chain computing task.
  • the data flow direction and the computing collaboration process of each node device Since the off-chain computing contract is deployed on the blockchain network, the participant nodes of the off-chain computing tasks defined by the off-chain computing contract are limited to not exceeding the scope of each blockchain node in the blockchain network.
  • off-chain computing contracts can be deployed in the same blockchain network, and the number and performance of the participant nodes involved in different off-chain computing contracts can be flexibly configured, which makes it possible to rely on the same blockchain
  • the network can realize the deployment of off-chain computing tasks with different task types, task requirements and task scales.
  • off-chain computing contract guides the implementation of its defined off-chain computing tasks
  • the following will briefly introduce the implementation logic of off-chain computing tasks through the operation process of a typical off-chain computing contract.
  • Users can generate the code of the off-chain computing contract through the visual contract orchestration system and deploy the off-chain computing contract in the blockchain network, so that the off-chain computing contract defines a type of workflow for off-chain computing tasks, which is embodied as Several subtasks with execution-dependent order.
  • users who have the authority to call the off-chain computing contract can create and start an off-chain computing task by initiating a task creation transaction to the off-chain computing contract.
  • the off-chain computing contract will receive After the task creation transaction, a task instance of the off-chain computing task belonging to the initiating user will be created accordingly.
  • the task instance maintains the task completion status of the off-chain computing task, which is specifically reflected in the status of each sub-task under the off-chain computing task. Task completion status.
  • the off-chain computing contract responds to the task creation transaction and generates the corresponding task instance, it will further trigger the execution of the first sub-task corresponding to the instance, which is reflected in the off-chain computing contract as generating a participant node containing the first sub-task.
  • each blockchain node in the blockchain network can listen to this event, and the node devices of those blockchain nodes that determine that they belong to the participant nodes of the first subtask will further call the node device matching the first subtask.
  • a subtask's off-chain computing resources and/or off-chain storage resources are used to execute the first subtask off-chain.
  • the node device where the participant node is located will further calculate the contract to the off-chain. Initiate a result return transaction carrying the execution result of the first subtask, so that the off-chain computing contract updates the task completion status of the corresponding task instance.
  • the off-chain computing contract For example, when the execution result of the first subtask is successful, the off-chain computing contract The task completion status of the first subtask in the corresponding task instance will be marked as completed, thereby triggering the execution of the next batch of subtasks according to the dependency order of each subtask included in the predefined off-chain computing task, and then generating the next batch of subtasks.
  • the participant nodes of a batch of subtasks describe information events for each blockchain node in the blockchain network to monitor. The subsequent process is similar to the aforementioned process of processing the first subtask.
  • the tasks performed by the off-chain computing contract during the execution of the off-chain computing task only include scheduling tasks such as creating task instances, receiving sub-task results, sub-task scheduling and sub-task delivery.
  • scheduling tasks such as creating task instances, receiving sub-task results, sub-task scheduling and sub-task delivery.
  • the mechanism and the transaction callback mechanism realize a distributed computing based on the blockchain, so that the off-chain computing tasks are anchored by the off-chain computing contracts on the blockchain, fully ensuring that the entire task execution process is traceable.
  • off-chain resources simultaneously enables reliable information interaction and collaborative computing between different node devices relying on the blockchain.
  • off-chain computing tasks are defined in the form of contracts and the design of off-chain computing tasks is not affected by on-chain Resource constraints mean that different off-chain computing contracts can be designed to meet different actual needs, and on-chain collaboration methods can be expanded through off-chain resources.
  • the off-chain computing contract maintains a task completion status corresponding to the off-chain computing task, and the task completion status is used to describe the completion status of each sub-task included in the off-chain computing task; in the When the collaborative computing task is a subtask of the off-chain computing task, the monitoring of task events generated by the off-chain computing contract for the collaborative computing task includes: monitoring when the off-chain computing contract performs the task The task event for the collaborative computing task generated when the completion status satisfies the execution condition corresponding to the collaborative computing task.
  • the off-chain computing task is represented as a corresponding task instance on the off-chain computing contract, and its task completion status is maintained in the corresponding task instance of the off-chain computing contract.
  • the task instance maintains various The completion status of the subtask.
  • the collaborative computing task belongs to a subtask of the off-chain computing task. Since the execution dependency order of the subtasks included in the off-chain computing task has been predefined, this means that the collaborative computing task includes The execution conditions of each sub-task including the task have also been determined, so the off-chain computing contract can further determine the collaborative computing tasks that need to be executed next based on the completion status of each sub-task included in the off-chain computing task, thereby initiating a target Task events for collaborative computing tasks.
  • the collaborative computing task also includes: when the collaborative computing task is completed, initiating a result return transaction containing the execution result corresponding to the collaborative computing task to the off-chain computing contract through the first blockchain node to update the off-chain The task completion status corresponding to the off-chain computing tasks maintained by the computing contract.
  • the first node device executes a subtask by calling resources and completes the execution, it will update the task completion status of the off-chain computing task maintained by the off-chain computing contract by initiating a result return transaction, thereby making the off-chain
  • the computing contract can further determine the next subtask that should be executed based on the execution dependency sequence of each subtask in the off-chain computing task, and generate a task event for the next subtask.
  • the entity that monitors the task events generated by the off-chain computing contract and initiates the result return transaction to the off-chain computing contract is specifically the scheduling engine deployed on the first node device.
  • the task completion status is updated by the off-chain computing contract in response to the transaction corresponding to the off-chain computing task, wherein the transaction corresponding to the off-chain computing task includes the transaction corresponding to the off-chain computing task.
  • task creation transaction or a result return transaction initiated by any node device after completing the execution of any of the subtasks.
  • the off-chain computing contract maintains the task completion status corresponding to one or more off-chain computing tasks. Normally, an off-chain computing contract only defines one type of off-chain computing task, but multiple task instances corresponding to the off-chain computing task can be created, and each task instance will record the completion of the task corresponding to the task instance. state.
  • the creation of multiple task instances maintained on the off-chain computing contract can be triggered by different users by initiating task creation contracts to the off-chain computing contract, or the creation can be triggered by the same user by initiating task creation contracts multiple times. , but these task instances all have the same execution logic, that is, the task types of each task maintained by the off-chain computing contract are the same.
  • S104 When it is determined that the first blockchain node belongs to the data provider node corresponding to the collaborative computing task but not to the computing provider node corresponding to the collaborative computing task, call the proxy access engine deployed by the first node device Perform the collaborative computing tasks.
  • the proxy access engine is configured to: during the process of executing the collaborative computing task, transmit the data read from the first node device to the data deployed on the second node device where the computing provider node is located. Off-chain computing engine.
  • the task event for the collaborative computing task generated by the off-chain computing contract monitored by the first node device records the description information of the participating node of the collaborative computing task.
  • the task event includes the description information of the participant nodes of the collaborative computing task, which means that the collaborative computing task specifies the identity information of the participating blockchain nodes that it requires.
  • the participant nodes of the collaborative computing task can be determined as the data provider node and/or the computing provider node corresponding to the collaborative computing task according to their corresponding attribute characteristics, where the data provider node corresponding to the collaborative computing task refers to: in a During the execution of a collaborative computing task involving multiple node devices, a blockchain node in the blockchain network deployed on a node device that needs to provide data to other node devices, the data is used to provide data to other nodes
  • the off-chain computing engine deployed on the device is used as the data required to perform the collaborative computing task and/or other subsequent sub-tasks; and the computing provider corresponding to the collaborative computing task refers to: a system that is jointly completed by multiple node devices.
  • the blockchain node in the blockchain network deployed on the node device that provides off-chain computing engine resources to perform the actual computing task can be either a data provider node corresponding to the collaborative computing task, a computing provider node corresponding to the collaborative computing task, or both at the same time.
  • the data provider node and computing provider node corresponding to the collaborative computing task For example, for a participant node that is both a data provider node and a computing provider node corresponding to a collaborative computing task, the off-chain computing engine on the node device where it is located will execute the collaborative computing task. Obtain local data of the node device for the collaborative computing task and/or other subsequent subtasks.
  • the type of proxy access engine involved in the embodiment of this specification may be a computing engine or a data engine.
  • the computing engine also known as the off-chain computing engine, refers to the service or subsystem that provides off-chain computing capabilities for node devices.
  • a computing engine can often undertake one or more types of computing tasks, which is reflected in the Support the computing requirements corresponding to the task;
  • the data engine also known as the database engine, refers to the core service program used to store, retrieve, process and protect data.
  • the database engine can be used to control access permissions and process transactions quickly, thereby satisfying most of the needs within the enterprise. Requirements for applications that need to process large amounts of data, use a database engine to create a relational database for online transaction processing or online analytical processing of data.
  • Different data engines support different data access methods or accessed data types, which are reflected in the support of data engine requirements corresponding to related subtasks.
  • the first node device needs to determine that the first blockchain node belongs to the data provider node corresponding to the collaborative computing task but does not belong to the computing provider node corresponding to the collaborative computing task,
  • the proxy access engine will be called to perform the collaborative computing task, which means that the first node device will call the proxy access engine only if the first node device only belongs to the data provider of the collaborative computing task, Otherwise, whenever the first node device does not belong to the data provider node corresponding to the collaborative computing task or belongs to the computing provider node corresponding to the collaborative computing task, the first node device will not call the proxy access engine to execute the Collaborative computing tasks.
  • the first blockchain node belongs to both the data provider node and the computing provider node corresponding to the collaborative computing task, then even if the first node device needs to provide data to other node devices, it can directly serve as the computing provider node.
  • the off-chain computing engine involved in the provider node acts as an intermediary for data transmission, and the off-chain computing engine accesses local data sources, eliminating the need to expose local data sources to the outside.
  • the entity that calls the off-chain computing engine to perform collaborative computing tasks is specifically the scheduling engine deployed on the first node device.
  • the description information of the data provider node recorded in the task event contains the identification information of the first blockchain node
  • the description information of the computing provider node recorded in the task event does not include the identification information of the first blockchain node, or the first node device is not deployed with an off-chain device that supports the execution of the collaborative computing task.
  • the task event for the collaborative computing task records the description information of the participant node of the collaborative computing task, specifically referring to that the task event records the description information of the data provider node corresponding to the collaborative computing task.
  • the first node device can determine that the first blockchain node it is deployed to belongs to when it is determined that the description information of the data provider node contains the identification information of the first blockchain node deployed by itself.
  • the node does not belong to the data provider node corresponding to the collaborative computing task.
  • the task event for the collaborative computing task also records the description information of the computing provider node corresponding to the collaborative computing task, which means that the first node device can determine the description information of the computing provider node.
  • the identification information of the first blockchain node deployed by itself it is determined that the first blockchain node to which it is deployed belongs to the computing provider node corresponding to the collaborative computing task; and if the description information of the computing provider node does not contain the identification information of the first blockchain node, then the first node device can determine that the first blockchain node deployed by itself does not belong to the computing provider node corresponding to the collaborative computing task.
  • the task event also records the identification information of the off-chain computing engine that participates in executing the collaborative computing task on the node device where the computing provider node is located.
  • only the description information of the data provider node corresponding to the collaborative computing task is recorded in the task event for the collaborative computing task, but the description information and participation in the execution of the computing provider node corresponding to the collaborative computing task are not recorded.
  • each node device recognizes that the description of the computing provider node corresponding to the collaborative computing task is not recorded in the task event. Information, then it will trigger the negotiation of the computing provider nodes corresponding to the collaborative computing task.
  • any node device when it determines that it is deployed with an off-chain computing engine that supports the execution of the collaborative computing task, it can determine that it belongs to the computing provider node corresponding to the collaborative computing task, so the first node
  • the device may determine that the first blockchain node does not belong to the computing provider node when the first node device is not deployed with an off-chain computing engine that supports execution of the collaborative computing task.
  • the computing provision statement upon receiving a computing provision statement sent by another node device, attribute the blockchain node deployed on the other node device to the computing provider node, wherein the computing provision statement is provided by the The other node device broadcasts to the first node device where the data provider node is located when it is determined that the other node device is deployed with an off-chain computing engine that supports execution of the collaborative computing task.
  • any node device among the node devices negotiates with the computing provider node, it will determine whether it belongs to the computing corresponding to the collaborative computing task based on whether it has deployed an off-chain computing engine that supports the collaborative computing task.
  • the device In addition to the provider node, after determining that it belongs to the computing provider node, it will also broadcast a computing provision statement containing the identification information of the off-chain computing engine that supports the collaborative computing task to other node devices, so that other nodes After receiving the computing provision statement of any node device, the device attributes the any node device to the computing provider node corresponding to the collaborative computing task, and at the same time learns all the information involved in the actual calculation involved in executing the collaborative computing task.
  • Off-chain computing engines deployed on the other node devices wherein the other node devices can be all node devices deployed with blockchain nodes in the blockchain network, or all node devices deployed with the collaborative computing task corresponding to The node device of the data provider node.
  • the blockchain node deployed on the other node device can be attributed to the computing provider node, and at the same time Get the identification information of the off-chain computing engine that is the target of providing data.
  • the node device where the participant node is located does not record the description information of the computing provider node corresponding to the collaborative computing task in the task event
  • computing provision can also be performed through each node device.
  • the task events will also record the task identifiers of off-chain computing tasks and collaborative computing tasks, thereby distinguishing different tasks and subtasks. This is mainly to facilitate any subsequent node device to complete the execution of the collaborative computing task and return the results.
  • the off-chain computing contract can correctly update the completion status of the collaborative computing task in the task instance corresponding to the off-chain computing task through the result return transaction to cope with the same problem.
  • a task contains multiple subtasks and the same off-chain computing annual contract creates task instances of multiple off-chain computing tasks at the same time.
  • the collaborative computing task also records the calculations and data transfer operations it needs to perform, and specifies the source of the required data. This information is used to inform each node device of the task type and implementation method of the collaborative computing task, thereby guiding After determining the task type of the collaborative computing task and its implementation method corresponding to the callable resources, the node device executes the collaborative computing task as expected for the collaborative computing task.
  • calling the proxy access engine deployed on the first node device to perform the collaborative computing task includes: calling the proxy access engine pre-deployed on the first node device to execute the collaborative computing task; or, on the first node device, The node device deploys the proxy access engine and calls the proxy access engine to perform the collaborative computing task.
  • the first node device may be pre-deployed with a proxy access engine.
  • the proxy access engine executes the collaborative computing task; and in another case, the first node device is not pre-deployed with a proxy access engine.
  • the first node device determines that it needs to call the proxy access engine to execute In the case of collaborative computing tasks, the proxy access engine will be temporarily generated and deployed locally, so that after the deployment of the proxy access engine is completed, the proxy access engine will be called to perform the collaborative computing task.
  • the proxy access engine is configured to: in response to the proxy access engine being called, transmit the data indicated by the task event read from the first node device to the off-chain computing engine; or , read the pre-read data indicated by the task event from the first node device, and transmit the pre-read data to the off-chain computing engine in response to the data access request sent by the off-chain computing engine; Alternatively, in response to the data access request sent by the off-chain computing engine, data indicated by the data access request read from the first node device is transmitted to the off-chain computing engine.
  • the proxy access engine can provide data to the second node device where the computing provider node is located through at least three logics: First, the call request of the first node device for the proxy access engine carries as transmission The identification information of the target's off-chain computing engine and the data requirements recorded in the task event, so the proxy access engine can trigger the request from the first node device based on the data requirements contained in the task event when it is called to perform a collaborative computing task.
  • the proxy access engine Read the corresponding data and transmit it to the off-chain computing engine deployed by the second node device; secondly, the call request of the first node device for the proxy access engine carries the identification information of the off-chain computing engine as the transmission target and Based on the data requirements recorded in the task event, the proxy access engine will trigger the execution of reading the pre-read data corresponding to the data requirements based on the call request, and wait for the data from the off-chain computing engine deployed on the second node device.
  • the proxy access engine when the proxy access engine receives the data access request, it will further trigger the transmission of the pre-read data to the off-chain computing engine; thirdly, the first node device carries in the call request for the proxy access engine With the identification information of the off-chain computing engine as the transmission target, the proxy access engine will wait for the data access request from the off-chain computing engine deployed on the second node device. When the proxy access engine receives the data access request, it will It is further triggered to read the data indicated by the data access request and transmit it to the off-chain computing engine.
  • the embodiments of this specification provide multiple ways for the proxy access engine to provide data to the off-chain computing engine, thereby adapting to the actual needs of different scenarios.
  • the data provided by the first and second methods are calculated by the off-chain calculation engine.
  • the task events generated by the contract are determined, so access permission control between different node devices can be achieved by writing off-chain computing tasks.
  • the data provided in the third method is determined by the off-chain computing engine, which can be adapted to more flexible applications.
  • off-chain computing tasks can also be done through the proxy access engine as access control work; the second and third methods, compared to the first method, emphasize that data transmission is controlled by the off-chain computing engine, which can match some specific data Off-chain computing tasks with uncertain circulation process, because some off-chain computing tasks may have the possibility that the off-chain computing engine does not need to obtain data from the proxy access engine depending on the specific situation, so the off-chain computing engine controls the data transmission in compliance with The actual needs of the off-chain computing engine are to avoid the security risks and resource losses that may be caused by unnecessary data transmission.
  • the proxy access engine deployed on the first node device where the data provider node is located is used as an intermediary to provide local data to the second node device, and is read by the proxy access engine inside the first node device.
  • Data source, and communication is realized between the first node device and the second node device through the proxy access engine deployed on the first node device and the off-chain computing engine deployed on the second node device, thereby avoiding direct access to the second node device.
  • the local data source of the first node device is exposed.
  • the third node device can be restricted in a more controllable manner.
  • the data reading range of the two-node device avoids exposing private information and reduces security risks.
  • the proxy access engine is configured to encrypt the data read from the first node device using the certificate storage public key corresponding to the off-chain computing engine maintained by the off-chain computing contract to obtain encryption. data, and sends the encrypted data to the off-chain computing engine.
  • the off-chain computing contract maintains the public keys of each off-chain computing engine that participates in executing the off-chain computing task, and therefore also includes the public keys deployed on the second node device that participate in executing the collaborative computing.
  • the public key of the off-chain computing engine of the task can obtain the public key of the off-chain computing engine as the data providing target from the off-chain computing contract, and then read the original data from the first node device through
  • the encrypted data obtained by encrypting the public key of the off-chain computing engine is used as a replacement for the original data, and the encrypted data instead of the original data is transmitted to the off-chain computing engine, and the off-chain computing engine can Decrypt the encrypted data through its own public key to obtain the original data, thereby avoiding direct transmission of plaintext data and reducing security risks while ensuring the effectiveness of communication.
  • the certificated public key corresponding to the off-chain computing engine maintained by the off-chain computing contract is updated by a key update transaction initiated by the second computing device, and the key update transaction is monitored by the second computing device. Initiated when a key update event is generated by the off-chain computing contract, the key update transaction carries the latest key update corresponding to the off-chain computing engine obtained by the second node device in response to the key update event. public key.
  • the key update event records a key update task related to the key update event.
  • the node device can determine whether the blockchain node deployed by itself is included in the description information of the participant node, or determine the key update event. Whether there is identification information matching the off-chain computing engine deployed by itself, so as to determine whether it needs to perform a key update task.
  • any node device performs a key update task, it needs to access the locally deployed off-chain computing engine of the key to be updated and obtain its corresponding latest public key, and then carry the latest public key in the key update transaction.
  • the off-chain computing contract triggers the update of the certificated public key of the corresponding off-chain computing engine maintained by itself, that is, the key originally maintained in the off-chain computing contract is updated.
  • the certificated public key of the off-chain computing engine pointed to by the transaction is replaced with the latest public key of the off-chain computing contract carried in the key update transaction.
  • the public key information of the off-chain computing engine deployed in the node device is maintained in the off-chain computing contract through the event listening mechanism and the transaction callback mechanism, so that each off-chain calculation participating in the off-chain computing task can be realized.
  • the public key of the engine is stored on the chain and updated in real time, thereby ensuring the authority and validity of the public key obtained by each subject involved in performing off-chain computing tasks.
  • the off-chain computing contract is used to trigger the generation of the key update event during the initialization phase of successful deployment or in response to a key reset transaction.
  • the off-chain computing contract when the off-chain computing contract is successfully deployed on any node device, the off-chain computing contract will trigger the execution of the initialization program, which includes generating a key update event, so that the off-chain computing contract Timely update the certificated public keys of the off-chain computing engines participating in off-chain computing tasks in each newly added node device.
  • any node device can also actively initiate a key reset transaction to the off-chain computing contract, so that the off-chain computing contract triggers and generates a key update event in response to the key reset transaction to be monitored by each node device, thereby dealing with
  • the latest public key of the off-chain computing engine deployed on some node devices that participates in off-chain computing tasks changes to ensure the consistency of the on-chain certified public key and the actual latest public key of the off-chain computing engine.
  • Figure 2 is a flow chart of another data processing method provided by an exemplary embodiment.
  • the method is applied to the second node device, the second node device is deployed with a second blockchain node, and the blockchain network to which the second blockchain node belongs is deployed with an off-chain computing contract; the method includes:
  • S202 Monitor task events generated by the off-chain computing contract for collaborative computing tasks.
  • S204 When it is determined that the second blockchain node belongs to the computing provider node of the collaborative computing task, call the off-chain computing engine deployed by the second node device to execute the collaborative computing task.
  • the off-chain computing engine is used to: in the process of executing the collaborative computing task, obtain the proxy access engine deployed on the first node device where the data provider node of the collaborative computing task is located from the first node. According to the data read by the device, the first blockchain node deployed on the first node device does not belong to the computing provider node.
  • the embodiment of this specification is an embodiment on the second node device side corresponding to the embodiment of a data processing method described above.
  • the technical details involved have been described in detail above and will not be described again here. Since the first blockchain node deployed on the first node device does not belong to the computing provider node, that is, the first blockchain node only serves as a data provider node, then in order to prevent the second node device from performing collaborative computing tasks Reading data directly from the first node device will use the proxy access engine deployed in the first node device as an intermediary to obtain the data on the first node device. Therefore, the second node device can be more controllably restricted from being accessed by the first node device. The scope of reading data in the device avoids leaking private information and reduces security risks.
  • description information of the data provider node is recorded in the task event.
  • the second node device may determine that the second blockchain node belongs to the second blockchain node by determining that the identification information of the second blockchain node deployed by itself is included in the description information of the data provider node recorded in the task event. data provider node, and when it is determined that the identification information of the second blockchain node is not included in the description information of the data provider node recorded in the task event, it is determined that the second blockchain node does not belong to the Data provider node.
  • the second node device can also learn the node device of the relevant data provider node participating in the execution of the collaborative computing task, thereby informing the off-chain computing engine where to obtain data during the execution of the collaborative computing task.
  • the description information of the computing provider node recorded in the task event includes the identification information of the second blockchain node, or the second node device is deployed with support for executing the collaborative computing task.
  • the description information of the computing provider node is directly recorded in the task event, so the second node device can determine that the identification information of the second blockchain node is included in the In the case of the description information of the computing provider node, it is determined that the second blockchain node belongs to the computing provider node.
  • negotiation of the computing provider nodes corresponding to the collaborative computing task is triggered, and the negotiation is performed in each node device.
  • Each node device All nodes will determine whether they have deployed an off-chain computing engine that supports the execution of collaborative computing tasks, and any node device will determine the block it deploys if it determines that it has deployed an off-chain computing engine that supports the execution of the collaborative computing tasks.
  • the chain node belongs to the computing provider node. This embodiment does not assign the computing provider node in the task event generated by the off-chain computing contract, but allows each node device to select the computing provider node by itself through negotiation. , thus realizing dynamic resource planning to a certain extent and making full use of the off-chain computing engine resources on each node device.
  • the method further includes: when it is determined that the second node device is deployed with an off-chain computing engine that supports execution of the collaborative computing task, broadcasting the computing provision statement to the first node where the data provider node is located.
  • the node device enables the first node device to attribute the second blockchain node to the computing provider node.
  • each node device needs to know whether its own deployed blockchain node belongs to the computing provider node, but also needs to know other computing provider nodes. Therefore, when any computing node device determines If the self-deployed off-chain computing engine supports the execution of the collaborative computing task, the computing provision statement carrying the identification information of the self-deployed blockchain node and the determined identification information of the off-chain computing engine will be broadcast to other nodes. equipment, so that other node equipment can use the computing provider declaration to attribute the blockchain node it carries to the computing provider node, and determine the off-chain computing engine it carries as needing to participate in collaborative computing tasks.
  • the method further includes: when it is determined that the second blockchain node belongs to both the computing provider node and the data provider node, calling the off-chain computing engine to perform the collaborative computing task.
  • the off-chain computing engine is used to: in the process of executing the collaborative computing task, obtain the local data read from the second node device and the data read by the proxy access engine from the first node device. , the first blockchain node deployed on the first node device does not belong to the computing provider node.
  • the second node device determines that the second blockchain node deployed by itself belongs to both the computing provider node and the data provider node, then in this case, the second node device During the process of executing the collaborative computing task, the off-chain computing engine participating in the collaborative computing task will not only obtain data from other node devices, but also read the local data of the second node device to further perform the collaborative computing task or Used in the execution of subsequent subtasks.
  • the off-chain computing engine is configured to: obtain the encrypted data sent by the proxy access engine, the encrypted data corresponding to the off-chain computing engine maintained by the proxy access engine through the off-chain computing contract.
  • the certificated public key is obtained by encrypting the data read from the first node device.
  • the computing contract also includes: in the case of monitoring the key update event generated by the off-chain computing contract, obtaining the latest public key corresponding to the off-chain computing engine, and sending it to the off-chain through the second blockchain node.
  • the computing contract initiates a key update transaction carrying the latest public key to update the certified public key corresponding to the off-chain computing engine maintained by the off-chain computing contract to the latest public key.
  • off-chain computing contract is used to trigger the generation of the key update event during the initialization phase of successful deployment or in response to a key reset transaction.
  • obtaining the latest public key corresponding to the off-chain computing engine includes: after monitoring that the off-chain computing contract is deployed successfully In the case of the key update event generated during the initialization phase, obtain the latest public keys corresponding to all off-chain computing engines deployed by the second node device; or, after monitoring the off-chain computing contract in response to the When the key update event is generated by the key reset transaction and it is determined that the first node device is deployed with the target off-chain computing engine indicated by the key update event, obtain the target off-chain computing engine corresponding of the latest public key.
  • the off-chain computing contract when deployed to any node device, it will trigger the execution of the initialization program, which includes the process of generating the key update event.
  • the key update event is used to indicate Any node device obtains the latest public keys of all off-chain computing engines deployed on any node device, and maintains them in the off-chain computing contract through the transaction callback mechanism, thereby participating in the execution of off-chain computing engines defined by the off-chain computing contract.
  • the public key of the new off-chain computing engine of the computing task is immediately maintained in the off-chain computing contract to ensure the normal execution of the off-chain computing task; or, after the off-chain computing contract receives the key reset transaction, it will also be generated
  • the key update event is used to instruct the update of the certificated public key of the target off-chain computing engine maintained in the off-chain computing contract.
  • the second node device recognizes that the target off-chain computing engine is locally deployed, it will respond to the The key update event obtains the latest public key corresponding to the target off-chain computing engine deployed on the second node device, and updates it to the off-chain computing contract through the transaction callback mechanism, thus updating the specific off-chain calculation in real time.
  • the engine calculates the certificated public key in the contract off-chain to avoid execution errors of off-chain computing tasks caused by the certificated public key of a specific off-chain calculation engine lagging behind the latest public key of a specific off-chain calculation engine.
  • Figure 3 is a schematic diagram of a node device interaction scenario provided by an exemplary embodiment.
  • the first node device is deployed with the first blockchain node, the first scheduling engine, the proxy access engine and the first data source in the blockchain network
  • the second node device is deployed with the blockchain network
  • the off-chain computing contract When the off-chain computing contract generates a task event for a collaborative computing task, it will be processed by the first scheduling engine on the first node device and the second node device on the second node device through the first blockchain node and the second blockchain node respectively.
  • the task event also records the description information of the data provider node and the computing provider node corresponding to the collaborative computing task, as well as the identification information of the off-chain computing engine that needs to provide data, where the data provider
  • the description information of the node is the identification information of the first blockchain node
  • the description information of the calculation provider node is the identification information of the second blockchain node.
  • the first scheduling engine can determine that the first node device needs to provide data to the off-chain computing engine in the second node device, and at the same time, the first node device does not need to provide computing support for the collaborative computing task, so the first scheduling engine will call The proxy access engine performs collaborative computing tasks to transmit data obtained from the first data source to the off-chain computing engine in the second node device.
  • the second scheduling engine can determine that the specified off-chain computing engine in the task event deployed in the second node device needs to obtain the data of the first node device, so the second scheduling engine will call the specified off-chain computing engine to perform collaboration.
  • the designated off-chain computing engine is a trusted computing engine running in a feasible execution environment, which needs to obtain data from the first node device to complete the relevant trusted computing operations defined in the collaborative computing task.
  • the trusted computing engine will obtain the data read from the first data source by the proxy access engine through a network connection with the proxy access engine deployed on the first node device, thereby further performing trusted computing operations to continue completing the collaboration. Computational tasks.
  • Figure 4 is a schematic structural diagram of a device provided by an exemplary embodiment.
  • the device includes a processor 402, an internal bus 404, a network interface 406, a memory 408 and a non-volatile memory 410.
  • the processor 402 reads the corresponding computer program from the non-volatile memory 410 into the memory 408 and then runs it.
  • the execution subject of the following processing flow is not limited to each A logic unit can also be a hardware or logic device.
  • FIG. 5 is a block diagram of a data processing device provided in this specification according to an exemplary embodiment.
  • the device can be applied in the equipment shown in Figure 4 to implement the technical solution of this specification; so The device is applied to a first node device deployed with a first blockchain node, and the blockchain network to which the first blockchain node belongs is deployed with an off-chain computing contract.
  • the device includes: a first event listening unit 501 for monitoring task events generated by the off-chain computing contract for collaborative computing tasks; a data providing unit 502 for determining that the first blockchain node belongs to the collaboration If the data provider node corresponding to the computing task does not belong to the computing provider node corresponding to the collaborative computing task, the proxy access engine deployed on the first node device is called to execute the collaborative computing task.
  • the proxy access engine is configured to: during the process of executing the collaborative computing task, transmit the data read from the first node device to the data deployed on the second node device where the computing provider node is located.
  • Off-chain computing engine is configured to: during the
  • the off-chain computing contract maintains a task completion status corresponding to the off-chain computing task.
  • the task completion status is used to describe the completion status of each sub-task included in the off-chain computing task; in the collaborative computing
  • the first event listening unit 501 is specifically configured to: monitor that the off-chain computing contract satisfies the execution conditions corresponding to the collaborative computing task when the task is completed. The task event generated for the collaborative computing task.
  • the task completion status is updated by the off-chain computing contract in response to a transaction corresponding to the off-chain computing task, where the transaction corresponding to the off-chain computing task includes the transaction corresponding to the off-chain computing task.
  • the data providing unit 502 is specifically configured to: call the proxy access engine pre-deployed on the first node device to perform the collaborative computing task; or, deploy the proxy access engine on the first node device and call The proxy access engine performs the collaborative computing tasks.
  • the proxy access engine is configured to: in response to the proxy access engine being called, transmit the data indicated by the task event read from the first node device to the off-chain computing engine; or , read the pre-read data indicated by the task event from the first node device, and transmit the pre-read data to the off-chain computing engine in response to the data access request sent by the off-chain computing engine; Alternatively, in response to the data access request sent by the off-chain computing engine, data indicated by the data access request read from the first node device is transmitted to the off-chain computing engine.
  • a data provider node determining unit 503 configured to determine if the description information of the data provider node recorded in the task event contains the identification information of the first blockchain node.
  • the first blockchain node belongs to the data provider node.
  • the first computing provider node determining unit 504 is configured to determine that the description information of the computing provider node recorded in the task event does not include the identification information of the first blockchain node, or is not deployed on the first node device. If there is an off-chain computing engine that supports execution of the collaborative computing task, it is determined that the first blockchain node does not belong to the computing provider node.
  • a computing provision statement receiving unit 505 configured to, upon receiving a computing provision statement sent by other node devices, attribute the blockchain nodes deployed on the other node devices to the computing provider Party node, wherein the computing provision statement is broadcast by the other node device to the location of the data provider node when it is determined that the other node device is deployed with an off-chain computing engine that supports the execution of the collaborative computing task.
  • the first node device configured to, upon receiving a computing provision statement sent by other node devices, attribute the blockchain nodes deployed on the other node devices to the computing provider Party node, wherein the computing provision statement is broadcast by the other node device to the location of the data provider node when it is determined that the other node device is deployed with an off-chain computing engine that supports the execution of the collaborative computing task.
  • the proxy access engine is configured to encrypt the data read from the first node device using the certificate storage public key corresponding to the off-chain computing engine maintained by the off-chain computing contract to obtain encryption. data, and sends the encrypted data to the off-chain computing engine.
  • the certificated public key corresponding to the off-chain computing engine maintained by the off-chain computing contract is updated by a key update transaction initiated by the second computing device, and the key update transaction is initiated by the second computing device.
  • the key update transaction Initiated after monitoring the key update event generated by the off-chain computing contract, the key update transaction carries the off-chain computing engine corresponding to the second node device obtained in response to the key update event. The latest public key.
  • the off-chain computing contract is used to trigger the generation of the key update event during the initialization phase of successful deployment or in response to a key reset transaction.
  • FIG. 6 is a block diagram of a data processing device provided in this specification according to an exemplary embodiment.
  • This device can be applied to the equipment shown in Figure 4 to implement the technical solution of this specification; so The device is applied to a second node device, the second node device is deployed with a second blockchain node, and the blockchain network to which the second blockchain node belongs is deployed with an off-chain computing contract.
  • the device includes: a second event listening unit 601 for monitoring task events generated by the off-chain computing contract for collaborative computing tasks; a data acquisition unit 602 for determining that a second blockchain node belongs to the collaboration In the case of the computing provider node of the computing task, the off-chain computing engine deployed on the second node device is called to execute the collaborative computing task.
  • the off-chain computing engine is used to: in the process of executing the collaborative computing task, obtain the proxy access engine deployed on the first node device where the data provider node of the collaborative computing task is located from the first node. According to the data read by the device, the first blockchain node deployed on the first node device does not belong to the computing provider node.
  • the task event records description information of the data provider node.
  • a second computing provider node determining unit 603, configured to include the identification information of the second blockchain node or the second blockchain node in the description information of the computing provider node recorded in the task event.
  • a second computing provider node determining unit 603 configured to include the identification information of the second blockchain node or the second blockchain node in the description information of the computing provider node recorded in the task event.
  • a computing provision statement broadcast unit 604 configured to broadcast the computing provision statement to the second node device when it is determined that the second node device is deployed with an off-chain computing engine that supports the execution of the collaborative computing task.
  • an off-chain computing task execution unit 605 configured to call the off-chain computing when it is determined that the second blockchain node belongs to both the computing provider node and the data provider node.
  • the engine performs the collaborative computing tasks.
  • the off-chain computing engine is used to: in the process of executing the collaborative computing task, obtain the local data read from the second node device and the data read by the proxy access engine from the first node device. , the first blockchain node deployed on the first node device does not belong to the computing provider node.
  • the off-chain computing engine is configured to: obtain the encrypted data sent by the proxy access engine, the encrypted data corresponding to the off-chain computing engine maintained by the proxy access engine through the off-chain computing contract.
  • the certificated public key is obtained by encrypting the data read from the first node device.
  • a certified public key update unit 606 configured to obtain the latest public key corresponding to the off-chain computing engine when the key update event generated by the off-chain computing contract is monitored.
  • the second blockchain node initiates a key update transaction carrying the latest public key to the off-chain computing contract to update the certificated public key corresponding to the off-chain computing engine maintained by the off-chain computing contract. is the latest public key.
  • the off-chain computing contract is used to trigger the generation of the key update event during the initialization phase of successful deployment or in response to a key reset transaction.
  • the certificated public key update unit 606 is specifically configured to: obtain the key update event generated by the initialization phase when the off-chain computing contract is successfully deployed, and obtain the key update event deployed by the second node device.
  • the latest public keys respectively corresponding to all off-chain computing engines; or, after monitoring the key update event generated by the off-chain computing contract in response to the key reset transaction and determining the deployment of the first node device If there is a target off-chain computing engine indicated by the key update event, obtain the latest public key corresponding to the target off-chain computing engine.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • the controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor. , logic gates, switches, Application Specific Integrated Circuit (ASIC), programmable logic controllers and embedded microcontrollers.
  • controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, For Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic.
  • the controller in addition to implementing the controller in the form of pure computer-readable program code, the controller can be completely programmed with logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded logic by logically programming the method steps. Microcontroller, etc. to achieve the same function. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the means for implementing various functions can be considered as structures within hardware components as well as software modules implementing the methods.
  • the systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions.
  • a typical implementation device is a server system.
  • the computer that implements the functions of the above embodiments may be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, or a personal digital assistant. , media player, navigation device, email device, game console, tablet, wearable device, or a combination of any of these devices.
  • the functions are divided into various modules and described separately.
  • the functions of each module can be implemented in the same or multiple software and/or hardware, or the modules that implement the same function can be implemented by a combination of multiple sub-modules or sub-units, etc. .
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-permanent storage in computer-readable media, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash random access memory
  • Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information.
  • Information may be computer-readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • read-only memory read-only memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technology
  • compact disc read-only memory CD-ROM
  • DVD digital versatile disc
  • Magnetic tape magnetic tape storage, graphene storage or other magnetic storage devices or any other non-transmission medium can be used to store information that can be accessed by a computing device.
  • computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, one or more embodiments of the present description may employ a computer program implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. Product form.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • program modules may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network.
  • program modules may be located in both local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本说明书提供一种数据处理方法、装置、电子设备和存储介质,应用于部署有第一区块链节点的第一节点设备,第一区块链节点所属的区块链网络部署有链下计算合约。所述方法包括:监听所述链下计算合约生成的针对协作计算任务的任务事件;在确定第一区块链节点属于所述协作计算任务对应的数据提供方节点而不属于所述协作计算任务对应的计算提供方节点的情况下,调用第一节点设备部署的代理访问引擎执行所述协作计算任务。其中,所述代理访问引擎用于:在执行所述协作计算任务的过程中,将从第一节点设备读取到的数据传输至所述计算提供方节点所处的第二节点设备上部署的链下计算引擎。

Description

一种数据处理方法、装置、电子设备和存储介质 技术领域
本说明书实施例属于区块链技术领域,尤其涉及一种数据处理方法、装置、电子设备和存储介质。
背景技术
区块链(Blockchain)是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链系统中按照时间顺序将数据区块以顺序相连的方式组合成链式数据结构,并以密码学方式保证的不可篡改和不可伪造的分布式账本。由于区块链具有去中心化、信息不可篡改、自治性等特性,区块链也受到人们越来越多的重视和应用。
区块链网络可以承担基于智能合约定义的链下计算任务,此时区块链网络中各区块链节点分别所处的各节点设备会在智能合约生成的事件的指导下,调用本地部署的链下计算引擎以用于实现链下计算任务。对于协作计算任务即需要多个节点设备共同协作完成的链下计算任务而言,经常存在某一节点设备内的数据需要被另一外部节点设备中的链下计算引擎读取的需求,在某一节点设备上未部署参与协作计算任务的链下计算引擎的情况下,某一节点设备将无法通过链下计算引擎之间的通讯来实现数据交互,而是需要将本地的数据源直接暴露给外部节点设备,从而使外部节点设备通过该数据源直接获取所需数据,此时相当于某一节点设备本地的数据源对外部开放,由于难以限制外部节点设备的数据读取范围,因此容易造成隐私信息泄露,存在较大的安全风险。
发明内容
本发明的目的在于提供一种数据处理方法、装置、电子设备和存储介质。
根据本说明书一个或多个实施例的第一方面,提出了一种数据处理方法,应用于部署有第一区块链节点的第一节点设备,第一区块链节点所属的区块链网络部署有链下计算合约。所述方法包括:监听所述链下计算合约生成的针对协作计算任务的任务事件;在确定第一区块链节点属于所述协作计算任务对应的数据提供方节点而不属于所述协作计算任务对应的计算提供方节点的情况下,调用第一节点设备部署的代理访问引擎执行所述协作计算任务。其中,所述代理访问引擎用于:在执行所述协作计算任务的过程中,将从第一节点设备读取到的数据传输至所述计算提供方节点所处的第二节点设备上部署的链下计算引擎。
根据本说明书一个或多个实施例的第二方面,提出了一种数据处理方法,应用于第二节点设备,第二节点设备部署有第二区块链节点,第二区块链节点所属的区块链网络部署有链下计算合约。所述方法包括:监听所述链下计算合约生成的针对协作计算任务的任务事件;在确定第二区块链节点属于所述协作计算任务的计算提供方节点的情况下,调用第二节点设备部署的链下计算引擎执行所述协作计算任务。其中,所述链下计算引擎用于:在执行所述协作计算任务的过程中,获取所述协作计算任务的数据提供方节点 所处的第一节点设备上部署的代理访问引擎从第一节点设备读取到的数据,第一节点设备上部署的第一区块链节点不属于所述计算提供方节点。
根据本说明书一个或多个实施例的第三方面,提出了一种数据处理装置,应用于部署有第一区块链节点的第一节点设备,第一区块链节点所属的区块链网络部署有链下计算合约。所述装置包括:第一事件监听单元,用于监听所述链下计算合约生成的针对协作计算任务的任务事件;数据提供单元,用于在确定第一区块链节点属于所述协作计算任务对应的数据提供方节点而不属于所述协作计算任务对应的计算提供方节点的情况下,调用第一节点设备部署的代理访问引擎执行所述协作计算任务。其中,所述代理访问引擎用于:在执行所述协作计算任务的过程中,将从第一节点设备读取到的数据传输至所述计算提供方节点所处的第二节点设备上部署的链下计算引擎。
根据本说明书一个或多个实施例的第四方面,提出了一种数据处理装置,应用于第二节点设备,第二节点设备部署有第二区块链节点,第二区块链节点所属的区块链网络部署有链下计算合约。所述装置包括:第二事件监听单元,用于监听所述链下计算合约生成的针对协作计算任务的任务事件;数据获取单元,用于在确定第二区块链节点属于所述协作计算任务的计算提供方节点的情况下,调用第二节点设备部署的链下计算引擎执行所述协作计算任务。其中,所述链下计算引擎用于:在执行所述协作计算任务的过程中,获取所述协作计算任务的数据提供方节点所处的第一节点设备上部署的代理访问引擎从第一节点设备读取到的数据,第一节点设备上部署的第一区块链节点不属于所述计算提供方节点。
根据本说明书一个或多个实施例的第五方面,提出了一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器。其中,所述处理器通过运行所述可执行指令以实现如第一方面或第二方面所述的方法。
根据本说明书一个或多个实施例的第六方面,提出了一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如第一方面或第二方面所述方法的步骤。
在本说明书实施例中,通过将数据提供方节点所处的第一节点设备上部署的代理访问引擎作为对第二节点设备提供本地数据的中介,在第一节点设备内部由代理访问引擎读取数据源,而在第一节点设备与第二节点设备之间通过第一节点设备上部署的代理访问引擎与第二节点设备部署的链下计算引擎实现通讯,从而避免了对第二节点设备直接暴露第一节点设备本地的数据源,同时由于代理访问引擎与第二节点设备部署的链下计算引擎之间所传输的数据仅包含协作计算任务所定义的数据,因此能够较为可控地限制第二节点设备的数据读取范围,避免暴露隐私信息,减少安全风险。
附图说明
为了更清楚地说明本说明书实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是一示例性实施例提供的一种数据处理方法的流程图。
图2是一示例性实施例提供的另一种数据处理方法的流程图。
图3是一示例性实施例提供的一种节点设备交互的场景示意图。
图4是一示例性实施例提供的一种设备的结构示意图。
图5是一示例性实施例提供的一种数据处理装置的框图。
图6是一示例性实施例提供的另一种数据处理装置的框图。
具体实施方式
为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书保护的范围。
图1是一示例性实施例提供的一种数据处理方法的流程图。该方法应用于部署有第一区块链节点的第一节点设备,第一区块链节点所属的区块链网络部署有链下计算合约;所述方法包括:
S102:监听所述链下计算合约生成的针对协作计算任务的任务事件。
在本说明书实施例中,链下计算合约是一个用于承载链下计算任务的链上载体,链下计算合约中定义有链下计算任务包含的若干子任务,用于描述一个链下计算任务中的数据流向和各节点设备的计算协作过程。由于链下计算合约部署在区块链网络上,因此限定了链下计算合约所定义的链下计算任务的参与方节点不超过区块链网络中的各区块链节点的范围。显然,同一个区块链网络中可以部署多个链下计算合约,而不同的链下计算合约其所涉及的参与方节点的数量和性能均可以灵活配置,这使得依托于同一个区块链网络可以实现不同任务类型、任务需求和任务规模的链下计算任务的部署。
为了说明链下计算合约如何指导以实现其定义的链下计算任务,下面将通过一个典型的链下计算合约的运作过程来简单介绍链下计算任务的实现逻辑。用户可以通过可视化合约编排系统生成链下计算合约的代码并在区块链网络中部署链下计算合约,从而使得链下计算合约定义了一种类型的链下计算任务的工作流程,它体现为若干个具有执行依赖顺序的子任务。在链下计算合约部署成功后,有权限调用该链下计算合约的用户就可以通过向链下计算合约发起任务创建交易的方式来创建并启动一个链下计算任务,链下计算合约在接收到任务创建交易后会相应地创建一个归属于发起方用户的链下计算任务的任务实例,该任务实例中维护有链下计算任务的任务完成状态,具体体现为链下计算任务下各子任务的任务完成状态。链下计算合约响应于任务创建交易并生成对应的任务实例后,会进一步触发执行该实例对应的第一个子任务,在链下计算合约上体现为生成包含第一个子任务的参与方节点的事件,区块链网络中的各区块链节点都可以监听该事件,并且那些判定自身属于第一个子任务的参与方节点的区块链节点所处的节点设备会进一步调用匹配于该第一个子任务的链下计算资源和/或链下存储资源来在链下执 行该第一个子任务,最后,参与方节点所处的节点设备在执行完毕后,会进一步向链下计算合约发起携带有第一个子任务的执行结果的结果返回交易,从而使得链下计算合约更新对应任务实例的任务完成状态,例如当第一个子任务的执行结果为执行成功时,链下计算合约就会将对应任务实例中第一个子任务的任务完成状态标记为已完成,从而按照预定义的链下计算任务包含的各子任务的依赖顺序触发执行下一批子任务,进而生成包含下一批子任务的参与方节点描述信息的事件以供区块链网络中的各区块链节点监听,其后续过程与前述处理第一个子任务的过程类似。由此一来,就形成了一个“链下计算合约更新任务完成状态→链下计算合约生成子任务事件→区块链节点监听子任务事件并由被指定的节点设备执行子任务→节点设备向链下计算合约发起子任务的结果返回交易→链下计算合约更新任务完成状态”的循环,直至链下计算合约中任务实例中所有子任务的任务完成状态均为已完成的情况下,确定该任务实例对应的链下计算任务已经执行完成。
不难发现,链下计算合约在链下计算任务的执行过程中所执行的任务仅包括创建任务实例、接收子任务结果、子任务调度与子任务下发这类调度性任务,实际上并没有真正执行链下计算任务所定义和要求执行的如数据计算、数据转移和数据存储等实际任务,而这些大量消耗资源的任务被调度至各节点设备所对应的链下进行执行,从而通过事件监听机制以及交易回传机制实现了一种基于区块链的分布式计算,使链下计算任务被区块链上的链下计算合约所锚定,在确保任务执行全流程可追踪的前提下充分利用链下资源,同时使得不同节点设备之间依托于区块链实现可信的信息交互与协作计算,另外由于链下计算任务是以合约形式定义且链下计算任务的设计并不受到链上资源的掣肘,这意味着可以通过设计不同的链下计算合约以满足不同的实际需求,通过链下资源扩展了链上协作方式。
在本说明书实施例中,所述链下计算合约维护有链下计算任务对应的任务完成状态,所述任务完成状态用于描述所述链下计算任务包含的各子任务的完成状态;在所述协作计算任务属于所述链下计算任务的子任务的情况下,所述监听所述链下计算合约生成的针对协作计算任务的任务事件,包括:监听所述链下计算合约在所述任务完成状态满足所述协作计算任务对应的执行条件的情况下生成的针对所述协作计算任务的所述任务事件。在本说明书实施例中,链下计算任务在链下计算合约上表现为对应的任务实例,其任务完成状态维护在链下计算合约的相应任务实例中,具体表现为该任务实例中维护有各子任务的完成状态。在本说明书实施例中,所述协作计算任务属于所述链下计算任务的一个子任务,由于链下计算任务包含的各子任务的执行依赖顺序已经预先定义,这意味着包含所述协作计算任务在内的每个子任务的执行条件也已确定,因此链下计算合约可以依据链下计算任务中包含的各子任务的完成状态来进一步确定接下来所需执行的协作计算任务,从而发起针对协作计算任务的任务事件。进一步的,还包括:在协作计算任务执行完毕的情况下,通过第一区块链节点向所述链下计算合约发起包含协作计算任务对应的执行结果的结果返回交易,以更新所述链下计算合约维护的链下计算任务对应的任务完成状态。如前所述,在第一节点设备通过调用资源执行子任务并执行完毕的情况下,会通过发起结果返回交易来更新链下计算合约维护的链下计算任务的任务完成状态,从而使得链下计算合约可以进一步根据链下计算任务中各子任务的执行依赖顺 序确定接下来所应该执行的下一子任务,并生成针对下一子任务的任务事件。在本说明书实施例中,监听链下计算合约生成的任务事件、向链下计算合约发起结果返回交易的实体具体为第一节点设备上部署的调度引擎。
如前所述,所述任务完成状态由所述链下计算合约响应于所述链下计算任务对应的交易触发更新,其中,所述链下计算任务对应的交易包括所述链下计算任务对应的任务创建交易,或者任一节点设备在对所述各子任务中任一子任务执行完毕的情况下发起的结果返回交易。在本说明书实施例中,所述链下计算合约维护有一个或多个链下计算任务分别对应的任务完成状态。通常情况下,一个链下计算合约只会定义一种类型的链下计算任务,但可以创建该链下计算任务对应的多个任务实例,每个任务实例都会记录有该任务实例对应的任务完成状态。因此,链下计算合约上维护的多个任务实例可以是不同用户通过向链下计算合约分别发起任务创建合约而触发创建的,也可以是由同一个用户通过多次发起任务创建合约而触发创建的,但这些任务实例都具有相同的执行逻辑,即链下计算合约维护的各任务的任务类型相同。
S104:在确定第一区块链节点属于所述协作计算任务对应的数据提供方节点而不属于所述协作计算任务对应的计算提供方节点的情况下,调用第一节点设备部署的代理访问引擎执行所述协作计算任务。其中,所述代理访问引擎用于:在执行所述协作计算任务的过程中,将从第一节点设备读取到的数据传输至所述计算提供方节点所处的第二节点设备上部署的链下计算引擎。
在本说明书实施例中,第一节点设备监听到的所述链下计算合约生成的针对协作计算任务的任务事件中记录有协作计算任务的参与方节点的描述信息。任务事件包括协作计算任务的参与方节点的描述信息,是指协作计算任务规定了其所需涉及参与的区块链节点的身份信息。协作计算任务的参与方节点按照其对应的属性特点可被确定为协作计算任务对应的数据提供方节点和/或计算提供方节点,其中,协作计算任务对应的数据提供方节点是指:在一个由多个节点设备共同参与完成的协作计算任务的执行过程中,需要向其他节点设备提供数据的节点设备上部署的所述区块链网络中的区块链节点,该数据用于给其他节点设备上部署的链下计算引擎作为执行该协作计算任务和/或后续其他子任务所需的数据而使用;而协作计算任务对应的计算提供方是指:在一个由多个节点设备共同参与完成的协作计算任务的执行过程中,提供链下计算引擎资源执行实际计算任务的节点设备上部署的所述区块链网络中的区块链节点。容易理解的是,对于协作计算任务中任一个参与方节点而言,其既可以为该协作计算任务对应的数据提供方节点,也可以为该协作计算任务对应的计算提供方节点,还可以同时为该协作计算任务对应的数据提供方节点与计算提供方节点。例如,对于一个同时为协作计算任务对应的数据提供方节点与计算提供方节点的参与方节点而言,其所处的节点设备上的链下计算引擎将在执行该协作计算任务的过程中,获取该节点设备本地的数据以该协作计算任务和/或后续其他子任务。
本说明书实施例所涉及的代理访问引擎的类型可以为计算引擎或数据引擎。其中,计算引擎又称链下计算引擎,是指为节点设备提供链下计算能能力的服务或子系统,一个计算引擎往往能够承担一种或多种类型的计算任务,这体现在对相关子任务对应的计算需求的支持;数据引擎又称数据库引擎,是指用于存储、检索、处理和保护数据的核 心服务程序,利用数据库引擎可控制访问权限并快速处理事务,从而满足企业内大多数需要处理大量数据的应用程序的要求,使用数据库引擎创建用于联机事务处理或联机分析处理数据的关系数据库,这包括创建用于存储数据的表和用于查看、管理和保护数据安全的数据库对象(如索引、视图和存储过程),不同的数据引擎所支持的数据访问方式或访问的数据类型有所不同,因此体现为相关子任务对应的数据引擎需求的支持。
在本说明书实施例中,第一节点设备需要在确定第一区块链节点属于所述协作计算任务对应的数据提供方节点而不属于所述协作计算任务对应的计算提供方节点的情况下,才会调用代理访问引擎执行所述协作计算任务,这意味着只有在第一节点设备仅属于所述协作计算任务的数据提供方的情况下,第一节点设备才会对代理访问引擎进行调用,否则,但凡第一节点设备不属于所述协作计算任务对应的数据提供方节点或属于所述协作计算任务对应的计算提供方节点的情况,第一节点设备都不会调用代理访问引擎执行所述协作计算任务。这是由于,如果第一区块链节点同时属于所述协作计算任务对应的数据提供方节点与计算提供方节点,那么第一节点设备即使需要向其他节点设备提供数据,也可以直接通过作为计算提供方节点所涉及的链下计算引擎来作为中介进行数据传输,而由该链下计算引擎访问本地的数据源,从而也无需将本地数据源暴露给外部。在本说明书实施例中,调用链下计算引擎执行协作计算任务的的实体具体为第一节点设备上部署的调度引擎。
可选的,在所述任务事件中记录的所述数据提供方节点的描述信息中包含第一区块链节点的标识信息的情况下,确定第一区块链节点属于所述数据提供方节点;在所述任务事件中记录的所述计算提供方节点的描述信息中不包含第一区块链节点的标识信息、或者第一节点设备上未部署有支持执行所述协作计算任务的链下计算引擎的情况下,确定第一区块链节点不属于所述计算提供方节点。
在本说明书实施例中,针对协作计算任务的任务事件中记录有协作计算任务的参与方节点的描述信息,具体是指所述任务事件中记录有协作计算任务对应的数据提供方节点的描述信息,这意味着第一节点设备可以在确定所述数据提供方节点的描述信息中包含自身部署的第一区块链节点的标识信息的情况下,判断自身所部属的第一区块链节点属于协作计算任务对应的数据提供方节点;而如果所述数据提供方节点的描述信息中不包含第一区块链节点的标识信息,则第一节点设备可以判断自身所部署的第一区块链节点不属于协作计算任务对应的数据提供方节点。
在一实施例中,针对协作计算任务的任务事件中还记录有协作计算任务对应的计算提供方节点的描述信息,这意味着第一节点设备可以在确定所述计算提供方节点的描述信息中包含自身部署的第一区块链节点的标识信息的情况下,判断自身所部属的第一区块链节点属于协作计算任务对应的计算提供方节点;而如果所述计算提供方节点的描述信息中不包含第一区块链节点的标识信息,则第一节点设备可以判断自身所部署的第一区块链节点不属于协作计算任务对应的计算提供方节点。在本实施例中,所述任务事件中还记录有计算提供方节点所处节点设备上参与执行所述协作计算任务的链下计算引擎的标识信息。
在另一实施例中,针对协作计算任务的任务事件中仅记录有协作计算任务对应的数 据提供方节点的描述信息,而未记录有协作计算任务对应的计算提供方节点的描述信息以及参与执行所述协作计算任务的链下计算引擎的标识信息的情况下,此时各节点设备在监听到该任务事件后,识别到该任务事件中未记录有协作计算任务对应的计算提供方节点的描述信息,于是会触发参与进行协作计算任务对应的计算提供方节点的协商。对于任一节点设备而言,其可以在判断自身部署有支持执行所述协作计算任务的链下计算引擎的情况下,确定自身属于所述协作计算任务对应的计算提供方节点,因此第一节点设备上可以在第一节点设备未部署有支持执行所述协作计算任务的链下计算引擎的情况下,确定第一区块链节点不属于所述计算提供方节点。
进一步的,在接收到其他节点设备发送的计算提供声明的情况下,将所述其他节点设备上部署的区块链节点归属于所述计算提供方节点,其中,所述计算提供声明由所述其他节点设备在确定所述其他节点设备部署有支持执行所述协作计算任务的链下计算引擎的情况下广播至所述数据提供方节点所处的第一节点设备。各节点设备中的任一节点设备在进行计算提供方节点的协商时,除了会根据自身是否部署有支持所述协作计算任务的链下计算引擎来判断自身是否属于所述协作计算任务对应的计算提供方节点以外,还会在确定自身属于所述计算提供方节点之后,向其他节点设备广播包含所述支持所述协作计算任务的链下计算引擎的标识信息的计算提供声明,以使其他节点设备在接收到所述任一节点设备的计算提供声明后,将所述任一节点设备归属于所述协作计算任务对应的计算提供方节点,同时获知涉及参与执行协作计算任务中实际计算的所述其他节点设备上部署的链下计算引擎,其中,所述其他节点设备可以是所有部署有区块链网络中的区块链节点的节点设备,也可以是所有部署有所述协作计算任务对应的数据提供方节点的节点设备。因此,对于第一节点设备而言,当其接收到其他节点设备发送的计算提供声明的情况下,可以将所述其他节点设备上部署的区块链节点归属于所述计算提供方节点,同时获知作为提供数据的目标的链下计算引擎的标识信息。在本说明书实施例中,可以在参与方节点所处的节点设备能够在任务事件中未记录有协作计算任务对应的计算提供方节点的描述信息的情况下,也能够通过各节点设备进行计算提供方节点的协商来实现获知协作计算方节点及其对应的链下计算引擎,从而进一步指导协作计算任务的有效执行。
另外,任务事件中还会记录链下计算任务与协作计算任务的任务标识,从而对不同的任务和子任务进行区分,这主要是方便后续任一节点设备在对协作计算任务执行完毕并回传结果返回交易时能够正确标识是针对链下计算任务中协作计算任务的结果,使得链下计算合约能够通过结果返回交易正确更新对应链下计算任务的任务实例中协作计算任务的完成状态,以应对同一个任务包含多个子任务以及同一个链下计算年合约同时创建多个链下计算任务的任务实例的情况。当然协作计算任务还记录有自身所需执行的计算和数据转移等操作,且指定了所需数据的来源,这些信息是用于告知各节点设备协作计算任务的任务类型及其实现方式,从而指导节点设备在确定协作计算任务的任务类型及其实现方式对应可调用资源后,按照协作计算任务的预期执行协作计算任务。
可选的,所述调用第一节点设备部署的代理访问引擎执行所述协作计算任务,包括:调用第一节点设备预先部署的所述代理访问引擎执行所述协作计算任务;或者,在第一节点设备部署所述代理访问引擎,并调用所述代理访问引擎执行所述协作计算任务。在 本说明书实施例中,第一节点设备可以预先部署有代理访问引擎,这种情况下,第一节点设备在确定自身需要调用代理访问引擎执行协作计算任务的情况下,可以直接调用该预先部署的所述代理访问引擎执行所述协作计算任务;而在另一种情况下,第一节点设备并未预先部署有代理访问引擎,然而此时第一节点设备在确定自身需要调用代理访问引擎执行协作计算任务的情况下,将在本地临时生成并部署代理访问引擎,从而在代理访问引擎部署完成后调用该代理访问引擎执行所述协作计算任务。
可选的,所述代理访问引擎用于:响应于所述代理访问引擎被调用,将从第一节点设备读取到的所述任务事件所指示的数据传输至所述链下计算引擎;或者,从第一节点设备读取到所述任务事件所指示的预读取数据,响应于所述链下计算引擎发送的数据访问请求将所述预读取数据传输至所述链下计算引擎;或者,响应于所述链下计算引擎发送的所述数据访问请求,将从第一节点设备读取到的所述数据访问请求所指示的数据传输至所述链下计算引擎。在本说明书实施例中,代理访问引擎可以通过至少三种逻辑向计算提供方节点所处的第二节点设备提供数据:其一,第一节点设备针对代理访问引擎的调用请求中携带有作为传输目标的链下计算引擎的标识信息以及所述任务事件中记录的数据需求,因此代理访问引擎可以在被调用执行协作计算任务时,触发根据所述任务事件包含的数据需求从第一节点设备上读取对应的数据并传输至第二节点设备部署的所述链下计算引擎;其二,第一节点设备针对代理访问引擎的调用请求中携带有作为传输目标的链下计算引擎的标识信息以及所述任务事件中记录的数据需求,代理访问引擎会基于该调用请求触发执行读取所述数据需求对应的预读取数据,并等待来自第二节点设备部署的所述链下计算引擎的数据访问请求,当代理访问引擎接收到所述数据访问请求后将进一步触发将所述预读取数据传输至所述链下计算引擎;其三,第一节点设备针对代理访问引擎的调用请求中携带有作为传输目标的链下计算引擎的标识信息,代理访问引擎会等待来自第二节点设备部署的所述链下计算引擎的数据访问请求,当代理访问引擎接收到所述数据访问请求后,将进一步触发读取所述数据访问请求所指示的数据并将其传输至所述链下计算引擎。本说明书实施例提供多种代理访问引擎向链下计算引擎提供数据的方式,从而适应不同场景的实际需求,例如其一和其二方式相较于其三方式,其提供的数据由链下计算合约生成的任务事件决定,因此可以通过链下计算任务的编写来做到不同节点设备之间的访问权限控制,而其三方式中提供的数据由链下计算引擎决定,可以适配于更加灵活的链下计算任务的执行,同时可以通过代理访问引擎来作为访问权限控制的工作;其二和其三方式相对于其一方式强调于数据传输受链下计算引擎控制,这能够配合一些具体数据流转过程不确定的链下计算任务,因为有些链下计算任务根据具体情形不同也会出现链下计算引擎不需要从代理访问引擎获取数据可能性,因此由链下计算引擎来控制数据传输可以符合链下计算引擎的实际需要,避免无谓的数据传输所可能导致的安全风险和资源损耗。
在本说明书实施例中,通过将数据提供方节点所处的第一节点设备上部署的代理访问引擎作为对第二节点设备提供本地数据的中介,在第一节点设备内部由代理访问引擎读取数据源,而在第一节点设备与第二节点设备之间通过第一节点设备上部署的代理访问引擎与第二节点设备部署的链下计算引擎实现通讯,从而避免了对第二节点设备直接暴露第一节点设备本地的数据源,同时由于代理访问引擎与第二节点设备部署的链下计 算引擎之间所传输的数据仅包含协作计算任务所定义的数据,因此能够较为可控地限制第二节点设备的数据读取范围,避免暴露隐私信息,减少安全风险。
可选的,所述代理访问引擎用于:通过所述链下计算合约维护的所述链下计算引擎对应的存证公钥对从第一节点设备读取到的所述数据进行加密得到加密数据,并将所述加密数据发送至所述链下计算引擎。在本说明书实施例中,所述链下计算合约中维护有参与执行所述链下计算任务的各链下计算引擎的公钥,因此也包含第二节点设备上部署的参与执行所述协作计算任务的链下计算引擎的公钥,代理访问引擎可以从所述链下计算合约中获取作为数据提供目标的链下计算引擎的公钥,然后将从第一节点设备读取到的原始数据通过所述链下计算引擎的公钥进行加密得到的加密数据作为所述原始数据的替代,将所述加密数据而非所述原始数据传输至所述链下计算引擎,而链下计算引擎又可以通过自身公钥对加密数据进行解密以获取原始数据,从而在确保通讯有效性的情况下避免直接传输明文数据,减少安全隐患。
进一步的,所述链下计算合约维护的所述链下计算引擎对应的存证公钥由第二计算设备发起的密钥更新交易触发更新,所述密钥更新交易由第二计算设备在监听到所述链下计算合约生成的密钥更新事件的情况下发起,所述密钥更新交易携带有第二节点设备响应于所述密钥更新事件获取到的所述链下计算引擎对应的最新公钥。在本说明书实施例中,当某一节点设备根据监听到的密钥更新事件确定自身部署有有待更新密钥的链下计算引擎的场合,例如密钥更新事件中记录有涉及密钥更新任务的参与方节点的描述信息或有待更新密钥的链下计算引擎的标识信息,节点设备可以通过判断自身部署的区块链节点是否包含于所述参与方节点的描述信息,或者判断密钥更新事件中是否存在匹配自身部署的链下计算引擎的标识信息,从而确定自身是否需要执行密钥更新任务。任一节点设备在执行密钥更新任务时,需要访问本地部署的待更新密钥的链下计算引擎并获取其对应的最新公钥,然后将该最新公钥携带在密钥更新交易中,最后向链下计算合约发起该密钥更新交易,以使链下计算合约触发自身维护的对应链下计算引擎的存证公钥的更新,即,是将链下计算合约中原本维护的密钥更新交易指向的那个链下计算引擎的存证公钥替换为密钥更新交易中携带的那个链下计算合约的最新公钥。通过本说明书实施例,通过事件监听机制与交易回传机制将节点设备中部署的链下计算引擎的公钥信息维护在链下计算合约中,可以实现对参与链下计算任务的各链下计算引擎的公钥进行上链存证与即时更新,从而确保各个参与执行链下计算任务的主体获取公钥的权威性与有效性。
进一步的,所述链下计算合约在部署成功的初始化阶段或响应于密钥重置交易的情况下用于触发生成所述密钥更新事件。在本说明书实施例中,当链下计算合约被成功部署于任一节点设备上时,该链下计算合约会触发执行初始化程序,这其中就包括生成密钥更新事件,从而使链下计算合约及时更新各个新加入节点设备中参与链下计算任务的链下计算引擎的存证公钥。另外,任一节点设备也均可以主动向链下计算合约发起密钥重置交易,使得链下计算合约响应于密钥重置交易触发生成密钥更新事件以被各节点设备所监听,从而应对一些节点设备上部署的参与链下计算任务的链下计算引擎的最新公钥发生变化的情况,以确保链上存证公钥与链下计算引擎实际的最新公钥的一致性。
图2是一示例性实施例提供的另一种数据处理方法的流程图。该方法应用于第二节 点设备,第二节点设备部署有第二区块链节点,第二区块链节点所属的区块链网络部署有链下计算合约;所述方法包括:
S202:监听所述链下计算合约生成的针对协作计算任务的任务事件。
S204:在确定第二区块链节点属于所述协作计算任务的计算提供方节点的情况下,调用第二节点设备部署的链下计算引擎执行所述协作计算任务。其中,所述链下计算引擎用于:在执行所述协作计算任务的过程中,获取所述协作计算任务的数据提供方节点所处的第一节点设备上部署的代理访问引擎从第一节点设备读取到的数据,第一节点设备上部署的第一区块链节点不属于所述计算提供方节点。
本说明书实施例是对应于前文所述的一种数据处理方法的实施例的第二节点设备侧的实施例,其中涉及的技术细节已经在前文有所详述,此处不再过多赘述。由于第一节点设备上部署的第一区块链节点不属于计算提供方节点,即第一区块链节点仅作为数据提供方节点,那么为了避免第二节点设备在执行协作计算任务的过程中直接从第一节点设备读取数据,则会通过第一节点设备中部署的代理访问引擎作为中介来获取第一节点设备上的数据,因此能够较为可控地限制第二节点设备在第一节点设备中读取数据的范围,避免泄露隐私信息,减少安全风险。
在本说明书实施例中,所述任务事件中记录有所述数据提供方节点的描述信息。第二节点设备可以通过在判断出自身部署的第二区块链节点的标识信息包含于任务事件中记录的所述数据提供方节点的描述信息情况下,确定第二区块链节点属于所述数据提供方节点,而在判断出第二区块链节点的标识信息未包含于任务事件中记录的所述数据提供方节点的描述信息的情况下,确定第二区块链节点不属于所述数据提供方节点。同时,第二节点设备也可以因此获知参与执行协作计算任务的相关数据提供方节点所处的节点设备,从而能够告知链下计算引擎在执行协作计算任务的过程中从何处获取数据。
可选的,还包括:在所述任务事件中记录的所述计算提供方节点的描述信息中包含第二区块链节点的标识信息、或者第二节点设备部署有支持执行所述协作计算任务的链下计算引擎的情况下,确定第二区块链节点属于所述计算提供方节点。如前所述,在一实施例中,任务事件中直接记录有所述计算提供方节点的描述信息,因此第二节点设备可以通过在判断出第二区块链节点的标识信息包含于所述计算提供方节点的描述信息的情况下,确定第二区块链节点属于所述计算提供方节点。在另一实施例中,如果任务事件中未记录计算提供方节点的描述信息,则触发参与进行协作计算任务对应的计算提供方节点的协商,该协商在各节点设备中进行,每个节点设备都会判断自身是否部署有支持执行协作计算任务的链下计算引擎,而任一节点设备在判断出自身部署有支持执行所述协作计算任务的链下计算引擎的情况下将确定自身部署的区块链节点属于所述计算提供方节点,本实施例并未在链下计算合约所生成的任务事件中指派计算提供方节点,而是让各节点设备之间通过协商来自行选出计算提供方节点,从而一定程度上实现了动态的资源规划,充分利用了个节点设备上的链下计算引擎资源。
可选的,还包括:在确定第二节点设备部署有支持执行所述协作计算任务的链下计算引擎的情况下,将所述计算提供声明广播至所述数据提供方节点所处的第一节点设备,以使第一节点设备将第二区块链节点归属于所述计算提供方节点。在进行计算提供节点 的协商时,每个节点设备除了需要知晓自身部署的区块链节点是否属于计算提供方节点以外,还需要知晓其他计算提供方节点,因此,当任一计算节点设备在确定自身部署的链下计算引擎支持执行所述协作计算任务的情况下,将携带有自身部署的区块链节点的标识信息以及确定出的链下计算引擎的标识信息的计算提供声明广播至其他节点设备,从而使得其他节点设备可以通过该计算提供声明将其携带的区块链节点归属于计算提供方节点,将其携带的链下计算引擎确定为需要参与协作计算任务。
可选的,还包括:在确定第二区块链节点同时属于所述计算提供方节点与所述数据提供方节点的情况下,调用所述链下计算引擎执行所述协作计算任务。其中,所述链下计算引擎用于:在执行所述协作计算任务的过程中,获取从第二节点设备读取到的本地数据以及所述代理访问引擎从第一节点设备读取到的数据,第一节点设备上部署的第一区块链节点不属于所述计算提供方节点。在本说明书实施例中,假如第二节点设备确定出自身部署的第二区块链节点同时属于所述计算提供方节点与所述数据提供方节点,那么在这种情况下,第二节点设备中参与执行协作计算任务的链下计算引擎在执行协作计算任务的过程中,将不仅从其他节点设备上获取数据,也会读取第二节点设备本地的数据以进一步在所述协作计算任务或后续子任务的执行中使用。
可选的,所述链下计算引擎用于:获取所述代理访问引擎发送的加密数据,所述加密数据由所述代理访问引擎通过所述链下计算合约维护的所述链下计算引擎对应的存证公钥对从第一节点设备读取到的所述数据进行加密得到。
进一步的,还包括:在监听到所述链下计算合约生成的密钥更新事件的情况下,获取所述链下计算引擎对应的最新公钥,通过第二区块链节点向所述链下计算合约发起携带有所述最新公钥的密钥更新交易,以将所述链下计算合约维护的所述链下计算引擎对应的存证公钥更新为所述最新公钥。
进一步的,所述链下计算合约在部署成功的初始化阶段或响应于密钥重置交易的情况下用于触发生成所述密钥更新事件。
进一步的,所述在监听到所述链下计算合约生成的密钥更新事件的情况下,获取所述链下计算引擎对应的最新公钥,包括:在监听到所述链下计算合约部署成功的初始化阶段生成的所述密钥更新事件的情况下,获取第二节点设备部署的所有链下计算引擎分别对应的所述最新公钥;或者,在监听到所述链下计算合约响应于所述密钥重置交易而生成的所述密钥更新事件且确定第一节点设备部署有所述密钥更新事件所指示的目标链下计算引擎的情况下,获取所述目标链下计算引擎对应的所述最新公钥。在本说明书实施例中,在链下计算合约被部署至任一节点设备上时,会触发执行初始化程序,其中包含生成所述密钥更新事件的过程,此时该密钥更新事件用于指示任一节点设备获取任一节点设备上部署的所有链下计算引擎的最新公钥,并通过交易回传机制将它们维护在链下计算合约,从而使得参与执行链下计算合约所定义的链下计算任务的新链下计算引擎的公钥被即时维护在链下计算合约中,从而确保链下计算任务的正常执行;或者,在链下计算合约接收到密钥重置交易后,也会生成密钥更新事件用于指示更新链下计算合约中维护的目标链下计算引擎的存证公钥,此时第二节点设备如果识别出本地部署有该目标链下计算引擎,则会响应于该密钥更新事件去获取第二节点设备上部署的该目标链 下计算引擎对应的所述最新公钥,并通过叫交易回传机制将其更新至链下计算合约,从而即时更新特定链下计算引擎于链下计算合约中的存证公钥,避免因特定链下计算引擎的存证公钥滞后于特定链下计算引擎的最新公钥所引起的链下计算任务的执行出错。
图3是一示例性实施例提供的一种节点设备交互的场景示意图。如图3所示,第一节点设备上部署有区块链网络中的第一区块链节点、第一调度引擎、代理访问引擎与第一数据源,第二节点设备部署有区块链网络中的第二区块链节点、第二调度引擎、链下计算引擎与第二数据源。当链下计算合约生成针对协作计算任务的任务事件后,将分别通过第一区块链节点与第二区块链节点被第一节点设备上的第一调度引擎与第二节点设备上的第二调度引擎所监听,假设任务事件中同时记录有协作计算任务对应的数据提供方节点与计算提供方节点的描述信息,以及所需提供数据的链下计算引擎的标识信息,其中,数据提供方节点的描述信息为第一区块链节点的标识信息,计算提供方节点的描述信息为第二区块链节点的标识信息。因此,第一调度引擎可以确定第一节点设备需要向第二节点设备中的链下计算引擎提供数据,同时第一节点设备也不需要为协作计算任务提供计算支持,于是第一调度引擎将调用代理访问引擎执行协作计算任务,以将从第一数据源中获取的数据传输给第二节点设备中的链下计算引擎。另一边,第二调度引擎可以确定第二节点设备中部署的任务事件中指定的链下计算引擎需要获取第一节点设备的数据,于是第二调度引擎将调用该指定的链下计算引擎执行协作计算任务,例如,该指定的链下计算引擎为运行在可行执行环境中的可信计算引擎,其需要从第一节点设备获取数据以完成协作计算任务中定义的相关可信计算操作,此时将该可信计算引擎将通过与第一节点设备上部署的代理访问引擎之间的网络连接获取代理访问引擎从第一数据源中读取的数据,从而进一步执行可信计算操作以继续完成协作计算任务。
图4是一示例性实施例提供的一种设备的示意结构图。请参考图4,在硬件层面,该设备包括处理器402、内部总线404、网络接口406、内存408以及非易失性存储器410,当然还可能包括其他功能所需要的硬件。本说明书一个或多个实施例可以基于软件方式来实现,比如由处理器402从非易失性存储器410中读取对应的计算机程序到内存408中然后运行。当然,除了软件实现方式之外,本说明书一个或多个实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
如图5所示,图5是本说明书根据一示例性实施例提供的一种数据处理装置的框图,该装置可以应用于如图4所示的设备中,以实现本说明书的技术方案;所述装置应用于部署有第一区块链节点的第一节点设备,第一区块链节点所属的区块链网络部署有链下计算合约。所述装置包括:第一事件监听单元501,用于监听所述链下计算合约生成的针对协作计算任务的任务事件;数据提供单元502,用于在确定第一区块链节点属于所述协作计算任务对应的数据提供方节点而不属于所述协作计算任务对应的计算提供方节点的情况下,调用第一节点设备部署的代理访问引擎执行所述协作计算任务。其中,所述代理访问引擎用于:在执行所述协作计算任务的过程中,将从第一节点设备读取到的数据传输至所述计算提供方节点所处的第二节点设备上部署的链下计算引擎。
可选的,所述链下计算合约维护有链下计算任务对应的任务完成状态,所述任务完成状态用于描述所述链下计算任务包含的各子任务的完成状态;在所述协作计算任务属 于所述链下计算任务的子任务的情况下,所述第一事件监听单元501具体用于:监听所述链下计算合约在所述任务完成状态满足所述协作计算任务对应的执行条件的情况下生成的针对所述协作计算任务的所述任务事件。
可选的,所述任务完成状态由所述链下计算合约响应于所述链下计算任务对应的交易触发更新,其中,所述链下计算任务对应的交易包括所述链下计算任务对应的任务创建交易,或者任一节点设备在对所述各子任务中任一子任务执行完毕的情况下发起的结果返回交易。
可选的,所述数据提供单元502具体用于:调用第一节点设备预先部署的所述代理访问引擎执行所述协作计算任务;或者,在第一节点设备部署所述代理访问引擎,并调用所述代理访问引擎执行所述协作计算任务。
可选的,所述代理访问引擎用于:响应于所述代理访问引擎被调用,将从第一节点设备读取到的所述任务事件所指示的数据传输至所述链下计算引擎;或者,从第一节点设备读取到所述任务事件所指示的预读取数据,响应于所述链下计算引擎发送的数据访问请求将所述预读取数据传输至所述链下计算引擎;或者,响应于所述链下计算引擎发送的所述数据访问请求,将从第一节点设备读取到的所述数据访问请求所指示的数据传输至所述链下计算引擎。
可选的,还包括:数据提供方节点确定单元503,用于在所述任务事件中记录的所述数据提供方节点的描述信息中包含第一区块链节点的标识信息的情况下,确定第一区块链节点属于所述数据提供方节点。
第一计算提供方节点确定单元504,用于在所述任务事件中记录的所述计算提供方节点的描述信息中不包含第一区块链节点的标识信息、或者第一节点设备上未部署有支持执行所述协作计算任务的链下计算引擎的情况下,确定第一区块链节点不属于所述计算提供方节点。
可选的,还包括:计算提供声明接收单元505,用于在接收到其他节点设备发送的计算提供声明的情况下,将所述其他节点设备上部署的区块链节点归属于所述计算提供方节点,其中,所述计算提供声明由所述其他节点设备在确定所述其他节点设备部署有支持执行所述协作计算任务的链下计算引擎的情况下广播至所述数据提供方节点所处的第一节点设备。
可选的,所述代理访问引擎用于:通过所述链下计算合约维护的所述链下计算引擎对应的存证公钥对从第一节点设备读取到的所述数据进行加密得到加密数据,并将所述加密数据发送至所述链下计算引擎。
可选的,所述链下计算合约维护的所述链下计算引擎对应的存证公钥由第二计算设备发起的密钥更新交易触发更新,所述密钥更新交易由第二计算设备在监听到所述链下计算合约生成的密钥更新事件的情况下发起,所述密钥更新交易携带有第二节点设备响应于所述密钥更新事件获取到的所述链下计算引擎对应的最新公钥。
可选的,所述链下计算合约在部署成功的初始化阶段或响应于密钥重置交易的情况下用于触发生成所述密钥更新事件。
如图6所示,图6是本说明书根据一示例性实施例提供的一种数据处理装置的框图,该装置可以应用于如图4所示的设备中,以实现本说明书的技术方案;所述装置应用于第二节点设备,第二节点设备部署有第二区块链节点,第二区块链节点所属的区块链网络部署有链下计算合约。所述装置包括:第二事件监听单元601,用于监听所述链下计算合约生成的针对协作计算任务的任务事件;数据获取单元602,用于在确定第二区块链节点属于所述协作计算任务的计算提供方节点的情况下,调用第二节点设备部署的链下计算引擎执行所述协作计算任务。其中,所述链下计算引擎用于:在执行所述协作计算任务的过程中,获取所述协作计算任务的数据提供方节点所处的第一节点设备上部署的代理访问引擎从第一节点设备读取到的数据,第一节点设备上部署的第一区块链节点不属于所述计算提供方节点。
可选的,所述任务事件中记录有所述数据提供方节点的描述信息。
可选的,还包括:第二计算提供方节点确定单元603,用于在所述任务事件中记录的所述计算提供方节点的描述信息中包含第二区块链节点的标识信息、或者第二节点设备部署有支持执行所述协作计算任务的链下计算引擎的情况下,确定第二区块链节点属于所述计算提供方节点。
可选的,还包括:计算提供声明广播单元604,用于在确定第二节点设备部署有支持执行所述协作计算任务的链下计算引擎的情况下,将所述计算提供声明广播至所述数据提供方节点所处的第一节点设备,以使第一节点设备将第二区块链节点归属于所述计算提供方节点。
可选的,还包括:链下计算任务执行单元605,用于在确定第二区块链节点同时属于所述计算提供方节点与所述数据提供方节点的情况下,调用所述链下计算引擎执行所述协作计算任务。其中,所述链下计算引擎用于:在执行所述协作计算任务的过程中,获取从第二节点设备读取到的本地数据以及所述代理访问引擎从第一节点设备读取到的数据,第一节点设备上部署的第一区块链节点不属于所述计算提供方节点。
可选的,所述链下计算引擎用于:获取所述代理访问引擎发送的加密数据,所述加密数据由所述代理访问引擎通过所述链下计算合约维护的所述链下计算引擎对应的存证公钥对从第一节点设备读取到的所述数据进行加密得到。
可选的,还包括:存证公钥更新单元606,用于在监听到所述链下计算合约生成的密钥更新事件的情况下,获取所述链下计算引擎对应的最新公钥,通过第二区块链节点向所述链下计算合约发起携带有所述最新公钥的密钥更新交易,以将所述链下计算合约维护的所述链下计算引擎对应的存证公钥更新为所述最新公钥。
可选的,所述链下计算合约在部署成功的初始化阶段或响应于密钥重置交易的情况下用于触发生成所述密钥更新事件。
可选的,所述存证公钥更新单元606具体用于:在监听到所述链下计算合约部署成功的初始化阶段生成的所述密钥更新事件的情况下,获取第二节点设备部署的所有链下计算引擎分别对应的所述最新公钥;或者,在监听到所述链下计算合约响应于所述密钥重置交易而生成的所述密钥更新事件且确定第一节点设备部署有所述密钥更新事件所 指示的目标链下计算引擎的情况下,获取所述目标链下计算引擎对应的所述最新公钥。
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为服务器系统。当然,本发明不排除随着未来计算机技术的发展,实现上述实施例功能的计算机例如可以为个人计算机、膝上型计算机、车载人机交互设备、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。
虽然本说明书一个或多个实施例提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的手段可以包括更多或者更少的操作步骤。实施例中列举的步骤 顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的装置或终端产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境,甚至为分布式数据处理环境)。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、产品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、产品或者设备所固有的要素。在没有更多限制的情况下,并不排除在包括所述要素的过程、方法、产品或者设备中还存在另外的相同或等同要素。例如若使用到第一,第二等词语用来表示名称,而并不表示任何特定的顺序。
为了描述的方便,描述以上装置时以功能分为各种模块分别描述。当然,在实施本说明书一个或多个时可以把各模块的功能在同一个或多个软件和/或硬件中实现,也可以将实现同一功能的模块由多个子模块或子单元的组合实现等。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
本发明是参照根据本发明实施例的方法、装置(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。 计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储、石墨烯存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
本领域技术人员应明白,本说明书一个或多个实施例可提供为方法、系统或计算机程序产品。因此,本说明书一个或多个实施例可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书一个或多个实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本说明书一个或多个实施例可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本本说明书一个或多个实施例,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本说明书的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
以上所述仅为本说明书一个或多个实施例的实施例而已,并不用于限制本本说明书一个或多个实施例。对于本领域技术人员来说,本说明书一个或多个实施例可以有各种更改和变化。凡在本说明书的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在权利要求范围之内。

Claims (23)

  1. 一种数据处理方法,应用于部署有第一区块链节点的第一节点设备,第一区块链节点所属的区块链网络部署有链下计算合约;所述方法包括:
    监听所述链下计算合约生成的针对协作计算任务的任务事件;
    在确定第一区块链节点属于所述协作计算任务对应的数据提供方节点而不属于所述协作计算任务对应的计算提供方节点的情况下,调用第一节点设备部署的代理访问引擎执行所述协作计算任务,所述代理访问引擎用于:在执行所述协作计算任务的过程中,将从第一节点设备读取到的数据传输至所述计算提供方节点所处的第二节点设备上部署的链下计算引擎。
  2. 根据权利要求1所述的方法,所述链下计算合约维护有链下计算任务对应的任务完成状态,所述任务完成状态用于描述所述链下计算任务包含的各子任务的完成状态;在所述协作计算任务属于所述链下计算任务的子任务的情况下,所述监听所述链下计算合约生成的针对协作计算任务的任务事件,包括:
    监听所述链下计算合约在所述任务完成状态满足所述协作计算任务对应的执行条件的情况下生成的针对所述协作计算任务的所述任务事件。
  3. 根据权利要求2所述的方法,所述任务完成状态由所述链下计算合约响应于所述链下计算任务对应的交易触发更新,其中,所述链下计算任务对应的交易包括所述链下计算任务对应的任务创建交易,或者任一节点设备在对所述各子任务中任一子任务执行完毕的情况下发起的结果返回交易。
  4. 根据权利要求1所述的方法,所述调用第一节点设备部署的代理访问引擎执行所述协作计算任务,包括:
    调用第一节点设备预先部署的所述代理访问引擎执行所述协作计算任务;或者,
    在第一节点设备部署所述代理访问引擎,并调用所述代理访问引擎执行所述协作计算任务。
  5. 根据权利要求1所述的方法,所述代理访问引擎用于:
    响应于所述代理访问引擎被调用,将从第一节点设备读取到的所述任务事件所指示的数据传输至所述链下计算引擎;或者,
    从第一节点设备读取到所述任务事件所指示的预读取数据,响应于所述链下计算引擎发送的数据访问请求将所述预读取数据传输至所述链下计算引擎;或者,
    响应于所述链下计算引擎发送的所述数据访问请求,将从第一节点设备读取到的所述数据访问请求所指示的数据传输至所述链下计算引擎。
  6. 根据权利要求1所述的方法,还包括:
    在所述任务事件中记录的所述数据提供方节点的描述信息中包含第一区块链节点的标识信息的情况下,确定第一区块链节点属于所述数据提供方节点;
    在所述任务事件中记录的所述计算提供方节点的描述信息中不包含第一区块链节点的标识信息、或者第一节点设备上未部署有支持执行所述协作计算任务的链下计算引擎的情况下,确定第一区块链节点不属于所述计算提供方节点。
  7. 根据权利要求1所述的方法,还包括:
    在接收到其他节点设备发送的计算提供声明的情况下,将所述其他节点设备上部署的区块链节点归属于所述计算提供方节点,其中,所述计算提供声明由所述其他节点设 备在确定所述其他节点设备部署有支持执行所述协作计算任务的链下计算引擎的情况下广播至所述数据提供方节点所处的第一节点设备。
  8. 根据权利要求1所述的方法,所述代理访问引擎用于:
    通过所述链下计算合约维护的所述链下计算引擎对应的存证公钥对从第一节点设备读取到的所述数据进行加密得到加密数据,并将所述加密数据发送至所述链下计算引擎。
  9. 根据权利要求8所述的方法,所述链下计算合约维护的所述链下计算引擎对应的存证公钥由第二计算设备发起的密钥更新交易触发更新,所述密钥更新交易由第二计算设备在监听到所述链下计算合约生成的密钥更新事件的情况下发起,所述密钥更新交易携带有第二节点设备响应于所述密钥更新事件获取到的所述链下计算引擎对应的最新公钥。
  10. 根据权利要求9所述的方法,所述链下计算合约在部署成功的初始化阶段或响应于密钥重置交易的情况下用于触发生成所述密钥更新事件。
  11. 一种数据处理方法,应用于第二节点设备,第二节点设备部署有第二区块链节点,第二区块链节点所属的区块链网络部署有链下计算合约;所述方法包括:
    监听所述链下计算合约生成的针对协作计算任务的任务事件;
    在确定第二区块链节点属于所述协作计算任务的计算提供方节点的情况下,调用第二节点设备部署的链下计算引擎执行所述协作计算任务,所述链下计算引擎用于:在执行所述协作计算任务的过程中,获取所述协作计算任务的数据提供方节点所处的第一节点设备上部署的代理访问引擎从第一节点设备读取到的数据,第一节点设备上部署的第一区块链节点不属于所述计算提供方节点。
  12. 根据权利要求11所述的方法,所述任务事件中记录有所述数据提供方节点的描述信息。
  13. 根据权利要求11所述的方法,还包括:
    在所述任务事件中记录的所述计算提供方节点的描述信息中包含第二区块链节点的标识信息、或者第二节点设备部署有支持执行所述协作计算任务的链下计算引擎的情况下,确定第二区块链节点属于所述计算提供方节点。
  14. 根据权利要求11所述的方法,还包括:
    在确定第二节点设备部署有支持执行所述协作计算任务的链下计算引擎的情况下,将所述计算提供声明广播至所述数据提供方节点所处的第一节点设备,以使第一节点设备将第二区块链节点归属于所述计算提供方节点。
  15. 根据权利要求11所述的方法,还包括:
    在确定第二区块链节点同时属于所述计算提供方节点与所述数据提供方节点的情况下,调用所述链下计算引擎执行所述协作计算任务,其中,所述链下计算引擎用于:在执行所述协作计算任务的过程中,获取从第二节点设备读取到的本地数据以及所述代理访问引擎从第一节点设备读取到的数据,第一节点设备上部署的第一区块链节点不属于所述计算提供方节点。
  16. 根据权利要求11所述的方法,所述链下计算引擎用于:获取所述代理访问引擎发送的加密数据,所述加密数据由所述代理访问引擎通过所述链下计算合约维护的所述链下计算引擎对应的存证公钥对从第一节点设备读取到的所述数据进行加密得到。
  17. 根据权利要求16所述的方法,还包括:
    在监听到所述链下计算合约生成的密钥更新事件的情况下,获取所述链下计算引擎对应的最新公钥,通过第二区块链节点向所述链下计算合约发起携带有所述最新公钥的密钥更新交易,以将所述链下计算合约维护的所述链下计算引擎对应的存证公钥更新为所述最新公钥。
  18. 根据权利要求17所述的方法,所述链下计算合约在部署成功的初始化阶段或响应于密钥重置交易的情况下用于触发生成所述密钥更新事件。
  19. 根据权利要求18所述的方法,所述在监听到所述链下计算合约生成的密钥更新事件的情况下,获取所述链下计算引擎对应的最新公钥,包括:
    在监听到所述链下计算合约部署成功的初始化阶段生成的所述密钥更新事件的情况下,获取第二节点设备部署的所有链下计算引擎分别对应的所述最新公钥;或者,
    在监听到所述链下计算合约响应于所述密钥重置交易而生成的所述密钥更新事件且确定第一节点设备部署有所述密钥更新事件所指示的目标链下计算引擎的情况下,获取所述目标链下计算引擎对应的所述最新公钥。
  20. 一种数据处理装置,应用于部署有第一区块链节点的第一节点设备,第一区块链节点所属的区块链网络部署有链下计算合约;所述装置包括:
    第一事件监听单元,用于监听所述链下计算合约生成的针对协作计算任务的任务事件;
    数据提供单元,用于在确定第一区块链节点属于所述协作计算任务对应的数据提供方节点而不属于所述协作计算任务对应的计算提供方节点的情况下,调用第一节点设备部署的代理访问引擎执行所述协作计算任务,所述代理访问引擎用于:在执行所述协作计算任务的过程中,将从第一节点设备读取到的数据传输至所述计算提供方节点所处的第二节点设备上部署的链下计算引擎。
  21. 一种数据处理装置,应用于第二节点设备,第二节点设备部署有第二区块链节点,第二区块链节点所属的区块链网络部署有链下计算合约;所述装置包括:
    第二事件监听单元,用于监听所述链下计算合约生成的针对协作计算任务的任务事件;
    数据获取单元,用于在确定第二区块链节点属于所述协作计算任务的计算提供方节点的情况下,调用第二节点设备部署的链下计算引擎执行所述协作计算任务,所述链下计算引擎用于:在执行所述协作计算任务的过程中,获取所述协作计算任务的数据提供方节点所处的第一节点设备上部署的代理访问引擎从第一节点设备读取到的数据,第一节点设备上部署的第一区块链节点不属于所述计算提供方节点。
  22. 一种电子设备,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器通过运行所述可执行指令以实现如权利要求1-19中任一项所述的方法。
  23. 一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如权利要求1-19中任一项所述方法的步骤。
PCT/CN2022/135119 2022-03-31 2022-11-29 一种数据处理方法、装置、电子设备和存储介质 Ceased WO2023185041A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210345176.5 2022-03-31
CN202210345176.5A CN114726858B (zh) 2022-03-31 2022-03-31 一种数据处理方法、装置、电子设备和存储介质

Publications (1)

Publication Number Publication Date
WO2023185041A1 true WO2023185041A1 (zh) 2023-10-05

Family

ID=82241510

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/135119 Ceased WO2023185041A1 (zh) 2022-03-31 2022-11-29 一种数据处理方法、装置、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN114726858B (zh)
WO (1) WO2023185041A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726858B (zh) * 2022-03-31 2024-07-09 蚂蚁区块链科技(上海)有限公司 一种数据处理方法、装置、电子设备和存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110298190A (zh) * 2019-04-19 2019-10-01 矩阵元技术(深圳)有限公司 去中心化多方安全数据处理方法、装置及存储介质
CN111092914A (zh) * 2020-03-18 2020-05-01 支付宝(杭州)信息技术有限公司 访问外部数据的方法及装置
CN112351099A (zh) * 2020-11-06 2021-02-09 北京金山云网络技术有限公司 数据访问方法、装置和服务器
US20210367762A1 (en) * 2020-05-19 2021-11-25 Samsung Sds Co., Ltd. Off-chain data sharing system and method thereof
CN114726858A (zh) * 2022-03-31 2022-07-08 蚂蚁区块链科技(上海)有限公司 一种数据处理方法、装置、电子设备和存储介质
CN114741736A (zh) * 2022-03-31 2022-07-12 蚂蚁区块链科技(上海)有限公司 一种数据处理方法、装置、电子设备和存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388960A (zh) * 2018-10-24 2019-02-26 全链通有限公司 基于区块链的信息共享及安全多方计算模型
US11356424B2 (en) * 2020-06-22 2022-06-07 Paypal, Inc. Database synchronization system in high security zones using blockchain
CN113067900B (zh) * 2021-06-02 2021-09-24 支付宝(杭州)信息技术有限公司 智能合约的部署方法及装置
CN114239035B (zh) * 2021-12-23 2024-09-24 浙江省科技信息研究院 基于区块链的协作流程执行系统及其数据访问控制方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110298190A (zh) * 2019-04-19 2019-10-01 矩阵元技术(深圳)有限公司 去中心化多方安全数据处理方法、装置及存储介质
CN111092914A (zh) * 2020-03-18 2020-05-01 支付宝(杭州)信息技术有限公司 访问外部数据的方法及装置
US20210367762A1 (en) * 2020-05-19 2021-11-25 Samsung Sds Co., Ltd. Off-chain data sharing system and method thereof
CN112351099A (zh) * 2020-11-06 2021-02-09 北京金山云网络技术有限公司 数据访问方法、装置和服务器
CN114726858A (zh) * 2022-03-31 2022-07-08 蚂蚁区块链科技(上海)有限公司 一种数据处理方法、装置、电子设备和存储介质
CN114741736A (zh) * 2022-03-31 2022-07-12 蚂蚁区块链科技(上海)有限公司 一种数据处理方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN114726858B (zh) 2024-07-09
CN114726858A (zh) 2022-07-08

Similar Documents

Publication Publication Date Title
KR102242221B1 (ko) 서비스 데이터 처리 방법 및 디바이스, 및 서비스 처리 방법 및 디바이스
US11201870B2 (en) Using commit tokens to coordinate permissions submissions to address transaction conflict in blockchain systems
WO2018137564A1 (zh) 一种业务处理方法及装置
CN107944773A (zh) 一种业务流程控制方法、装置及存储介质
CN114896639B (zh) 一种数据处理方法、装置、电子设备和存储介质
CN111796864B (zh) 一种数据校验的方法及装置
WO2020024650A1 (zh) 数据处理方法和装置、客户端
WO2024066758A1 (zh) 一种业务处理的方法、装置、存储介质以及电子设备
WO2023185044A1 (zh) 一种数据处理方法、装置、电子设备和存储介质
WO2024092932A1 (zh) 交易执行方法和区块链节点
WO2020024648A1 (zh) 数据处理方法和装置、客户端、服务器
WO2024164742A1 (zh) 一种云存储数据的加密和解密的方法、装置、介质及设备
CN114741736B (zh) 一种数据处理方法、装置、电子设备和存储介质
CN114896635B (zh) 一种数据处理方法、装置、电子设备和存储介质
WO2021239087A1 (zh) 一种数据处理方法、装置、设备及介质
CN114896637A (zh) 一种数据处理方法、装置、电子设备和存储介质
CN114726858B (zh) 一种数据处理方法、装置、电子设备和存储介质
CN114692185A (zh) 数据处理方法及装置
CN114896636B (zh) 一种数据处理方法、装置、电子设备和存储介质
WO2024244342A1 (zh) 区块链中的交易处理方法和区块链节点
CN111062814A (zh) 一种基于区块链的资源转移方法、装置及系统
WO2025025436A1 (zh) 基于区块链系统的数据管理方法和区块链节点
CN115760123A (zh) 基于区块链的数据处理方法和区块链节点
CN114896638A (zh) 一种数据处理方法、装置、电子设备和存储介质
CN110083680B (zh) 一种分布式系统中上下文数据管理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22934859

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22934859

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 22934859

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.03.2025)

122 Ep: pct application non-entry in european phase

Ref document number: 22934859

Country of ref document: EP

Kind code of ref document: A1