Movatterモバイル変換


[0]ホーム

URL:


CN107124443B - Data analysis method and device based on block chain - Google Patents

Data analysis method and device based on block chain
Download PDF

Info

Publication number
CN107124443B
CN107124443BCN201710190545.7ACN201710190545ACN107124443BCN 107124443 BCN107124443 BCN 107124443BCN 201710190545 ACN201710190545 ACN 201710190545ACN 107124443 BCN107124443 BCN 107124443B
Authority
CN
China
Prior art keywords
node
data analysis
result
transaction information
data
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.)
Active
Application number
CN201710190545.7A
Other languages
Chinese (zh)
Other versions
CN107124443A (en
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.)
LIZHAN (SHANGHAI) TECHNOLOGY Co.,Ltd.
Original Assignee
Lishui Beidou Blockchain 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 Lishui Beidou Blockchain Technology Co LtdfiledCriticalLishui Beidou Blockchain Technology Co Ltd
Priority to CN201710190545.7ApriorityCriticalpatent/CN107124443B/en
Publication of CN107124443ApublicationCriticalpatent/CN107124443A/en
Priority to PCT/CN2018/080440prioritypatent/WO2018177236A1/en
Application grantedgrantedCritical
Publication of CN107124443BpublicationCriticalpatent/CN107124443B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention relates to a data analysis method and device based on a block chain. The method comprises the following steps: sending a first data analysis indication to at least one first node, the first data analysis indication including current transaction information; so that the at least one first node performs data analysis according to the current transaction information to obtain a first result; receiving a first result sent by at least one first node; adding the first result and the transaction information in a blockchain. The data analysis method and the device have the advantages that the data analysis data are contained in the block chain data structure, the distributed structure of the block chain is used for calculation, the resource utilization rate is improved, and the data analysis is more convenient and faster.

Description

