CN112347520A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN112347520A
CN112347520A CN202011254954.7A CN202011254954A CN112347520A CN 112347520 A CN112347520 A CN 112347520A CN 202011254954 A CN202011254954 A CN 202011254954A CN 112347520 A CN112347520 A CN 112347520A
Authority
CN
China
Prior art keywords
signature
block chain
data processing
server
chain transaction
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.)
Pending
Application number
CN202011254954.7A
Other languages
Chinese (zh)
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.)
Irootech Technology Co ltd
Original Assignee
Irootech Technology 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 Irootech Technology Co ltd filed Critical Irootech Technology Co ltd
Priority to CN202011254954.7A priority Critical patent/CN112347520A/en
Publication of CN112347520A publication Critical patent/CN112347520A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

The embodiment of the application provides a data processing method and device, and relates to the technical field of data processing. The data processing method is applied to data processing equipment, the data processing equipment is in communication connection with a server, the server is in communication connection with block link point equipment, and the data processing method comprises the following steps: firstly, generating a block chain transaction according to acquired working condition data; and secondly, signing the block chain transaction according to the stored private key to obtain a signature block chain transaction, and sending the signature block chain transaction to block chain node point equipment through a server so that the block chain node point equipment processes the signature block chain transaction according to the stored intelligent contract to obtain a corresponding read-write set. Through the arrangement, the data in midway can be prevented from being tampered, and the safety of data processing is improved.

Description

