CN110633389A - Processing method, device and system of block chain data and electronic equipment - Google Patents

Processing method, device and system of block chain data and electronic equipment Download PDF

Info

Publication number
CN110633389A
CN110633389A CN201810551669.8A CN201810551669A CN110633389A CN 110633389 A CN110633389 A CN 110633389A CN 201810551669 A CN201810551669 A CN 201810551669A CN 110633389 A CN110633389 A CN 110633389A
Authority
CN
China
Prior art keywords
block chain
data
service data
blockchain
notification message
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
CN201810551669.8A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810551669.8A priority Critical patent/CN110633389A/en
Publication of CN110633389A publication Critical patent/CN110633389A/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

Abstract

The embodiment of the invention provides a method, a device and a system for processing block chain data and electronic equipment, wherein the system comprises: the system comprises a processing node, a processing device and a data platform, wherein the processing node is arranged in a block chain network and is used for managing and/or generating a block chain, the processing device is used for processing block chain data which is interactively connected with the processing node, and the data platform is used for storing service data; the processing device of the block chain data is used for acquiring the service data stored in the block chain through the processing node; and storing the service data into the data platform in a preset storage mode for inquiry. The scheme of the embodiment of the invention can conveniently and rapidly inquire the block data in the block chain.

Description

Processing method, device and system of block chain data and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, and an electronic device for processing block chain data.
Background
Currently, for an acquisition method of formed block chain data, a data user queries whether new block data is generated on a block chain at intervals, reads the new data if the new block data is generated, and ignores the query result if the new block data is not generated. When the block data stored before needs to be searched from the block chain, all the block data on the block chain must be read for searching.
The above solution has at least three disadvantages:
1. causing a delay in the reading of new data;
2. if no new data exists, the problem of resource waste exists in each inquiry;
3. if the data in the blockchain is too large, the processing of the data is very time-consuming, and the query is time-consuming and resource-consuming.
Disclosure of Invention
The invention provides a processing method, a device and a system of block chain data and electronic equipment, which can conveniently and quickly inquire the block data in a block chain.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a method for processing blockchain data is provided, including:
acquiring service data stored in a block chain;
and storing the service data into a data platform in a preset storage mode for inquiry.
In a second aspect, an apparatus for processing blockchain data is provided, including:
the data acquisition module is used for acquiring the service data stored in the block chain;
and the data storage module is used for storing the service data into a data platform in a preset storage mode for inquiry.
In a third aspect, a system for processing blockchain data is provided, including: the system comprises a processing node, a processing device and a data platform, wherein the processing node is arranged in a block chain network and is used for managing and/or generating a block chain, the processing device is used for processing block chain data which is interactively connected with the processing node, and the data platform is used for storing service data;
the processing means of the blockchain data is configured to,
acquiring the service data stored in the block chain through the processing node;
and storing the service data into the data platform in a preset storage mode.
In a fourth aspect, an electronic device is provided, comprising:
a memory for storing a program;
a processor, coupled to the memory, for executing the program for:
acquiring service data stored in a block chain;
and storing the service data into a data platform in a preset storage mode for inquiry.
The invention provides a method, a device and a system for processing block chain data and electronic equipment, which are used for acquiring service data stored in a block chain while generating the block chain; and then the service data is stored in another data platform in a preset storage mode, so that when the data needs to be inquired from the block chain, the corresponding service data can be conveniently inquired from the data platform.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a block chain data processing logic diagram according to an embodiment of the present invention;
FIG. 2 is a block chain data processing system according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for processing blockchain data according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for processing blockchain data according to an embodiment of the present invention;
fig. 5 is a flow chart of a processing method of block chain data according to an embodiment of the present invention;
FIG. 6 is a first block chain data processing apparatus according to an embodiment of the present invention;
FIG. 7 is a block chain data processing apparatus according to a second embodiment of the present invention;
FIG. 8 is a block chain data processing apparatus according to a third embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The method and the device improve the defect that in the prior art, when the designated service data needs to be inquired from the block chain in the process of storing the service data based on the block chain, the data in the whole block chain needs to be subjected to traversal inquiry due to the inherent characteristics of the block chain, and the desired data can be acquired. Therefore, when the appointed service data are required to be acquired from the block chain, the inquiry can be directly carried out from the data platform, and the service data in the data platform are stored in a preset storage mode which is convenient to retrieve, so that the inquiry time can be greatly reduced.
Fig. 1 is a schematic diagram of processing logic of blockchain data according to an embodiment of the present invention. As shown in fig. 1, the processing logic mainly includes two parts, the first part is a block chain generation process (block chain generation), and the second part is a service data extraction process that extracts service data that has been stored in a block chain and stores the extracted service data in a data platform in a preset storage manner (block chain storage).
The generation process of the block chain is similar to the data storage process based on the block chain in the prior art, namely, a plurality of processing nodes in the block chain network store the service data to be stored into the block chain through a consensus mechanism; or for the private block chain, the service data to be stored can be directly stored into the block chain by a separate processing node, so as to form block chain data. Here, the processing node in the present embodiment is not limited to the node that generates the blockchain data, and includes a node that manages the blockchain. In the process of forming the block chain, in order to facilitate the later query of the data in the block chain, another block chain storage process can be executed on the formed block chain, that is, the service data in the block chain is copied, extracted and stored in the data platform. The service data in the data platform is stored in a preset storage mode. For example, different classes of service data are classified and stored, and an index setting mechanism is matched. When the business data in the block chain needs to be inquired, the corresponding business data can be directly acquired from the data platform, and the data platform adopts a preset storage mode, so that the appointed business data can be inquired more conveniently and rapidly.
Based on the schematic processing logic diagram of the blockchain data shown in fig. 1, fig. 2 is a structural diagram of a processing system of the blockchain data according to an embodiment of the invention. As shown in fig. 2, the system includes: a processing node 210 arranged in the blockchain network for managing and/or generating blockchains, a processing device 220 for blockchain data interactively connected with the processing node 210, and a data platform 230 for storing business data; wherein:
processing node 210 for managing and/or generating block chains. For example, the processing node 210 may be a node capable of generating service data in a blockchain, or may be a node that has no authority to generate blockchain data, but may participate in or manage the generation process of blockchain data. The processing nodes in the scheme can acquire the service data from the block chain.
The processing device 220 for blockchain data may be in communication connection with the processing node 210, and acquire the certified service data in the blockchain from the processing node 210, or the processing device 220 for blockchain data itself is a processing node in the blockchain network for managing and/or generating the blockchain, and may directly acquire the certified service data in the blockchain (this way may also be understood as that the processing device 220 for blockchain data acquires the service data already stored in the blockchain through the processing node 210, only that the processing node 210 at this time just considers the processing device 220 itself for blockchain data). For example, the processing device 220 of the block chain data may include:
the data acquisition module is used for acquiring the service data stored in the block chain through the processing node;
and the data storage module 220 is configured to store the service data in a preset storage manner in the data platform for querying.
Specifically, while the processing node 220 generates the block chain, the data acquisition module may acquire, through the processing node 220, the service data that has been stored in the block chain. For example, the data acquisition module may actively acquire from a blockchain locally stored by the processing device 220 as blockchain data of a processing node; or after receiving the notification message of the blockchain height sent by another processing node 22, comparing the blockchain height corresponding to the previously acquired blockchain data with the blockchain height in the current notification message, and acquiring the corresponding service data from the blockchain when it is determined that new service data is stored in the blockchain. After the service data is acquired, the data storage module stores the service data in the data platform 230 in a preset storage manner. When the service data in the block chain needs to be queried, the corresponding service data can be directly obtained from the data platform 230, and the data platform 230 can adopt a preset storage mode in any form (convenient for retrieval), so that the specified service data can be queried more conveniently and quickly.
Further, the data acquiring module may specifically include:
a notification receiving unit, configured to receive a notification message carrying a blockchain height sent by a processing node that manages and/or generates a blockchain;
and the data acquisition unit is used for acquiring the service data from the block chain based on the height of the block chain in the notification message.
Specifically, the description is made in the case where the processing node 210 that generates and manages the blockchain and the processing device 220 that processes blockchain data are two independent execution bodies that are separately provided. The notification receiving unit in the data obtaining module may receive a notification message carrying the blockchain height sent by the processing node. The blockchain height is the blockchain height at the time of notification issuance. The data obtaining unit in the data obtaining module may determine whether to obtain the service data from the block chain by referring to the block chain height in the notification message and the block chain height corresponding to the service data that has been obtained before, and perform a corresponding operation.
Further, the above-mentioned data acquisition unit may be specifically adapted,
if the height of the block chain in the notification message received this time is greater than the height of the block chain in the notification message received last time, acquiring service data corresponding to the height of the block chain in the notification message received this time from the block chain;
and/or the presence of a gas in the gas,
and if the height of the block chain in the notification message received this time is equal to the height of the block chain in the notification message received last time, ignoring the notification message received this time.
Specifically, the timing for the processing node to send the notification message containing the height of the block chain may be performed each time the block chain generates new block data (may be repeatedly sent for multiple times to avoid message loss), or may be periodically sent in time sequence. Correspondingly, when determining whether to acquire service data in the block chain, the data acquisition unit may compare the currently received notification message containing the block chain height with the block chain height in the last received notification message containing the block chain height, if the former is greater than the latter, it is described that new service data is stored in the block chain, and the service data with the corresponding height may be acquired from the block chain according to the currently received block chain height; if the former is equal to the latter, it is stated that no new service data in the block chain is stored in the block chain, and at this time the notification message can be ignored, no processing is done, or a direct idempotent return is made.
It should be noted that, when acquiring service data with a corresponding height from a block chain according to the currently received height of the block chain, only the service data newly added with respect to the last received height of the block chain needs to be acquired.
Further, the data obtaining module is configured to obtain all data stored in the blockchain, or obtain service data stored in the blockchain and related to the data type stored in the data platform 230.
Specifically, when acquiring service data from the block chain, all newly added service data may be acquired, so as to ensure that the data platform 230 has the full amount of data of the block chain; the service data stored in the blockchain and related to the data category stored in the data platform 230 may also be acquired, and particularly for the data platform 230 used for storing a certain special category of service data, when acquiring the blockchain data, only the service data related to the data category stored in the service platform may be acquired, thereby reducing the amount of acquired data and reducing the operation cost.
Further, the data storage module is configured to store the service data into the data platform 230 in a manner of matching with the classification index.
Specifically, when data storage is performed, layer-by-layer classification numbers can be set for different types of service data, and then classification indexes are matched for the layer-by-layer classification numbers to store the service data into an appointed storage space, so that retrieval is facilitated.
Further, the data platform 230 further stores location information of the service data in the block chain;
the above apparatus may further include:
a location obtaining module, configured to obtain location information of the service data in the blockchain from the data platform 230;
and the data verification module is used for verifying the correctness of the service data by adopting the consistency characteristic of the block chain based on the position information of the service data in the block chain.
Specifically, while storing the service data to the data platform 230, the location information of each service data in the block chain may also be stored in the data platform 230 in a correlated manner. Therefore, when the authenticity of a certain service data needs to be verified, the position of the service data in the block chain can be traced according to the position information, and then the authenticity of the service data is verified by utilizing the characteristic of unique consistency verification of the block chain, so that the service data is prevented from being maliciously tampered after being stored in the data platform 230.
The technical solution of the present application is further illustrated by the following examples.
Example one
Based on the above concept of the processing scheme of the blockchain data, as shown in fig. 3, it is a flowchart of a processing method of blockchain data according to an embodiment of the present invention, and an execution main body of the method is a processing apparatus of blockchain data shown in fig. 3. As shown in fig. 3, the method for processing blockchain data includes the following steps:
s310, acquiring the service data stored in the block chain.
For example, while a processing node in the blockchain network generates a blockchain, the service data stored in the blockchain may be acquired by the processing node. Typically, such processing nodes will all have the same blockchain stored locally. For example, the acquirer for acquiring the service data is also a processing node for generating and/or managing the blockchain, and the processing nodes may directly acquire the service data in the blockchain locally from the processing node; or after receiving a notification message of the blockchain height sent by another processing node, the acquirer for acquiring the service data compares the blockchain height corresponding to the previously acquired blockchain data with the blockchain height in the notification message, and acquires the corresponding service data from the blockchain when determining that new service data is stored in the blockchain. And after the service data is obtained, obtaining corresponding newly added service data in the block chain.
It should be noted that, in this embodiment, a data acquirer for acquiring the service data from the blockchain and a specific manner of acquiring the data are not limited, as long as the service data in the blockchain can be acquired directly or indirectly.
And S320, storing the service data into a data platform in a preset storage mode for inquiry.
After the service data is acquired from the block chain, the service data can be stored in the data platform in a preset storage mode. Therefore, when the service data in the block chain needs to be inquired, the corresponding service data can be directly acquired from the data platform, and the data platform adopts a preset storage mode, so that the appointed service data can be inquired more conveniently and rapidly.
The preset storage mode may be that when the service data is stored, the service data is stored in the data platform in a mode of matching with the classification index. For example, the service data is divided according to different category dimensions, the layer-by-layer classification numbers are set, and then the classification indexes are matched with the layer-by-layer classification numbers to store the service data into a designated storage space, so that the retrieval is facilitated.
The processing method of the block chain data provided by the invention is used for acquiring the service data stored in the block chain while generating the block chain; and then the service data is stored in another data platform in a preset storage mode, so that when the data needs to be inquired from the block chain, the corresponding service data can be conveniently inquired from the data platform.
Example two
Fig. 4 is a flowchart illustrating a processing method of blockchain data according to an embodiment of the invention. The embodiment further defines a process of acquiring service data from a block chain based on the method shown in fig. 3. As shown in fig. 4, the method for processing blockchain data includes the following steps:
s410, receiving a notification message carrying the height of the block chain sent by the processing node managing and/or generating the block chain.
In the blockchain network, a processing node that performs data generation and/or management operations on a blockchain is provided, and on the basis that it can acquire blockchain data, the processing node can carry the height of the blockchain in a notification message and send the notification message to the processing device of the blockchain data of this embodiment in a fixed-point sending or broadcasting manner. And after receiving the notification message, the processing device extracts the height of the blockchain carried in the notification message, so as to acquire the generation progress of the current blockchain.
The blockchain height may include the largest block number formed in the current blockchain.
And S420, acquiring the service data from the block chain based on the height of the block chain in the notification message.
After the blockchain height is obtained, the blockchain height in the notification message and the blockchain height corresponding to the previously obtained service data may be referred to, and whether to obtain the service data from the blockchain may be determined, and a corresponding operation may be performed.
When acquiring the service data in the block chain, the service data in the block chain may be acquired locally and synchronously from the processing node that sends the notification message, or the service data may be acquired to a storage platform that stores the block chain data in a designated storage area. For the latter method of acquiring service data, it is necessary for a processing node in the blockchain network to synchronously store the acquired blockchain data onto the storage platform in advance, and to give the service data acquirer the corresponding right to access the data in the storage platform.
For example, based on the blockchain height in the notification message, obtaining the traffic data from the blockchain may include:
if the height of the block chain in the notification message received this time is greater than the height of the block chain in the notification message received last time, acquiring service data corresponding to the height of the block chain in the notification message received this time from the block chain;
and/or the presence of a gas in the gas,
and if the height of the block chain in the notification message received this time is equal to the height of the block chain in the notification message received last time, ignoring the notification message received this time.
Specifically, the timing for the processing node to send the notification message containing the height of the block chain may be performed each time the block chain generates new block data (may be repeatedly sent for multiple times to avoid message loss), or may be periodically sent in time sequence. Correspondingly, when the data acquirer determines whether to acquire service data in the block chain, the data acquirer can compare the currently received notification message containing the block chain height with the block chain height in the last received notification message containing the block chain height, if the former is greater than the latter, the data acquirer indicates that new service data exist in the block chain and can acquire the service data with corresponding height from the block chain according to the currently received block chain height; if the former is equal to the latter, it is stated that no new service data in the block chain is stored in the block chain, and at this time the notification message can be ignored, no processing is done, or a direct idempotent return is made.
It should be noted that, when acquiring service data with a corresponding height from a block chain according to the currently received height of the block chain, only the service data newly added to the height information of the block chain received last time needs to be acquired.
In addition, the step of acquiring the service data stored in the block chain may further include:
and acquiring all data stored in the blockchain or acquiring service data which is stored in the blockchain and is related to the data type stored in the data platform.
Specifically, when service data is acquired from the block chain, all newly added service data can be acquired so as to ensure that the data platform has the full data of the block chain; the service data related to the data type stored in the data platform and stored in the blockchain can also be acquired, and particularly for the data platform used for storing a special type of service data, when the blockchain data is acquired, only the service data related to the data type stored in the service platform can be acquired, so that the data acquisition amount is reduced, and the operation cost is reduced.
And S430, storing the service data into the data platform in a mode of matching with the classification index.
This step may be a refinement of step S320 described above.
Specifically, when data storage is performed, layer-by-layer classification numbers can be set for different types of service data, and then classification indexes are matched for the layer-by-layer classification numbers to store the service data into an appointed storage space, so that retrieval is facilitated.
Based on the method shown in fig. 3, the block chain data processing method obtains the generation progress of the block chain by receiving the block chain height sent by the processing node, thereby determining whether to obtain the service data in the block chain, and executing corresponding operations to avoid unnecessary operations caused by obtaining the service data from the block chain due to no new service data; and when the data platform of the business data is stored, the business data is stored to the data platform in a mode of matching with the classified index, so that the business data in the block chain can be more conveniently inquired from the data platform.
EXAMPLE III
Fig. 5 is a flowchart illustrating a method for processing blockchain data according to an embodiment of the present invention. The embodiment can be used as a supplementary scheme of the method shown in fig. 3 or fig. 4, and adds a processing procedure how to perform correctness verification on the service data in the data platform. As shown in fig. 5, the method for processing blockchain data includes the following steps:
and S510, acquiring the position information of the service data in the block chain from the data platform.
When a third party needs to acquire service data from the data platform, and the authenticity of the data needs to be verified; or the authenticity of the data can be verified according to the position of the service data in the original block chain and the consistency characteristic of the block chain when the authenticity of the service data in the data platform needs to be actively verified according to the setting of the requirements.
In the process of verifying the authenticity of the service data according to the consistency characteristic of the block chain, the service data needs to be traced back to the original position in the block chain. Therefore, for convenience of tracing, when the service data is acquired from the blockchain and stored to the data platform, the position information of the service data in the blockchain can be associated and stored to the data platform.
S520, the service data is subjected to correctness verification by adopting the consistency characteristic of the block chain from the position information of the service data in the block chain.
The consistency of the block chains is characterized in that all data of a previous block are calculated by an irreversible algorithm (usually a Hash algorithm) aiming at two adjacent block chains in the block chains to obtain a check value, and the check value is stored in a block head of a next block; once any data in the previous block is changed in any form, the generated check value is inconsistent with the check value stored in the next block, so that the aim of data non-tampering is fulfilled.
In the checking process, the service data stored in the service platform can be compared with the service data at the same position in the block chain preliminarily, and if the service data are the same, the service data can be basically considered to be real; and the service data at the same position can be replaced by the service data to be verified, and the authenticity of the service data is verified through the consistency characteristic of the block chain.
The block chain data processing method provided by the invention verifies the authenticity of the service data stored in the data platform through the characteristic of consistency of the block chain on the basis of the method shown in fig. 3 or fig. 4 so as to ensure the authenticity and credibility of the data.
Example four
As shown in fig. 6, a block chain data processing apparatus according to an embodiment of the present invention is a first block chain data processing apparatus, which can be disposed in the block chain data processing system shown in fig. 2, and is configured to perform the method steps shown in fig. 3, and includes:
a data obtaining module 610, configured to obtain service data stored in a block chain;
and the data storage module 620 is used for storing the service data into the data platform in a preset storage mode for query.
Further, as shown in fig. 7, on the basis of the apparatus shown in fig. 6, the data obtaining module 610 may specifically include:
a notification receiving unit 710, configured to receive a notification message carrying a blockchain height sent by a processing node that manages and/or generates a blockchain;
a data obtaining unit 720, configured to obtain service data from the blockchain based on the blockchain height in the notification message.
Further, the data obtaining unit 720 may be specifically configured to,
if the height of the block chain in the notification message received this time is greater than the height of the block chain in the notification message received last time, acquiring service data corresponding to the height of the block chain in the notification message received this time from the block chain;
and/or the presence of a gas in the gas,
and if the height of the block chain in the notification message received this time is equal to the height of the block chain in the notification message received last time, ignoring the notification message received this time.
Further, the data obtaining module 610 may be further configured to obtain all data stored in the blockchain, or obtain service data stored in the blockchain and related to a data type stored in the data platform.
Further, the data storage module 620 may be configured to store the service data in the data platform in a manner of matching with the classification index.
The device structure shown in fig. 7 may be used to perform the method steps shown in fig. 4.
Further, the data platform also stores position information of the service data in the block chain;
further, as shown in fig. 8, on the basis of the above-mentioned device, the device may further include:
a location obtaining module 810, configured to obtain location information of the service data in the blockchain from the data platform;
and the data verification module 820 is configured to perform correctness verification on the service data by using the consistency characteristic of the blockchain based on the position information of the service data in the blockchain.
The device structure shown in fig. 8 may be used to perform the method steps shown in fig. 5.
The processing device of the block chain data provided by the invention generates the block chain and simultaneously acquires the service data stored in the block chain; and then the service data is stored in another data platform in a preset storage mode, so that when the data needs to be inquired from the block chain, the corresponding service data can be conveniently inquired from the data platform.
Further, the generation progress of the block chain is obtained in a mode that the receiving processing node sends the height of the block chain, so that whether the service data in the block chain is obtained or not is judged, and corresponding operation is executed, so that unnecessary operation caused by obtaining the service data from the block chain due to the fact that no new service data is generated is avoided; and when the data platform of the business data is stored, the business data is stored to the data platform in a mode of matching with the classified index, so that the business data in the block chain can be more conveniently inquired from the data platform.
Furthermore, the authenticity of the service data stored in the data platform is verified through the characteristic of consistency of the block chain, so that the authenticity and the credibility of the data are ensured.
Further, an embodiment of the present invention further provides a system for processing blockchain data, including: the processing node is arranged in the blockchain network and used for managing and/or generating blockchains, the processing device of blockchain data and the data platform are interactively connected with the processing node, and the data platform is used for storing business data; wherein:
the processing means of the block chain data is adapted to,
acquiring the service data stored in the block chain through the processing node;
and storing the service data into a data platform in a preset storage mode for inquiry.
EXAMPLE five
The foregoing describes an overall architecture of a device for processing block chain data, and the functions of the device can be implemented by an electronic device, as shown in fig. 9, which is a schematic structural diagram of the electronic device according to an embodiment of the present invention, and specifically includes: a memory 910 and a processor 920.
A memory 910 for storing programs.
In addition to the programs described above, the memory 910 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 910 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 920, coupled to the memory 910, for executing the programs in the memory 910 to:
acquiring service data stored in a block chain;
and storing the service data into a data platform in a preset storage mode for inquiry.
The above specific processing operations have been described in detail in the foregoing embodiments, and are not described again here.
Further, as shown in fig. 9, the electronic device may further include: communication components 930, power components 940, audio components 950, display 960, and the like. Only some of the components are schematically shown in fig. 9, and the electronic device is not meant to include only the components shown in fig. 9.
The communication component 930 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 930 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 930 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
A power supply component 940 provides power to the various components of the electronic device. The power components 940 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for an electronic device.
The audio component 950 is configured to output and/or input audio signals. For example, the audio component 950 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 910 or transmitted via the communication component 930. In some embodiments, audio component 950 also includes a speaker for outputting audio signals.
The display 960 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