Data analysis method and device based on block chain
Technical Field
The invention relates to the technical field of computers, in particular to a data analysis method and device based on a block chain.
Background
In a narrow sense, the blockchain is a distributed account book which is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence and is guaranteed in a cryptographic mode and cannot be tampered and forged. Broadly, the blockchain technique is to use a blockchain data structure to authenticate and store data, use a distributed node consensus algorithm to generate and update data, and use cryptography to secure data transmission and access.
Generally, when data analysis is performed, each data analysis party needs to download part or all of the blockchain by itself and then perform analysis according to the part or all of the blockchain. The resources are wasted and the efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a data analysis method and device based on a block chain. The data analysis method and the device have the advantages that the data analysis data are contained in the block chain data structure, the distributed structure of the block chain is used for calculation, the resource utilization rate is improved, and the data analysis is more convenient and faster.
In one aspect, an embodiment of the present invention provides a data analysis method based on a block chain. The method comprises the following steps:
sending a first data analysis indication to at least one first node, the first data analysis indication including current transaction information; so that the at least one first node performs data analysis according to the current transaction information to obtain a first result;
receiving a first result sent by at least one first node;
adding the first result and the transaction information in a blockchain.
Optionally, before sending the data analysis instruction to the at least one first node, the method further includes:
receiving blockchain synchronization data, the synchronization data including a plurality of historical transaction information;
performing data analysis according to the synchronous data to obtain a second result;
determining a plurality of third nodes of the plurality of second nodes according to the efficiency of the plurality of second nodes on the analysis of the synchronous data and the second result, wherein the plurality of third nodes comprise the at least one second node.
Optionally, the block chain synchronization data includes a pre-fabricated algorithm model, and the performing data analysis according to the synchronization data to obtain a second result includes:
and analyzing data according to the synchronous data and the algorithm model to obtain a second result.
Optionally, the sending a data analysis indication to at least one first node includes:
selecting the at least one second node from the plurality of third nodes according to a preset rule;
a first data analysis indication is sent to at least one first node.
Optionally, the method further comprises:
receiving a second data analysis instruction sent by a fourth node, wherein the second data analysis instruction comprises transaction information of the fourth node;
performing data analysis according to the transaction information of the fourth node to obtain a third result;
sending the third result to the fourth node so that the fourth node adds the third result in a blockchain.
On the other hand, the embodiment of the invention provides a data analysis device based on a block chain. The method comprises the following steps:
a sending unit, configured to send a first data analysis instruction to at least one first node, where the first data analysis instruction includes current transaction information; so that the at least one first node performs data analysis according to the current transaction information to obtain a first result;
a receiving unit, configured to receive a first result sent by at least one first node;
a processing unit, configured to add the first result and the transaction information in a blockchain.
Optionally, the receiving unit is further configured to receive blockchain synchronization data, where the synchronization data includes a plurality of historical transaction information;
the processing unit is further used for carrying out data analysis according to the synchronous data to obtain a second result;
the processing unit is further configured to determine a plurality of third nodes of the plurality of second nodes according to the efficiency of the plurality of second nodes on the analysis of the synchronization data and the second result, wherein the plurality of third nodes includes the at least one second node.
Optionally, the block chain synchronization data includes a pre-manufactured algorithm model, and the processing unit is further configured to perform data analysis according to the synchronization data and the algorithm model to obtain a second result.
Optionally, the processing unit is further configured to, in the plurality of third nodes, select the at least one second node according to a preset rule;
the sending unit is further configured to send a first data analysis indication to at least one first node.
Optionally, the receiving unit is further configured to receive a second data analysis instruction sent by a fourth node, where the second data analysis instruction includes transaction information of the fourth node;
the processing unit is further used for carrying out data analysis according to the transaction information of the fourth node to obtain a third result;
the sending unit is further configured to send the third result to the fourth node, so that the fourth node adds the third result to the blockchain.
In yet another aspect, the present application provides a computer storage medium for storing computer software instructions for the above block chain based data analysis apparatus, which includes a program designed to execute the above first aspect and optionally implement the same.
In yet another aspect, embodiments of the present application provide a computer program product for storing computer software instructions for the above block chain based data analysis apparatus, which includes a program designed to execute the above first aspect and optionally implement the same.
According to the embodiment of the invention, the block chain contains data for data analysis, and the distributed structure of the block chain is utilized for calculation, so that the resource utilization rate is improved, and the data analysis is more convenient and faster. Further, distributed computing resources can be efficiently used by defining algorithms and models at specific data portions of the blockchain.
Drawings
FIG. 1 is a schematic diagram of an application scenario;
fig. 2 is a flowchart of a data analysis method based on a blockchain according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data analysis apparatus based on a block chain according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a data analysis method and device based on a block chain. The method is suitable for the application scenario shown in fig. 1, and as shown in fig. 1, the method includes: one ormore clients 101, such as notebook computers, desktop computers, mobile terminals, and the like; one ormore blockchain nodes 102, one ormore mining machines 103, etc., e.g., computers with greater graphical computing power; wherein one ormore clients 101, one ormore mining machines 103, are connected with one ormore blockchain nodes 102.
One ormore blockchain nodes 102 store blockchains; theclient 101 is used for generating transaction information; the mining machine is used for packaging the transaction information generated in a period of time and putting the transaction information into the block chain.
The client, the block link point and the mining machine respectively comprise a processor, a memory and a transceiver, wherein the transceiver is used for receiving and transmitting data in the interaction process with other equipment.
Note that, in the embodiment of the present application, the processor has various circuits, which are connected to each other through a main line. Specifically, the processor may include: an image input control circuit that applies image data from the A/D converter to the main line; an image processing circuit that performs predetermined digital signal processing based on image data that has been input; a video Memory (VRAM) for storing image data representing an image to be displayed; and a display control circuit that controls an image displayed on the display unit, the image being based on the image data stored in the VRAM.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, a program required for at least one function, and the like; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
According to the embodiment of the invention, the block chain contains data for data analysis, and the distributed structure of the block chain is utilized for calculation, so that the resource utilization rate is improved, and the data analysis is more convenient and faster. Further, distributed computing resources can be efficiently used by defining algorithms and models at specific data portions of the blockchain.
For the purpose of facilitating understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
Fig. 2 is a flowchart of a data analysis method based on a block chain according to an embodiment of the present invention. As shown in fig. 2, the method specifically includes:
s210, sending a first data analysis instruction to at least one first node, wherein the first data analysis instruction comprises current transaction information; therefore, the at least one first node carries out data analysis according to the current transaction information to obtain a first result.
An algorithm and an algorithm model can be defined in a data structure of the block chain, after data synchronization is carried out on the nodes, operation can be carried out according to the algorithm model in the data structure, a statistical result is obtained, and the statistical result is added into the block chain.
It should be noted that the nodes in the embodiment of the present invention may include a block chain node, a user terminal or a client, an ore machine, and the like.
Wherein the blockchain is composed of a plurality of blocks linked together. Each tile corresponds to transaction information, typically generated by a client, that is bundled and linked in a chain of tiles by an ore machine. The algorithm and the algorithm model may be pre-fabricated in blocks. For example, the transaction information generation module may be pre-manufactured, and the client generally generates the transaction information according to the transaction situation. For example, transaction information is generated according to the roll-out address, the roll-in address, the transfer amount and the like, and at the same time, statistical calculation can be carried out according to a pre-established algorithm model.
In addition, after the data are synchronized, each node can operate according to the algorithm and the algorithm model in the data structure to obtain a statistical result. And optimizing each node according to the operation efficiency of each node and the accuracy of the statistical result to obtain an optimized node list.
And selecting a certain number of nodes in the preferred nodes as statistical nodes (namely at least one first node), wherein the statistical nodes are used for carrying out data analysis according to the transaction information after receiving data analysis instructions sent by other nodes to obtain analysis results (namely first results).
In the block chain, each node is zone-centric, so that each node is structurally the same, and each node can perform the node-preferred process and maintain a preferred node list.
Specifically, each block chain link point receives block chain synchronization data, wherein the synchronization data comprises a plurality of historical transaction information; performing data analysis according to the synchronous data and a prefabricated algorithm model to obtain a second result; determining a plurality of third nodes (i.e. preferred nodes) of the plurality of second nodes according to the efficiency of the plurality of second nodes on the analysis of the synchronous data and the second result, wherein the plurality of third nodes comprise the at least one second node (i.e. statistical node).
After determining new synchronous data or generating new transaction information (i.e., current transaction information), each node may send a data analysis instruction (i.e., a first data analysis instruction) to the statistical node to instruct the statistical node to perform an operation according to the new synchronous data or the new transaction information and an algorithm model pre-built in a data structure, so as to obtain a first result. And the statistical node sends the generated first node to a node sending the data analysis indication.
Specifically, after new synchronization data is determined, or a node of new transaction information is generated, in the plurality of third nodes, the at least one second node is selected according to a preset rule; a first data analysis indication is sent to at least one first node.
The statistical node needs to execute the following steps: receiving a second data analysis instruction sent by a fourth node (i.e. a node which determines new synchronous data or generates new transaction information), wherein the second data analysis instruction comprises the transaction information of the fourth node; performing data analysis according to the transaction information of the fourth node to obtain a third result; sending the third result to the fourth node so that the fourth node adds the third result in a blockchain.
S220, receiving a first result sent by at least one first node.
After receiving the first result sent by at least one first node, the node can compare the at least one first result and synthesize to obtain a statistical result. In this way, the accuracy of the statistical results can be ensured.
In addition, the preferred node list is re-determined based on the efficiency of the at least one first node and the accuracy of the resulting results. For example, the first node with too low efficiency or too much difference between the operation result and the comprehensive result is deleted from the preferred node list.
S230, adding the first result and the transaction information in a blockchain.
After receiving the statistical result sent by the statistical node, the node may add or fill the statistical result in the transaction information, deliver the transaction information to an ore machine for packaging, and link the transaction information in a block chain.
Therefore, the block chain contains the statistical result which is well counted, and the demand side does not need to count again according to the information in the block chain, so that the resources are saved, and the operation efficiency is improved.
According to the embodiment of the invention, the block chain contains data for data analysis, and the distributed structure of the block chain is utilized for calculation, so that the resource utilization rate is improved, and the data analysis is more convenient and faster. Further, distributed computing resources can be efficiently used by defining algorithms and models at specific data portions of the blockchain. Model analysis and calculation are carried out in a distributed mode through the block chains, and existing resources are fully utilized. And the optimal node is selected in a distributed mode through the block chain to perform model calculation, so that the operation efficiency is improved.
Fig. 3 is a schematic structural diagram of a data analysis apparatus based on a block chain according to an embodiment of the present invention. As shown in fig. 3, the device specifically comprises
A sendingunit 301, configured to send a first data analysis instruction to at least one first node, where the first data analysis instruction includes current transaction information; so that the at least one first node performs data analysis according to the current transaction information to obtain a first result;
a receivingunit 302, configured to receive a first result sent by at least one first node;
aprocessing unit 303, configured to add the first result and the transaction information in a blockchain.
Optionally, the receivingunit 302 is further configured to receive blockchain synchronization data, where the synchronization data includes a plurality of historical transaction information;
theprocessing unit 303 is further configured to perform data analysis according to the synchronization data to obtain a second result;
theprocessing unit 303 is further configured to determine a plurality of third nodes of the plurality of second nodes according to the efficiency of the plurality of second nodes on the analysis of the synchronization data and the second result, where the plurality of third nodes includes the at least one second node.
Further, the block chain synchronization data includes a pre-manufactured algorithm model, and theprocessing unit 303 is further configured to perform data analysis according to the synchronization data and the algorithm model to obtain a second result.
In another implementation, theprocessing unit 303 is further configured to select, in the plurality of third nodes, the at least one second node according to a preset rule;
the sendingunit 301 is further configured to send a first data analysis indication to at least one first node.
In addition, the receivingunit 302 is further configured to receive a second data analysis instruction sent by the fourth node, where the second data analysis instruction includes transaction information of the fourth node;
theprocessing unit 303 is further configured to perform data analysis according to the transaction information of the fourth node to obtain a third result;
the sendingunit 301 is further configured to send the third result to the fourth node, so that the fourth node adds the third result in a block chain.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only illustrative of the present invention and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the scope of the present invention should be included in the scope of the present invention.