Data processing method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data processing method and apparatus.
Background
Under the industrial 4.0 background, an industrial device is equipped with a sensor and reports data of the working state and the operating condition of the device (referred to as "working condition data") to a cloud, and the data can be summarized and displayed to related personnel after being processed by real-time stream data, and can be stored in a trusted storage (such as a block chain network) as a certificate of the working of the device.
The inventor finds that, in the prior art, the blockchain transaction is not signature submission performed by the device itself, and the processing logic of the blockchain node is not subjected to multi-party consensus, so that the midway data cannot be guaranteed not to be tampered, and the problem of low data processing safety exists.
Disclosure of Invention
In view of the above, the present application aims to provide a data processing method and apparatus to solve the problems in the prior art.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
a data processing method is applied to data processing equipment, the data processing equipment is in communication connection with a server, the server is in communication connection with block link point equipment, and the data processing method comprises the following steps:
generating a block chain transaction according to the acquired working condition data;
and signing the block chain transaction according to a stored private key to obtain a signature block chain transaction, and sending the signature block chain transaction to the block chain node equipment through the server so that the block chain node equipment processes the signature block chain transaction according to a stored intelligent contract to obtain a corresponding read-write set.
In a preferred option of the embodiment of the present application, the data processing method further includes:
receiving, by the server, a first signature read-write set obtained by performing first signature processing on the read-write set by the blockchain node device, and performing second signature processing on the first signature read-write set to obtain a signature result;
and sending the signature result to the block chain node equipment through the server so as to enable the block chain node equipment to store the signature result.
In a preferred option of the embodiment of the present application, the step of performing a second signature process on the first signature read-write set to obtain a signature result includes:
decoding the first signature read-write set to obtain a corresponding first signature block chain transaction;
and performing second signature processing on the first signature block chain transaction to obtain a signature result.
The embodiment of the present application further provides a data processing apparatus, which is applied to a data processing device, the data processing device is in communication connection with a server, the server is in communication connection with a block link point device, and the data processing apparatus includes:
the block chain transaction generation module is used for generating a block chain transaction according to the acquired working condition data;
and the signature processing module is used for performing signature processing on the block chain transaction according to a stored private key to obtain a signature block chain transaction, and sending the signature block chain transaction to the block chain node equipment through the server so that the block chain node equipment processes the signature block chain transaction according to a stored intelligent contract to obtain a corresponding read-write set.
In a preferred option of the embodiment of the present application, the data processing apparatus further includes:
the second signature processing module is used for receiving a first signature read-write set obtained by performing first signature processing on the read-write set by the block chain node equipment through the server, and performing second signature processing on the first signature read-write set to obtain a signature result;
and the signature result sending module is used for sending the signature result to the block link point equipment through the server so as to enable the block link point equipment to store the signature result.
In a preferred option of this embodiment, the second signature processing module is specifically configured to decode the first signature read-write set to obtain a corresponding first signature block chain transaction, and perform second signature processing on the first signature block chain transaction to obtain a signature result.
The embodiment of the application further provides a data processing method, which is applied to the block link point device, wherein the block link point device is in communication connection with a server, the server is in communication connection with the data processing device, and the data processing method comprises the following steps:
storing the intelligent contract sent by the server;
and receiving a signature block chain transaction obtained by the data processing equipment performing signature processing on the block chain transaction according to a stored private key through the server, and processing the signature block chain transaction according to the intelligent contract to obtain a corresponding read-write set.
In a preferred option of this embodiment of the present application, the step of processing the signature block chain transaction according to the intelligent contract to obtain a corresponding read-write set includes:
decoding the signature block chain transaction to obtain corresponding working condition data;
and processing the working condition data according to processing logic included in the intelligent contract to obtain the read-write set.
The embodiment of the present application further provides a data processing apparatus, which is applied to block link point devices, where the block link point devices are in communication connection with a server, the server is in communication connection with the data processing device, and the data processing apparatus includes:
the intelligent contract storage module is used for storing the intelligent contract sent by the server;
and the processing module is used for receiving a signature block chain transaction obtained by the data processing equipment performing signature processing on the block chain transaction according to a stored private key through the server, and processing the signature block chain transaction according to the intelligent contract to obtain a corresponding read-write set.
In a preferred option of this embodiment, the processing module is specifically configured to decode the signature block chain transaction to obtain corresponding operating condition data, and process the operating condition data according to processing logic included in the intelligent contract to obtain the read-write set.
According to the data processing method and device provided by the embodiment of the application, the block chain transaction is signed through a private key stored in the data processing equipment to obtain the signature block chain transaction, and the signature block chain transaction is sent to the block chain node equipment, so that the block chain node equipment processes the signature block chain transaction according to an intelligent contract with multiple common identities, and therefore the problem that data processing safety is low due to the fact that midway data is not tampered, the block chain transaction is not submitted by signature of the equipment in the prior art, processing logic of the block chain node is not subjected to the multiple common identities, and the midway data cannot be tampered is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flow chart of a data processing method provided in the prior art.
Fig. 2 is a block diagram of a data processing system according to an embodiment of the present application.
Fig. 3 is a block diagram of a data processing device according to an embodiment of the present application.
Fig. 4 is a schematic flowchart of a data processing method according to an embodiment of the present application.
Fig. 5 is another schematic flow chart of the data processing method according to the embodiment of the present application.
Fig. 6 is another schematic flow chart of the data processing method according to the embodiment of the present application.
Fig. 7 is another schematic flow chart of a data processing method according to an embodiment of the present application.
Fig. 8 is another schematic flow chart of a data processing method according to an embodiment of the present application.
Fig. 9 is another schematic flow chart of a data processing method according to an embodiment of the present application.
Fig. 10 is another schematic flow chart of a data processing method according to an embodiment of the present application.
Icon: 10-a data processing system; 100-a data processing device; 110-a network port; 120-a first processor; 130-a communication bus; 140-a first storage medium; 150-interface; 200-a server; 300-block link point device.
Detailed Description
With reference to fig. 1, a flow of data processing in the prior art is shown as follows:
1. the equipment uploads the working condition data to a message queue based on the MQTT protocol through the MQTT protocol;
2. subscribing the working condition message in the message queue through an MQTT message source during the real-time processing and running of the data;
3, the MQTT message source decodes the working condition data and transmits the working condition data to a real-time processing operator;
4. the real-time processing operator processes the working condition data, sends the working condition of the processing operator to a block chain leakage contained in the real-time processing task and used as a block chain client, and initiates a block chain transaction;
5. the block chain is missed to be registered and logged in through the block chain member service to become a legal client of the block chain;
6. constructing a block chain transaction request by a block chain missing device and submitting the block chain transaction request to a block chain link point;
7. the block chain node performs simulation operation on the block chain transaction by using the data of the current block chain state database through an intelligent contract to obtain a read-write set generated by the block chain transaction, and the read-write set is signed by using a private key of the node and then returned to the block chain leakage (first section submission) of the real-time processing task;
8. after block chain missing of the real-time processing task is collected to a block chain transaction read-write set which is simulated and signed by each node of the block chain, the block chain transaction missing is summarized, and the signed transaction is submitted to block chain sequencing service;
9. the block chain sorting service sorts the block chain transactions, generates blocks, distributes the blocks to each block chain node, and submits the blocks to the local block chain account book (second stage submission).
However, in the prior art, the blockchain transaction is not submitted by the device itself, but generated by the cloud agent for streaming data processing, and cannot guarantee that the midway ( steps 1, 2, 3, and 4 in the figure) is not tampered, the part identified by the blockchain nodes in common is the result after real-time processing, the logic of real-time processing is not part of the intelligent contract, and the common identification of all blockchain nodes is not obtained, so that the security of data processing is low.
In order to solve the foregoing technical problems, embodiments of the present application provide a data processing method and apparatus, and a technical solution of the present application is described below through possible implementation manners.
For purposes of making the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application will be described in detail below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In order to enable a person skilled in the art to make use of the present disclosure, the following embodiments are given. It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Applications of the system or method of the present application may include web pages, plug-ins for browsers, client terminals, customization systems, internal analysis systems, or artificial intelligence robots, among others, or any combination thereof.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
FIG. 2 is a schematic diagram of exemplary hardware and software components of data processing system 10 that may implement the concepts of the present application, according to some embodiments of the present application. The data processing system 10 may include a data processing apparatus 100, a server 200, and a block-node apparatus 300.
Wherein, the data processing device 100 is connected with the server 200 in communication, and the server 200 is connected with the block link point device 300 in communication.
As for the data processing device 100, it should be noted that the specific structure of the data processing device is not limited, and may be set according to the actual application requirements. For example, in an alternative example, FIG. 3 shows a schematic diagram of exemplary hardware and software components of a data processing device 100, which may implement the concepts of the present application, according to some embodiments of the present application. The data processing device 100 may include a network port 110 connected to a network, one or more first processors 120 for executing program instructions, a communication bus 130, and a first storage medium 140 of a different form, such as a disk, ROM, or RAM, or any combination thereof. Illustratively, the data processing device 100 may also include program instructions stored in ROM, RAM, or other types of non-transitory storage media, or any combination thereof. The method of the present application may be implemented in accordance with these program instructions. The data processing device 100 may also include Input/Output (I/O) interfaces 150 with other Input/Output devices (e.g., keyboard, display).
In some embodiments, the first processor 120 may process information and/or data related to the blockchain to perform one or more functions described herein. In some embodiments, the first processor 120 may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). Merely by way of example, the first Processor 120 may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction Set Processor (ASIP), a Graphics Processing Unit (GPU), a Physical Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a controller, a microcontroller Unit, a Reduced Instruction Set computer (Reduced Instruction Set Computing, RISC), a microprocessor, or the like, or any combination thereof.
The first processor 120 in the data processing device 100 may be a general purpose computer or a set purpose computer, both of which may be used to implement the data processing method of the present application. Although only a single computer is shown, for convenience, the functions described herein may be implemented in a distributed fashion across multiple similar platforms to balance processing loads.
For ease of illustration, only one processor is depicted in data processing apparatus 100. It should be noted, however, that the data processing device 100 in the present application may also comprise a plurality of processors, and thus the steps performed by one processor described in the present application may also be performed by a plurality of processors in combination or individually. For example, if the processors of the data processing device 100 perform step a and step B, it should be understood that step a and step B may also be performed by two different processors together or performed separately in one processor. For example, a first processor performs step A and a second processor performs step B, or both a first processor and a second processor perform steps A and B.
The network may be used for the exchange of information and/or data. In some embodiments, one or more components in data processing device 100 may send information and/or data to other components. For example, the data processing apparatus 100 may acquire a signal via a network. Merely by way of example, the Network may include a Wireless Network, a telecommunications Network, an intranet, the internet, a Local Area Network (LAN), a Wide Area Network (WAN), a Wireless Local Area Network (WLAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a bluetooth Network, a ZigBee Network, or a Near Field Communication (NFC) Network, among others, or any combination thereof.
In some embodiments, the network may include one or more network access points. For example, the network may include wired or wireless network access points, such as base stations and/or network switching nodes, through which one or more components of the data processing device 100 may connect to the network to exchange data and/or information.
For the server 200, it should be noted that the specific structure of the server 200 is not limited, and may be set according to the actual application requirement. For example, in some embodiments, the server 200 may be a single server or a group of servers. The server group may be centralized or distributed (e.g., server 200 may be a distributed system). In some embodiments, the server 200 may be local or remote to the terminal. For example, the server 200 may access information and/or data stored in the data processing device 100 via a network. As another example, a server may be directly connected to data processing device 100 to access stored information and/or data. In some embodiments, the server may be implemented on a cloud platform. By way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a resilient cloud, a community cloud (community cloud), a distributed cloud, a cross-cloud (inter-cloud), a multi-cloud (multi-cloud), and the like, or any combination thereof. In some embodiments, server 200 may be implemented on data processing device 100 with one or more of the components shown in FIG. 2 in the present application. In some embodiments, the server 200 may include a processor. The processor may process information and/or data related to the service request to perform one or more of the functions described herein.
A database may be included in server 200 that may store data and/or instructions. In some embodiments, the database may store data obtained from the data processing device 100. In some embodiments, the database may store data and/or instructions for the exemplary methods described herein. In some embodiments, the database may include mass storage, removable storage, volatile Read-write Memory, or Read-Only Memory (ROM), among others, or any combination thereof. In some embodiments, the database may be implemented on a cloud platform. By way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, cross-cloud, multi-cloud, elastic cloud, or the like, or any combination thereof.
In some embodiments, a database may be connected to a network to communicate with one or more components in data processing system 10 (e.g., data processing apparatus 100 and block-node apparatus 300). One or more components in data processing system 10 may access data or instructions stored in a database via a network. In some embodiments, the database may be directly connected to one or more components in data processing system 10 (e.g., data processing apparatus 100 and block-link point apparatus 300). Alternatively, in some embodiments, the database may also be part of the data processing device 100.
As for the block link point device 300, it should be noted that the block link point device 300 may have the same or different structure as the data processing device 100 as long as it is located in the same block chain.
With reference to fig. 4, an embodiment of the present application further provides a data processing method, which may be applied to the data processing apparatus 100 shown in fig. 3, where the data processing method may include:
and step S410, generating a block chain transaction according to the acquired working condition data.
That is, the data processing apparatus 100 generates a blockchain transaction directly according to the uploaded operating condition data, and the write request of the blockchain is also called the blockchain transaction.
Step S420, perform signature processing on the blockchain transaction according to the stored private key to obtain a signature blockchain transaction, and send the signature blockchain transaction to the blockchain node device 300 through the server 200, so that the blockchain node device 300 processes the signature blockchain transaction according to the stored intelligent contract to obtain a corresponding read-write set.
The intelligent contract is processing logic for processing the blockchain transaction through multi-party consensus of the blockchain node equipment, and the read-write set represents a processing result obtained by processing the blockchain transaction.
By the method, the block chain transaction is signed by the private key stored in the data processing device 100 to obtain the signature block chain transaction, and the signature block chain transaction is sent to the block chain node device 300, so that the block chain node device 300 processes the signature block chain transaction according to the intelligent contract with multi-party consensus, and thus the problem that in the prior art, the midway data is not tampered, the problem that in the prior art, the block chain transaction is not signed and submitted by the device, the processing logic of the block chain node is not subjected to multi-party consensus, the midway data cannot be tampered, and the data processing safety is low is caused.
Further, after obtaining the read-write set corresponding to the blockchain transaction, the data processing method further includes a step of performing signature processing on the read-write set by the blockchain node device 300 and the data processing device 100, respectively, to perform multiple authentications on the blockchain transaction. Therefore, on the basis of fig. 4, fig. 5 is a schematic flowchart of another data processing method provided in the embodiment of the present application, referring to fig. 5, after step S420, the data processing method may further include:
step S430, the server 200 receives a first signature read-write set obtained by performing a first signature process on the read-write set by the blockchain node device 300, and performs a second signature process on the first signature read-write set to obtain a signature result.
That is to say, the block link point device 300 performs the first signature processing on the read-write set according to the stored private key, obtains the first signature read-write set with the certificate of the block link point device 300, and sends the first signature read-write set to the server 200. The server 200 sends the first signature read-write set to the data processing device 100, and the data processing device 100 performs second signature processing on the first signature read-write set according to the stored private key to obtain a signature result.
In step S440, the server 200 sends the signature result to the blockchain node device 300, so that the blockchain node device stores the signature result.
That is, the data processing apparatus 100 transmits the signature result to the server 200, the server 200 transmits the signature result to the block chain node apparatus 300, and the block chain node apparatus 300 stores the signature result in the block chain ledger on the block chain node apparatus 300.
For step S430, it should be noted that, the specific manner of obtaining the signature result is not limited, and may be set according to the actual application requirement. For example, in an alternative example, step S430 may include a step of a decoding process. Therefore, on the basis of fig. 5, fig. 6 is a schematic flowchart of another data processing method provided in the embodiment of the present application, and referring to fig. 6, step S430 may include:
and step S431, decoding the first signature read-write set to obtain a corresponding first signature block chain transaction.
Step S432, perform a second signature process on the first signature block chain transaction to obtain a signature result.
That is, the data processing apparatus 100 performs the second signature processing on the first signature block chain transaction according to the stored private key, and obtains a signature result with the certificate of the data processing apparatus 100, where the signature result includes the certificates of the block chain node apparatus 300 and the data processing apparatus 100, and multiple authentications are completed.
Further, an embodiment of the present application further provides a data processing apparatus, where functions implemented by the data processing apparatus correspond to steps executed by the foregoing method. The data processing device may be understood as a processor of the data processing apparatus 100, or may be understood as a component which is independent from the data processing apparatus 100 or a processor and implements the functions of the present application under the control of the data processing apparatus 100. The data processing device can comprise a block chain transaction generation module and a signature processing module.
And the block chain transaction generation module is used for generating a block chain transaction according to the acquired working condition data.
And the signature processing module is used for performing signature processing on the block chain transaction according to the stored private key to obtain a signature block chain transaction, and sending the signature block chain transaction to the block chain link point equipment through the server so that the block chain link point equipment processes the signature block chain transaction according to the stored intelligent contract to obtain a corresponding read-write set.
Further, the data processing apparatus may further include a second signature processing module and a signature result transmitting module.
And the second signature processing module is used for receiving a first signature read-write set obtained by performing first signature processing on the read-write set by the block link point equipment through the server, and performing second signature processing on the first signature read-write set to obtain a signature result.
And the signature result sending module is used for sending the signature result to the block link point equipment through the server so as to enable the block link point equipment to store the signature result.
The second signature processing module is specifically configured to decode the first signature read-write set to obtain a corresponding block chain transaction, and perform second signature processing on the block chain transaction to obtain a signature result.
With reference to fig. 7, an embodiment of the present application further provides a data processing method, which may be applied to the block link point device 300 shown in fig. 2, where the data processing method may include:
and step S710, storing the intelligent contract sent by the server.
That is, the server 200 deploys the smart contracts onto the block-link point devices 300. It should be noted that, in the deployment phase of the smart contract, the service installation block chain smart contract needs to be deployed through the trusted real-time processing task on the server 200, and in order to ensure that the smart contract and the real-time processing task are not tamper-able, the installation process is as shown in fig. 8.
In detail, the trusted real-time processing task deployment service is used as a blockchain client, and can be registered and logged in through blockchain member services to become a legal blockchain client. The trusted real-time processing task deployment service installs an intelligent contract with real-time processing tasks on the block chain nodes, and the real-time processing tasks are deployed to the data real-time processing operation in the intelligent contract deployment process, so that the block chain node equipment 300 can process signature block chain transactions according to the real-time processing tasks in the intelligent contract with multiple common recognitions, and the problem that the processing logic of the block chain nodes in the prior art is not subjected to multiple common recognitions, the midway data cannot be guaranteed not to be tampered, and the data processing safety is low is solved.
Step S720, receiving, by the server 200, a signature blockchain transaction obtained by the data processing device 100 performing signature processing on the blockchain transaction according to the stored private key, and processing the signature blockchain transaction according to the intelligent contract to obtain a corresponding read-write set.
By the method, the block chain transaction is signed by the private key stored in the data processing device 100 to obtain the signature block chain transaction, and the signature block chain transaction is sent to the block chain node device 300, so that the block chain node device 300 processes the signature block chain transaction according to the intelligent contract with multi-party consensus, and thus the problem that in the prior art, the midway data is not tampered, the problem that in the prior art, the block chain transaction is not signed and submitted by the device, the processing logic of the block chain node is not subjected to multi-party consensus, the midway data cannot be tampered, and the data processing safety is low is caused.
For step S720, it should be noted that the specific steps for obtaining the corresponding read-write set are not limited, and may be set according to the actual application requirements. For example, in an alternative example, step S720 may include a step of a decoding process. Therefore, on the basis of fig. 7, fig. 9 is a schematic flowchart of another data processing method provided in the embodiment of the present application, and referring to fig. 9, step S720 includes:
step S721, decoding the signature block chain transaction to obtain corresponding operating condition data.
Step S722, processing the working condition data according to the processing logic included in the intelligent contract to obtain a read-write set.
In detail, it should be noted that the intelligent contract may include a first processing logic and a second processing logic corresponding to the real-time processing task, where the second processing logic is configured to process the working condition data according to the real-time processing operator, and the first processing logic is configured to perform a simulation operation on the processed working condition data by using data of the current block chain state database to obtain a read-write set.
Further, an embodiment of the present application further provides a data processing apparatus, where functions implemented by the data processing apparatus correspond to steps executed by the foregoing method. The data processing device may be understood as a processor of the above block chain node device 300, or may be understood as a component which is independent from the above block chain node device 300 or a processor and realizes the functions of the present application under the control of the block chain node device 300. The data processing device can comprise an intelligent contract storage module and a processing module.
The intelligent contract storage module is used for storing the intelligent contract sent by the server.
And the processing module is used for receiving a signature block chain transaction obtained by the data processing equipment performing signature processing on the block chain transaction according to the stored private key through the server, and processing the signature block chain transaction according to the intelligent contract to obtain a corresponding read-write set.
The processing module is specifically configured to decode the signature block chain transaction to obtain corresponding operating condition data, and process the operating condition data according to processing logic included in the intelligent contract to obtain a read-write set.
In the embodiment of the present application, after the intelligent contract is installed, the working condition data can be reported, and a specific flow is shown in fig. 10:
1. the device (the data processing device 100 described above) may directly construct the operating condition data to be uploaded as a block chain transaction request, sign the request using a certificate and a private key issued by an embedded block chain member service, obtain a signed block chain transaction, and then upload the signed block chain transaction to a message queue based on the MQTT protocol (the first segment is submitted to start);
the MQTT-block chain bridge service subscribes a signature block chain request uploaded by a device from an MQTT message queue;
the MQTT-block chain bridge service registers and logs in through a block chain member service to become a legal client of the block chain;
the MQTT-blockchain bridge service, as a blockchain client agent, forwards a blockchain transaction request with a working condition load signed between devices to each blockchain node (the above-mentioned blockchain node device 300) in the blockchain network, and initiates the blockchain transaction request;
5. the block chain link point decodes the received block chain transaction request into working condition data, and transmits the working condition data to a working condition real-time processing task deployed in the data real-time processing operation in a Remote Procedure Call (RPC) mode;
6. after receiving the working condition data through the remote process calling source, the working condition real-time processing task transmits the decoding to the real-time processing operator;
7. the real-time processing operator processes the working condition data and sends the processed working condition data to a remote procedure call sink in the real-time processing task;
8. remote procedure call is missed, and the processed working condition data is returned to the intelligent contract;
9. the intelligent contract utilizes the data of the current block chain state database to carry out simulation operation on the processed working condition data to obtain a corresponding read-write set, and the read-write set is signed by the private key of the block chain node and then returned to MQTT-block chain bridge service (the first section is submitted to be finished);
the MQTT-block chain bridge service collects the read-write sets simulated and signed by each node of the block chain, summarizes the read-write sets and sends the read-write sets to an MQTT message queue (the second stage of submission begins);
11. the device subscribes to a first signature read-write set transmitted by the MQTT-block chain bridge service, and submits a load signature to the first signature read-write set by using a private key of the device after decoding to obtain a signature result;
12. the device uploads the signed block chain transaction (signature result) submission to the MQTT message queue;
MQTT-blockchain bridge service subscribes to device-signed blockchain transaction commit payload;
the MQTT-block chain bridge service submits signed transactions to a block chain ordering service;
15. and the block chain sorting service sorts the block chain transaction, generates a block and distributes the block to each block chain node, and submits the block chain transaction to a local block chain account book (the second stage of submission is finished).
Wherein, message queue, MQTT-block chain bridge service, block chain member service and block chain sequencing service based on MQTT protocol are arranged on the server 200. When distributing the signature result, the server 200 performs sorting processing on the signature result through the blockchain sorting service, and distributes the sorted signature result to each blockchain link point device 300.
In summary, according to the data processing method and apparatus provided in the embodiment of the present application, a private key stored in a device itself is used to sign a block chain transaction to obtain a signature block chain transaction, and the signature block chain transaction is sent to a block chain node device, so that the block chain node device processes the signature block chain transaction according to an intelligent contract commonly recognized by multiple parties, thereby ensuring that data in the midway is not tampered, and avoiding the problems that the block chain transaction is not submitted by the device itself in the prior art, the processing logic of the block chain node is not commonly recognized by multiple parties, the data in the midway cannot be guaranteed to be tampered, and the security of data processing is low.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A data processing method is applied to a data processing device, the data processing device is in communication connection with a server, the server is in communication connection with a block link node device, and the data processing method comprises the following steps:
generating a block chain transaction according to the acquired working condition data;
and signing the block chain transaction according to a stored private key to obtain a signature block chain transaction, and sending the signature block chain transaction to the block chain node equipment through the server so that the block chain node equipment processes the signature block chain transaction according to a stored intelligent contract to obtain a corresponding read-write set.
2. The data processing method of claim 1, wherein the data processing method further comprises:
receiving, by the server, a first signature read-write set obtained by performing first signature processing on the read-write set by the blockchain node device, and performing second signature processing on the first signature read-write set to obtain a signature result;
and sending the signature result to the block chain node equipment through the server so as to enable the block chain node equipment to store the signature result.
3. The data processing method of claim 2, wherein said step of performing a second signature process on said first signed read-write set to obtain a signature result comprises:
decoding the first signature read-write set to obtain a corresponding first signature block chain transaction;
and performing second signature processing on the first signature block chain transaction to obtain a signature result.
4. A data processing apparatus, applied to a data processing device, the data processing device being communicatively connected to a server, the server being communicatively connected to a block-link node device, the data processing apparatus comprising:
the block chain transaction generation module is used for generating a block chain transaction according to the acquired working condition data;
and the signature processing module is used for performing signature processing on the block chain transaction according to a stored private key to obtain a signature block chain transaction, and sending the signature block chain transaction to the block chain node equipment through the server so that the block chain node equipment processes the signature block chain transaction according to a stored intelligent contract to obtain a corresponding read-write set.
5. The data processing apparatus of claim 4, wherein the data processing apparatus further comprises:
the second signature processing module is used for receiving a first signature read-write set obtained by performing first signature processing on the read-write set by the block chain node equipment through the server, and performing second signature processing on the first signature read-write set to obtain a signature result;
and the signature result sending module is used for sending the signature result to the block link point equipment through the server so as to enable the block link point equipment to store the signature result.
6. The data processing apparatus according to claim 5, wherein the second signature processing module is specifically configured to perform decoding processing on the first signature read-write set to obtain a corresponding first signature block chain transaction, and perform second signature processing on the first signature block chain transaction to obtain a signature result.
7. A data processing method is applied to a block chain node device, the block chain node device is in communication connection with a server, and the server is in communication connection with a data processing device, and the data processing method comprises the following steps:
storing the intelligent contract sent by the server;
and receiving a signature block chain transaction obtained by the data processing equipment performing signature processing on the block chain transaction according to a stored private key through the server, and processing the signature block chain transaction according to the intelligent contract to obtain a corresponding read-write set.
8. The data processing method of claim 7, wherein the step of processing the signature blockchain transaction according to the intelligent contract to obtain a corresponding read-write set comprises:
decoding the signature block chain transaction to obtain corresponding working condition data;
and processing the working condition data according to processing logic included in the intelligent contract to obtain the read-write set.
9. A data processing apparatus, applied to a blockchain node device, wherein the blockchain node device is in communication connection with a server, and the server is in communication connection with a data processing device, the data processing apparatus comprising:
the intelligent contract storage module is used for storing the intelligent contract sent by the server;
and the processing module is used for receiving a signature block chain transaction obtained by the data processing equipment performing signature processing on the block chain transaction according to a stored private key through the server, and processing the signature block chain transaction according to the intelligent contract to obtain a corresponding read-write set.
10. The data processing apparatus according to claim 9, wherein the processing module is specifically configured to decode the signature block chain transaction to obtain corresponding operating condition data, and process the operating condition data according to processing logic included in the intelligent contract to obtain the read/write set.
CN202011254954.7A 2020-11-11 2020-11-11 Data processing method and device Pending CN112347520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011254954.7A CN112347520A (en) 2020-11-11 2020-11-11 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011254954.7A CN112347520A (en) 2020-11-11 2020-11-11 Data processing method and device

Publications (1)

Publication Number Publication Date
CN112347520A true CN112347520A (en) 2021-02-09

Family

ID=74363398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011254954.7A Pending CN112347520A (en) 2020-11-11 2020-11-11 Data processing method and device

Country Status (1)

Country Link
CN (1) CN112347520A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108880803A (en) * 2018-07-12 2018-11-23 佛山伊苏巨森科技有限公司 A kind of method and system signed using digital signature to block chain affairs
US10243748B1 (en) * 2018-06-28 2019-03-26 Jonathan Sean Callan Blockchain based digital certificate provisioning of internet of things devices
CN109697217A (en) * 2018-12-06 2019-04-30 成都佰纳瑞信息技术有限公司 A kind of block chain transaction methods
CN109981679A (en) * 2019-04-08 2019-07-05 上海点融信息科技有限责任公司 The method and apparatus of affairs are executed in block chain network
US20200204358A1 (en) * 2018-12-20 2020-06-25 International Business Machines Corporation File redaction database system
CN111475309A (en) * 2019-01-24 2020-07-31 北京京东尚科信息技术有限公司 Data processing method, device, block chain service system and storage medium
CN111626851A (en) * 2020-04-02 2020-09-04 国金区块链科技(杭州)有限公司 Transaction data management system based on block chain technology and management method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10243748B1 (en) * 2018-06-28 2019-03-26 Jonathan Sean Callan Blockchain based digital certificate provisioning of internet of things devices
CN108880803A (en) * 2018-07-12 2018-11-23 佛山伊苏巨森科技有限公司 A kind of method and system signed using digital signature to block chain affairs
CN109697217A (en) * 2018-12-06 2019-04-30 成都佰纳瑞信息技术有限公司 A kind of block chain transaction methods
US20200204358A1 (en) * 2018-12-20 2020-06-25 International Business Machines Corporation File redaction database system
CN111475309A (en) * 2019-01-24 2020-07-31 北京京东尚科信息技术有限公司 Data processing method, device, block chain service system and storage medium
CN109981679A (en) * 2019-04-08 2019-07-05 上海点融信息科技有限责任公司 The method and apparatus of affairs are executed in block chain network
CN111626851A (en) * 2020-04-02 2020-09-04 国金区块链科技(杭州)有限公司 Transaction data management system based on block chain technology and management method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李光斗: "《区块链财富革命》", 30 November 2018, 湖南教育出版社, pages: 51 - 54 *
王迎帅: "《区块链金融:智能社会与行业场景应用实战(图解版)》", 30 June 2020, 中国铁道出版社有限公司, pages: 18 - 19 *

Similar Documents

Publication Publication Date Title
Li et al. Coding for distributed fog computing
CN109246176B (en) Multi-controller synchronization method and device based on block chain in software defined network
CN111182025B (en) Message processing method, device, server and storage medium
EP4216077A1 (en) Blockchain network-based method and apparatus for data processing, and computer device
JP2020514854A (en) Computer-implemented system and method for enabling complex functionality on a blockchain while maintaining security-based restrictions on script size and opcode limits
CN113347164A (en) Block chain-based distributed consensus system, method, device and storage medium
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN110910143A (en) Identity identification generation method, device, related node and medium
CN110022279A (en) The method and system of authentication in a kind of micro services system
CN112347520A (en) Data processing method and device
CN102957539A (en) Digital signature management and verification system and method for distributed software
EP4042660B1 (en) Messaging in distributed networks
US20230266994A1 (en) Migration of computational units in distributed networks
KR20230075456A (en) Operation of Distributed Deterministic Networks
Manju Bala et al. Blockchain-based iot architecture for software-defined networking
CN114723394A (en) Credit granting flow configuration method based on artificial intelligence and related equipment
US20220377133A1 (en) Read access for computational results of a distributed network
CN113628052A (en) Block chain asset and contract processing method, system and device based on prediction machine
CN114979128A (en) Cross-region communication method and device and electronic equipment
CN102301652A (en) Message switching
CN117014445B (en) Block chain-based data processing method, device, equipment and storage medium
Jian et al. Cloud Based Software Computing as a Service in Hybrid Evolution Algorithm with Feedback Assistance
Costa et al. Boinc-Mr: Mapreduce in a volunteer environment
CN104618494A (en) Method for configuring service rules of intelligent storage cabinet online
WO2019199205A1 (en) Method of scaling a distributed information system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 303-309, No.3, Pazhou Avenue East Road, Haizhu District, Guangzhou City, Guangdong Province 510000

Applicant after: Shugen Internet Co.,Ltd.

Address before: 510000 Unit 12-30, Floor 4, West Port, Guangzhou International Media Port Office Building, 218 and 220 Yuanjiangxi Road, Haizhu District, Guangzhou City, Guangdong Province (Office only)

Applicant before: IROOTECH TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information