1. A system for processing blockchain data, comprising: the system comprises a processing node, a processing device and a data platform, wherein the processing node is arranged in a block chain network and is used for managing and/or generating a block chain, the processing device is used for processing block chain data which is interactively connected with the processing node, and the data platform is used for storing service data;
the processing means of the blockchain data is configured to,
acquiring the service data stored in the block chain through the processing node;
and storing the service data into the data platform in a preset storage mode for inquiry.
2. The system of claim 1, wherein the means for processing the blockchain data to obtain the service data stored in the blockchain via the processing node comprises:
receiving a notification message which is sent by a processing node for managing and/or generating the block chain and carries the height of the block chain;
and acquiring the service data from the block chain based on the height of the block chain in the notification message.
3. The system of claim 2, wherein the means for processing the blockchain data to obtain the service data from the blockchain based on the blockchain height in the notification message comprises:
if the block chain height in the notification message received this time is greater than the block chain height in the notification message received last time, acquiring service data corresponding to the block chain height in the notification message received this time from the block chain;
and/or the presence of a gas in the gas,
and if the height of the block chain in the notification message received this time is equal to the height of the block chain in the notification message received last time, ignoring the notification message received this time.
4. A method for processing block chain data, comprising:
acquiring service data stored in a block chain;
and storing the service data into a data platform in a preset storage mode for inquiry.
5. The method of claim 4, wherein the obtaining the service data stored in the block chain comprises:
receiving a notification message which is sent by a processing node for managing and/or generating the block chain and carries the height of the block chain;
and acquiring the service data from the block chain based on the height of the block chain in the notification message.
6. The method of claim 5, wherein the obtaining the traffic data from the blockchain based on the blockchain height in the notification message comprises:
if the block chain height in the notification message received this time is greater than the block chain height in the notification message received last time, acquiring service data corresponding to the block chain height in the notification message received this time from the block chain;
and/or the presence of a gas in the gas,
and if the height of the block chain in the notification message received this time is equal to the height of the block chain in the notification message received last time, ignoring the notification message received this time.
7. The method according to any of claims 4-6, wherein the obtaining the traffic data stored in the block chain comprises:
and acquiring all data stored in the block chain, or acquiring service data which is stored in the block chain and related to the data type stored in the data platform.
8. The method of claim 4, wherein storing the service data in a preset storage manner in a data platform comprises:
and storing the service data into the data platform in a mode of matching with the classification index.
9. The method according to claim 4, wherein the data platform further stores therein location information of the service data in the block chain;
the method further comprises the following steps:
acquiring the position information of the service data in the block chain from a data platform;
and based on the position information of the service data in the block chain, verifying the correctness of the service data by adopting the consistency characteristic of the block chain.
10. An apparatus for processing blockchain data, comprising:
the data acquisition module is used for acquiring the service data stored in the block chain;
and the data storage module is used for storing the service data into a data platform in a preset storage mode for inquiry.
11. An electronic device, comprising:
a memory for storing a program;
a processor, coupled to the memory, for executing the program for:
acquiring service data stored in a block chain;
and storing the service data into a data platform in a preset storage mode for inquiry.
12. A computer readable storage medium, characterized in that the computer readable storage medium stores program instructions that, when executed by a processor, cause the processor to perform the method of any of claims 1 to 9.
CN201810551669.8A 2018-05-31 2018-05-31 Processing method, device and system of block chain data and electronic equipment Pending CN110633389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810551669.8A CN110633389A (en) 2018-05-31 2018-05-31 Processing method, device and system of block chain data and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810551669.8A CN110633389A (en) 2018-05-31 2018-05-31 Processing method, device and system of block chain data and electronic equipment