Claims (6)

CN201710190545.7A2017-03-282017-03-28Data analysis method and device based on block chainActiveCN107124443B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201710190545.7ACN107124443B (en)2017-03-282017-03-28Data analysis method and device based on block chain
PCT/CN2018/080440WO2018177236A1 (en)2017-03-282018-03-26Blockchain-based data analysis method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710190545.7ACN107124443B (en)2017-03-282017-03-28Data analysis method and device based on block chain

Publications (2)

Publication NumberPublication Date
CN107124443A CN107124443A (en)2017-09-01
CN107124443Btrue CN107124443B (en)2020-04-28

Family

ID=59718090

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710190545.7AActiveCN107124443B (en)2017-03-282017-03-28Data analysis method and device based on block chain

Country Status (2)

CountryLink
CN (1)CN107124443B (en)
WO (1)WO2018177236A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107124443B (en)*2017-03-282020-04-28丽水北斗区块链科技有限责任公司Data analysis method and device based on block chain
CN108446947B (en)*2018-02-072021-05-18平安科技(深圳)有限公司Real estate transaction method and device
CN108509514A (en)*2018-03-092018-09-07史玉成A kind of big data analysis method and system based on block chain
CN108777686B (en)*2018-06-052020-06-16四川大学 An identification method and system for blockchain dust transactions
CN110661822B (en)*2018-06-282022-05-13本无链科技(深圳)有限公司Decentralized distributed data storage method
CN109446278A (en)*2018-09-212019-03-08贵州途遇旅行网科技有限公司A kind of big data management platform system based on block chain
CN115760123A (en)*2022-12-142023-03-07蚂蚁区块链科技(上海)有限公司Data processing method based on block chain and block chain link point

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2016029119A1 (en)*2014-08-212016-02-25myVBO, LLCSystems and methods for managing alternative currency transactions and optimizing financial rewards
CN105653315A (en)*2015-12-232016-06-08北京工业大学Block chain technology-based node operation system downloading method
CN105913320A (en)*2016-04-292016-08-31李立中Method and device for processing data with asset transferring information
CN106357405A (en)*2016-09-192017-01-25弗洛格(武汉)信息科技有限公司Method and system for managing data on basis of block chain technology consistency algorithms
CN106372533A (en)*2016-09-142017-02-01中国银联股份有限公司Block chain technology-based content storage method
CN106407430A (en)*2016-09-272017-02-15北京天德科技有限公司Complex and intelligent contract state synchronization method based on phase buckets

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105844505A (en)*2016-03-172016-08-10深圳市新世纪启航科技开发有限公司Method of carrying out digital currency trading through block chain technology
CN105894380A (en)*2016-04-052016-08-24邓迪Digital currency credit investigation system and method
CN105956923B (en)*2016-04-202022-04-29上海如鸽投资有限公司Asset transaction system and digital authentication and transaction method of assets
CN106055597B (en)*2016-05-242022-05-20布比(北京)网络技术有限公司Digital transaction system and account information query method used for same
CN106227833A (en)*2016-07-262016-12-14宁圣金融信息服务(上海)有限公司Block chaining search engine method, system and device
CN106452785B (en)*2016-09-292019-05-17财付通支付科技有限公司Block chain network, branch node and block chain network application method
CN106506203B (en)*2016-10-252019-12-10杭州云象网络技术有限公司Node monitoring system applied to block chain
CN107124443B (en)*2017-03-282020-04-28丽水北斗区块链科技有限责任公司Data analysis method and device based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2016029119A1 (en)*2014-08-212016-02-25myVBO, LLCSystems and methods for managing alternative currency transactions and optimizing financial rewards
CN105653315A (en)*2015-12-232016-06-08北京工业大学Block chain technology-based node operation system downloading method
CN105913320A (en)*2016-04-292016-08-31李立中Method and device for processing data with asset transferring information
CN106372533A (en)*2016-09-142017-02-01中国银联股份有限公司Block chain technology-based content storage method
CN106357405A (en)*2016-09-192017-01-25弗洛格(武汉)信息科技有限公司Method and system for managing data on basis of block chain technology consistency algorithms
CN106407430A (en)*2016-09-272017-02-15北京天德科技有限公司Complex and intelligent contract state synchronization method based on phase buckets