Publications (1)

Publication Number Publication Date
CN110633389A true CN110633389A (en) 2019-12-31

Family

ID=68967525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810551669.8A Pending CN110633389A (en) 2018-05-31 2018-05-31 Processing method, device and system of block chain data and electronic equipment

Country Status (1)

Country Link
CN (1) CN110633389A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239479A (en) * 2017-03-28 2017-10-10 阿里巴巴集团控股有限公司 A kind of method and device of data storage and inquiry based on block chain
CN107315786A (en) * 2017-06-12 2017-11-03 腾讯科技(深圳)有限公司 Business datum storage method and device
CN107562775A (en) * 2017-07-14 2018-01-09 阿里巴巴集团控股有限公司 A kind of data processing method and equipment based on block chain
CN107729383A (en) * 2017-09-18 2018-02-23 联动优势科技有限公司 A kind of library generation method, data verification method, device and platform
CN107766453A (en) * 2017-09-26 2018-03-06 上海策赢网络科技有限公司 Data base management method, device and storage medium based on block chain
WO2018090331A1 (en) * 2016-11-18 2018-05-24 深圳前海达闼云端智能科技有限公司 Blockchain network, article transaction method and apparatus, and node device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018090331A1 (en) * 2016-11-18 2018-05-24 深圳前海达闼云端智能科技有限公司 Blockchain network, article transaction method and apparatus, and node device
CN107239479A (en) * 2017-03-28 2017-10-10 阿里巴巴集团控股有限公司 A kind of method and device of data storage and inquiry based on block chain
CN107315786A (en) * 2017-06-12 2017-11-03 腾讯科技(深圳)有限公司 Business datum storage method and device
CN107562775A (en) * 2017-07-14 2018-01-09 阿里巴巴集团控股有限公司 A kind of data processing method and equipment based on block chain
CN107729383A (en) * 2017-09-18 2018-02-23 联动优势科技有限公司 A kind of library generation method, data verification method, device and platform
CN107766453A (en) * 2017-09-26 2018-03-06 上海策赢网络科技有限公司 Data base management method, device and storage medium based on block chain

Similar Documents

Publication Publication Date Title
CN108572789B (en) Disk storage method and device, message pushing method and device and electronic equipment
CN105701122A (en) Log collection method, apparatus and system
CN103841464A (en) Video information pushing method and device
CN106980643A (en) Change sending method, device and the electronic equipment of message
CN110347672A (en) Verification method and device, the electronic equipment and storage medium of tables of data related update
CN104219378A (en) Information processing method and device
CN111984239A (en) Page configuration method, device, server and storage medium
JP6302098B2 (en) Address filtering method, apparatus, program, and recording medium
CN110633252B (en) Data processing method, device and system based on block chain and electronic equipment
CN106055671B (en) Multimedia data processing method and equipment thereof
CN115033211A (en) Method, device and equipment for querying article based on strategy mode and storage medium
US20180137859A1 (en) Method and apparatus for information search using voice recognition
CN102999556B (en) Text search method, device and terminal device
CN104639973A (en) Information pushing method and device
CN112052391A (en) Data pushing method, device and system
CN110633389A (en) Processing method, device and system of block chain data and electronic equipment
CN109213431B (en) Consistency detection method and device for multi-copy data and electronic equipment
CN104933085A (en) Electronic book update method, terminal and server
CN111291112A (en) Read-write control method and device for distributed database and electronic equipment
CN110647421A (en) Database processing method, device and system and electronic equipment
CN110780894A (en) Hot upgrade processing method and device and electronic equipment
CN112040057B (en) Device control method, device, electronic device, control system and storage medium
CN109428919B (en) Webpage processing request processing method and device and electronic equipment
CN111291017A (en) Mirror image storage and extraction method and device of mirror image warehouse
CN111435360B (en) Address type identification method and device and electronic equipment

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40019563

Country of ref document: HK

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191231