Also Published As

Publication numberPublication date
CN107124443A (en)2017-09-01
WO2018177236A1 (en)2018-10-04

Similar Documents

PublicationPublication DateTitle
CN107124443B (en)Data analysis method and device based on block chain
CN108322304B (en)Calculation method and apparatus for workload certification, electronic device, program, and medium
CN110247753B (en)Block output method and device based on block chain node point network
CN109255246A (en)Interface parameters encryption method, device, computer equipment and storage medium
CN111597567A (en)Data processing method, data processing device, node equipment and storage medium
CN110989934B (en)Block chain link point data storage method, block chain system and block chain node
CN109921897A (en) Triggering method, device, computing device and storage medium for proof-of-work calculation
CN110222538B (en)Verification method and device related to block chain
CN111831738A (en)Method and device for storing Internet recruitment data on block chain
CN111831669A (en)Method and device for storing internet voting data according to block chain
CN108520025B (en)Service node determination method, device, equipment and medium
CN111835815A (en)Synchronous storage method and device for internet self-media data on block chain
CN111078715A (en)Synchronous storage method and device for internet advertisement data on block chain
CN115208570A (en)Encryption method and device based on dynamic replacement of secret key
CN110224813B (en)Block discharging method and device based on block chain
CN111078795A (en)Method and device for storing social data of internet on block chain
CN111831670A (en)Storage method and device related to internet comment data on block chain
US20220050811A1 (en)Method and apparatus for synchronizing file
CN111831653A (en)Method and device for storing self-media data of Internet on block chain
CN111125250A (en)Method and device for storing internet evaluation data on block chain
CN111831671A (en)Method and device for storing internet advertisement data on block chain
CN111833054A (en)Method and device for storing Internet e-commerce data on block chain
CN110245950B (en)Block discharging method and device related to block chain
CN110247773B (en)Packing method and device on block chain
CN110245949B (en)Packing method and device related to block chain

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
TA01Transfer of patent application right

Effective date of registration:20191104

Address after:323000 401-1, floor 4, building 2, Green Valley Information Industry Park, No. 368, Chengbei street, Liandu District, Lishui City, Zhejiang Province

Applicant after:Lishui Beidou blockchain Technology Co., Ltd

Address before:200333, No. 4268, No. 1190 South Main Road, Shanghai, Jiading District. A

Applicant before:Shanghai Ruiqi dimensional network technology Co. Ltd.

TA01Transfer of patent application right
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right

Effective date of registration:20210115

Address after:Room 5123, building 5, 6558 Tingwei Road, Jinshan District, Shanghai 200540

Patentee after:LIZHAN (SHANGHAI) TECHNOLOGY Co.,Ltd.

Address before:Room 401-1, 4th floor, building 2, Green Valley Information Industrial Park, 368 Chengbei street, Liandu District, Lishui City, Zhejiang Province 323000

Patentee before:Lishui Beidou blockchain Technology Co.,Ltd.

TR01Transfer of patent right

[8]ページ先頭

©2009-2025 Movatter.jp