CN114676195A - Block chain data tracing method - Google Patents

Block chain data tracing method Download PDF

Info

Publication number
CN114676195A
CN114676195A CN202210269403.0A CN202210269403A CN114676195A CN 114676195 A CN114676195 A CN 114676195A CN 202210269403 A CN202210269403 A CN 202210269403A CN 114676195 A CN114676195 A CN 114676195A
Authority
CN
China
Prior art keywords
data
block chain
tracing
chain
information
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
CN202210269403.0A
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.)
Jiangmen Polytechnic
Original Assignee
Jiangmen Polytechnic
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 Jiangmen Polytechnic filed Critical Jiangmen Polytechnic
Priority to CN202210269403.0A priority Critical patent/CN114676195A/en
Publication of CN114676195A publication Critical patent/CN114676195A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a tracing method for block chain data, which comprises the following steps: determining a data source tracing rule in a block chain, and acquiring block chain data of the block chain according to the data source tracing rule; determining the data attribute of the block chain data, and determining the block chain data characteristic and the block chain data information according to the data attribute; constructing a secondary chain structure model according to the block chain data characteristics and the block chain data information; performing data fusion processing on the block chain data according to a secondary chain structure in the secondary chain structure model to obtain a data fusion result; designing the secondary chain structure frame according to the secondary chain structure model to obtain a secondary chain structure frame model; constructing a data fast source tracing model of the block chain according to the secondary chain structure frame model and the data fusion result; and carrying out data tracing on the block chain data by using a data rapid tracing model. Therefore, the method and the device can shorten the processing time of tracing the source of the block chain data and improve the processing speed of tracing the source of the block chain data.

Description

Block chain data tracing method
Technical Field
The invention relates to the field of tracing of blockchain data, in particular to a tracing method of blockchain data.
Background
Data opening and sharing are important means for avoiding information isolated island, but with the increasing severity of various information disclosure problems, new challenges are brought to large data privacy security and digital copyright maintenance. The main purpose of data tracing is to track and update the development process of original data in real time, so as to ensure the security and confidentiality of the data. And the block chain has tamper resistance, so that the trueness and reliability of data can be ensured. However, in the related art, the source tracing efficiency is reduced because the current fast source tracing algorithm for blockchain data cannot perform fusion processing on blockchain data.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention provides a method for tracing block chain data, which can shorten the processing time of tracing the block chain data and improve the processing speed of tracing the block chain data.
In a first aspect, an embodiment of the present invention provides a method for tracing a blockchain data source, including:
determining a data source tracing rule in a block chain, and acquiring block chain data of the block chain according to the data source tracing rule;
Determining the data attribute of the block chain data, and determining the data characteristic and the data information of the block chain according to the data attribute;
constructing a secondary chain structure model according to the block chain data characteristics and the block chain data information;
performing data fusion processing on the block chain data according to a secondary chain structure in the secondary chain structure model to obtain a data fusion result;
designing a secondary chain structure frame according to the secondary chain structure model to obtain a secondary chain structure frame model;
constructing a data rapid source tracing model of the block chain according to the secondary chain structure frame model and the data fusion result;
and performing data tracing on the block chain data by using the data rapid tracing model.
The technical scheme of the first aspect of the invention has at least one of the following advantages or beneficial effects: the block chain data can be subjected to data fusion processing according to the secondary chain structure in the secondary chain structure model, the safety and the authenticity of the block chain data are guaranteed, and the block chain data is subjected to data source tracing by utilizing the data fast source tracing model according to the secondary chain structure frame model and a combined data fusion result in a matching manner and by introducing a block chain data fast source tracing algorithm model, so that the block chain data are subjected to fast source tracing.
Optionally, in an embodiment of the present invention, the blockchain includes a sub-chain and a main chain, and the blockchain data tracing method further includes:
carrying out data processing on the block head information of the block chain through the main chain to obtain target state information of each sub-chain;
and constructing a secondary chain structure in the secondary chain structure model according to the target state information.
Optionally, in an embodiment of the present invention, the performing data processing on the block header information of the block chain through the main chain to obtain the target state information of each of the child chains includes:
acquiring sub-chain codes, and classifying block head information of the block chain according to the sub-chain codes to obtain block head information of each sub-chain;
respectively sequencing the block head information of each sub-chain according to the height of the block head to obtain a plurality of continuous block head information;
carrying out duplicate removal processing on the continuous block header information to obtain candidate information;
and packaging the candidate information through the main chain to obtain the target state information of each sub-chain.
Optionally, in an embodiment of the present invention, the performing data fusion processing on the block chain data according to a secondary chain structure in the secondary chain structure model to obtain a data fusion result includes:
And verifying the block chain data according to the secondary chain structure, and storing the block chain data when the block chain data passes verification to obtain the data fusion result.
Optionally, in an embodiment of the present invention, the verifying the block chain data according to the secondary chain structure includes:
performing data unified coding design on the block chain data through the sub-chains in the secondary chain structure to obtain a block chain data tag;
and verifying the block chain data according to the block chain data tag.
Optionally, in an embodiment of the present invention, the performing, by the processing device, a check process on the blockchain data according to the blockchain data tag includes:
labeling the block chain data according to the Hash label to obtain labeled block chain data;
and verifying the marked block chain data according to the digital signature.
Optionally, in an embodiment of the present invention, the method for tracing to the source of the blockchain data further includes:
acquiring account address information of a user, user identity identification information and a hash value of marked block chain data;
Performing data mapping processing according to the account address information, the user identity information and the hash value to obtain a mapping result;
and performing identity authentication processing on the user according to the mapping result.
Optionally, in an embodiment of the present invention, the method for tracing to source of blockchain data further includes:
and obtaining a source tracing vocabulary according to the data rapid source tracing model and the task priority level.
Optionally, in an embodiment of the present invention, the obtaining a source vocabulary according to the data fast source tracing model and the task priority level includes:
classifying the block chain data according to the task priority to obtain a tracing type;
when the block chain data is leaked or has a data problem, performing traceability query on the block chain data according to the traceability type and the traceability method to obtain data source information and data flow information of the block chain data;
and storing the data source information and the data flow information through the data rapid source tracing model to obtain the source tracing vocabulary.
Optionally, in an embodiment of the present invention, the method for tracing to the source of the blockchain data further includes:
And updating the computational logic in the data fast tracing model according to the latest block chain data.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a method for tracing blockchain data according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for tracing blockchain data according to another embodiment of the present invention;
FIG. 3 is a flowchart of a specific method of step S210 in FIG. 2;
FIG. 4 is a flowchart of a specific method of step S140 in FIG. 1;
FIG. 5 is a flowchart of a specific method of step S410 in FIG. 4;
FIG. 6 is a flowchart illustrating a specific method of step S520 in FIG. 5;
FIG. 7 is a flowchart of a method for tracing blockchain data according to another embodiment of the present invention;
FIG. 8 is a flow chart of a blockchain data flow process provided by one embodiment of the present invention;
FIG. 9 is a schematic diagram illustrating a data fast tracing model according to a specific example of the present invention;
FIG. 10 is a flowchart of a method for tracing blockchain data according to another embodiment of the present invention;
FIG. 11 is a flowchart of a method embodied by step S810 of FIG. 10;
FIG. 12 is a flowchart of a method for tracing blockchain data according to another embodiment of the present invention;
fig. 13 is a schematic structural diagram of a data tracing system according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of a data tracing system according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number. If there is a description of first and second for the purpose of distinguishing technical features only, this is not to be understood as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of technical features indicated.
The invention provides a tracing method for block chain data, which comprises the steps of firstly determining a data tracing rule in a block chain, obtaining the block chain data according to the data tracing rule, then determining the data attribute of the block chain data, determining the data characteristic and the block chain data information of the block chain according to the data attribute, constructing a secondary chain structure model according to the data characteristic and the block chain data information of the block chain, carrying out data fusion processing on the block chain data according to a secondary chain structure in the secondary chain structure model to obtain a data fusion result, carrying out design processing on a secondary chain structure frame according to the secondary chain structure model to obtain a secondary chain structure frame model, constructing a data fast tracing model of the block chain according to the secondary chain structure frame model and the data fusion result, and finally carrying out data tracing on the block chain data by using the data fast tracing model, namely, the block chain data can be subjected to data fusion processing according to a secondary chain structure in a secondary chain structure model, the safety and the authenticity of the block chain data are guaranteed, a block chain data fast source tracing algorithm model is cooperatively introduced according to the secondary chain structure frame model and a combined data fusion result, and finally the block chain data is subjected to data source tracing by using the data fast source tracing model, so that the block chain data are quickly traced.
The embodiments of the present invention will be further explained with reference to the drawings.
As shown in fig. 1, fig. 1 is a flowchart of a method for tracing to source block chain data according to an embodiment of the present invention. The blockchain data tracing method may include, but is not limited to, step S110, step S120, step S130, step S140, step S150, step S160, and step S170.
Step S110: determining a data source tracing rule in a block chain, and acquiring block chain data of the block chain according to the data source tracing rule;
step S120: and determining the data attribute of the block chain data, and determining the data characteristic of the block chain and the data information of the block chain according to the data attribute.
In this step, the data attribute may include data content, data type, data source information, and the like, and is not limited specifically herein.
It should be noted that the characteristic of the blockchain data may be a place where the blockchain data occurs, the number of blockchain data, and the like, and is not limited herein.
It should be noted that, according to the data attribute, characteristics of the blockchain data in different application scenarios may be determined, where the application scenarios may be data transactions, failure networks, stock transactions, financial transactions, or the like, and are not limited herein.
It should be further noted that the blockchain data information may be the blockchain data content, and is not limited herein.
Step S130: constructing a secondary chain structure model according to the block chain data characteristics and the block chain data information;
step S140: and performing data fusion processing on the block chain data according to the secondary chain structure in the secondary chain structure model to obtain a data fusion result.
In this step, since the secondary link structure model is constructed in step S130, the block chain data can be subjected to data fusion processing according to the secondary link structure in the secondary link structure model, so as to ensure the security and authenticity of the block chain data, and meanwhile, the block chain data is quickly traced to the source by using the data quick tracing model constructed by the data fusion result in the subsequent step, so that the block chain data tracing processing rate is improved.
It should be noted that, in the process of performing data fusion processing on the blockchain data, feasibility of different blockchain techniques may be analyzed first, and then data fusion processing may be performed on the blockchain data according to the feasible blockchain techniques, which is not limited herein.
It should be noted that, the process of performing data fusion processing on the blockchain data according to the secondary chain structure in the secondary chain structure model may be periodically circulated, and is not limited herein.
Step S150: designing the secondary chain structure frame according to the secondary chain structure model to obtain a secondary chain structure frame model;
step S160: constructing a data fast source tracing model of the block chain according to the secondary chain structure frame model and the data fusion result;
step S170: and carrying out data source tracing on the block chain data by using a data rapid source tracing model.
It should be noted that, when tracing the blockchain data, data tracing can be performed according to the time of forming the blockchain data and the corresponding logic sequence, so as to provide a tracing basis for the blockchain data, comprehensively feed back the real application value of the blockchain data, and ensure that the whole tracing process is level-to-level, which is not specifically limited in this embodiment.
In this embodiment, since the block chain data tracing method from step S110 to step S170 is adopted, a data tracing rule in the block chain can be determined, block chain data is obtained according to the data tracing rule, block chain data attributes of the block chain data are determined, block chain data characteristics and block chain data information are determined according to the data attributes, a secondary chain structure model is constructed according to the block chain data characteristics and the block chain data information, data fusion processing is performed on the block chain data according to a secondary chain structure in the secondary chain structure model to obtain a data fusion result, a design processing is performed on a secondary chain structure frame according to the secondary chain structure model to obtain a secondary chain structure frame model, a data fast tracing model of the block chain is constructed according to the secondary chain structure frame model and the data fusion result, and finally, the data tracing is performed on the block chain data by using the data fast tracing model, namely, data fusion processing can be performed on the block chain data according to a secondary chain structure in the secondary chain structure model, so that the safety and the authenticity of the block chain data are ensured, a block chain data fast source tracing algorithm model can be cooperatively introduced according to the secondary chain structure frame model and a combined data fusion result, and finally the block chain data is subjected to data source tracing by using the data fast source tracing model, so that the block chain data is quickly traced.
In an embodiment, as shown in fig. 2, in the case that the blockchain includes a sub-chain and a main chain, the blockchain data tracing method may further include, but is not limited to, step S210 and step S220.
Step S210: and carrying out data processing on the block head information of the block chain through the main chain to obtain the target state information of each sub-chain.
In this step, the main chain performs data processing on the block header information of the block chain to obtain the target state information of each sub-chain, that is, the state mechanism of the block chain is analyzed to obtain the target state information, so that the main chain can quickly anchor the latest state of the sub-chain, and the uniformity and the security of the block chain data are ensured.
It should be noted that the target status information may include the latest status information of the child chain, or may be other information, and is not limited herein.
It should be noted that the block chain is a chain-like data structure and storage method composed of blocks. Each block is divided into a block header and a block body, the block header information is information stored in the block header, the block header information may be a hash value used to connect each block with a previous block, and the block body may include a transaction book, which is not limited herein.
Step S220: and constructing a secondary chain structure in the secondary chain structure model according to the target state information.
It should be noted that the secondary chain structure may be constructed in the context of cross-region data, and is not limited in this regard.
It should be further noted that the secondary link structure mainly includes a cross-domain data uniform coding design, a cross-domain tracing protocol design, and the like, and may be composed of a main chain and a sub-chain, where the main chain is mainly responsible for checking all tracing data, and the sub-chain is responsible for tracing to store and record all block chain data copies.
In this embodiment, since the method for tracing the source of the blockchain data from step S210 to step S220 is adopted, the data processing may be performed on the blockchain header information through the main chain of the blockchain to obtain the target state information of each sub-chain, and then the secondary chain structure in the secondary chain structure model is constructed according to the target state information, so as to prepare for performing the data fusion processing on the blockchain data by using the secondary chain structure in the subsequent step.
In an embodiment, as shown in fig. 3, for further description of step S210, the step S210 may include, but is not limited to, step S310, step S320, step S330, and step S340.
Step S310: acquiring the sub-chain codes, and classifying the block head information of the block chain according to the sub-chain codes to obtain the block head information of each sub-chain.
In this step, since the sub-chain codes are obtained, the block head information of the block chain may be classified according to the sub-chain codes to obtain the block head information of each sub-chain, so as to prepare for sorting the block head information of each sub-chain according to the height of the block head in the subsequent steps.
Step S320: and respectively sequencing the block head information of each sub-chain according to the height of the block head to obtain a plurality of continuous block head information.
In this step, since the block header information of each sub-chain is obtained in step S310, the block header information of each sub-chain can be sorted according to the block header height, and a plurality of continuous block header information can be obtained.
Step S330: and carrying out duplicate removal processing on the continuous block header information to obtain candidate information.
In this step, since consecutive header information is obtained in step S320, the consecutive header information can be subjected to deduplication processing, and thus, it can be confirmed that all header information of each child chain does not overlap.
Step S340: and packaging the candidate information through the main chain to obtain the target state information of each sub-chain.
In this step, because the candidate information subjected to the deduplication processing is obtained in step S320, the candidate information can be packed through the main chain of the block chain, thereby effectively preventing the situation of repeated packing and avoiding confusion of block chain data.
In this embodiment, since the method of tracing the source of the blockchain data from step S310 to step S340 is adopted, the sub-chain codes are obtained, the blockhead information of the blockchain is classified according to the sub-chain codes to obtain the blockhead information of each sub-chain, then the blockhead information of each sub-chain can be respectively sorted according to the blockhead height to obtain a plurality of continuous blockhead information, then the continuous blockhead information is deduplicated to obtain the candidate information, and finally the candidate information can be packaged by the main chain of the blockchain to obtain the target status information of each sub-chain, that is, the blockhead information of the blockchain is classified according to the sub-chain codes and the blockhead information of each sub-chain is respectively sorted according to the blockhead height to effectively prevent the sub-chain block-out speed from being higher than the main chain block-out speed, therefore, the embodiment of the invention can effectively avoid the disorder of the block chain data information in the block chain.
In an embodiment, as shown in fig. 4, for further explanation of step S140, the step S140 may include, but is not limited to, step S410.
Step S410: and verifying the block chain data according to the secondary chain structure, and storing the block chain data when the block chain data passes the verification to obtain a data fusion result.
In an optional embodiment, a data multilevel fusion model may be constructed according to a data fusion result in a data fusion traceability scene, where the data multilevel fusion model includes a center, a first-level domain and a second-level domain, data materials may be added into different levels of domains, and the data multilevel fusion model may be responsible for completing relevant steps such as monitoring and processing, and in addition, block chain data may be traced according to a data fusion result, for example, when the block chain data is subjected to data fusion processing, if a generated effect is sufficiently satisfactory (for example, the block chain data passes verification), people or materials contributing to the block chain data need to be traced in time; if the generated effect is not satisfactory (for example, the blockchain data is not verified), the main cause and the specific location of the problem need to be determined in time, which is not limited in the embodiment of the present invention. It should be further noted that the data multi-level fusion model requires an emphasis on interactive visualization around a theme or material.
In an embodiment, as shown in fig. 5, for further explanation of step S410, the step S410 may include, but is not limited to, step S510 and step S520.
Step S510: and carrying out data unified coding design on the block chain data through the sub-chain in the secondary chain structure to obtain a block chain data tag.
In this step, since the block chain data is subjected to the data uniform coding design, the coding resources of different types of block chain data can be uniformly managed and maintained, and the unique codes are marked for all the block chain data to provide data support for tracing.
Step S520: and verifying the blockchain data according to the blockchain data tag.
In this embodiment, by using the method for tracing the blockchain data from step S510 to step S520, the blockchain data can be subjected to a data uniform coding design through the sub-chain in the secondary chain structure to obtain a blockchain data tag, and then the blockchain data is verified according to the blockchain data tag, so that the security and accuracy of tracing the blockchain data are improved.
In an embodiment, as shown in fig. 6, step S520 is further described in the case that the blockchain data tag includes a digital signature and a hash tag, and step S520 may include, but is not limited to, step S610 and step S620.
Step S610: and labeling the block chain data according to the Hash label to obtain the labeled block chain data.
In this step, because the blockchain data can be labeled according to the hash tag, the blockchain data can be queried in real time in the process of performing data fusion processing on the blockchain data, and simultaneously, a support can be provided for tracing different blockchain data, thereby improving the security.
It should be noted that the hash tag may include a hash value, and is not limited herein.
Step S620: and verifying the marked block chain data according to the digital signature.
It should be noted that the digital signature can be stored in a distributed manner, so that the accuracy of the tracing result when the new tracing data is traced by using the blockchain data as the tracing database is ensured.
The digital signature may be a digital ID (Identity Document), or may be other signatures capable of uniquely identifying the blockchain data, and is not limited herein.
It should be noted that the blockchain includes a plurality of blocks, and after obtaining the traceability information of the blockchain data provided by the previous block, each block needs to store completely new traceability information and a digital signature (such as a digital ID) of the blockchain data of each block into the corresponding traceability system.
In an embodiment, as shown in fig. 7, the method for tracing the blockchain data may further include, but is not limited to, step S710, step S720, and step S730.
Step S710: and acquiring account address information of the user, user identity information and the hash value of the marked block chain data.
It should be noted that the user identity representing information may be an identity card number of the user, and is not limited herein.
Step S720: performing data mapping processing according to the account address information, the user identity identification information and the hash value to obtain a mapping result;
step S730: and performing identity authentication processing on the user according to the mapping result.
In this embodiment, by using the method for tracing the source of the blockchain data from step S710 to step S730, the account address information of the user, the user identity information, and the hash value of the labeled blockchain data are obtained first, data mapping processing is performed according to the account address information, the user identity information, and the hash value to obtain a mapping result, and then identity authentication processing is performed on the user according to the mapping result, so that dirty data is effectively prevented from being submitted with an audited role theme, and malicious users are prevented from tampering the recorded tracing information, thereby ensuring the safety and effectiveness of data tracing.
It should be noted that, in the process of implementing acquisition, processing, sale, and the like of the blockchain data, the following three aspects need to be considered in an important manner:
(1) each user in the circulation process of the block chain data needs to perform identity authentication processing, so that dirty data are effectively prevented from being submitted by an audited role theme;
(2) preventing malicious users from tampering the recorded tracing information;
(3) and verifying the integrity of the tracing information to ensure the authenticity and integrity of the block chain data.
It can be understood that in the circulation process of the blockchain data, the identity authentication of the authentic and trusted user is the first step to ensure the data source tracing to be safe and effective. Therefore, during the circulation process of the block chain data, the authenticity and the integrity of the data source tracing can be ensured by real users performing data operation or sharing transaction.
In an alternative embodiment, the identity authentication process performed on the user can be represented by the following formula (1):
Tcket(i)=Encry(i){Hash(user(i)||Address(i))} (1)
in formula (1), tckey (i) represents the result of the authentication process performed on the user; encry (i) represents the mapping result; hash represents a user identity ID; address (i) represents a hash value; user (i) represents the account address of the user.
In an optional embodiment, the cross-domain tracing protocol may be formulated through a production process of a product, and specifically includes the following steps:
the method comprises the following steps: issuing a task;
step two: production and processing;
step three: and (6) reporting data.
In the second step, during the processing of the blockchain data into blockchain data products, the sub-chain stores the blockchain data, generates a blockchain data tag, and stores the blockchain data tag in the main chain, which is not limited herein. It should be further noted that, in the process of processing the blockchain data into a blockchain data product, the traceability information of each blockchain data needs to be continuously added to the sub-chain to obtain a blockchain data tag corresponding to the blockchain data, such as a digital signature and a hash value. And simultaneously, introducing a secondary chain structure to monitor all block chain data in real time, and tracing the source of the block chain data which can be used and stored and cannot be tampered at the same time.
It should be further noted that, in the third step, for each formed block chain data product, the reporting department may form a corresponding data ID (Identity Document), the reporting department may directly transmit the obtained digital ID to the main chain, perform verification processing on the block chain data product according to the digital ID, and directly store the block chain data product if the verification result proves that the digital ID is qualified, which is not specifically limited herein.
It should be noted that, the blockchain includes multiple blocks, and after obtaining the tracing information of the blockchain data provided by the previous block, each block needs to store completely new tracing information and a digital signature (such as a digital ID) of the blockchain data of each block into the corresponding tracing system, so as to ensure that the tracing information is not privately modified in the process of domain division and hierarchical processing.
It should be noted that, in an environment of accelerated share of blockchain data, blockchain data may flow between different main bodies, and multiple main body users are involved in the flow process, for example, the main body users may be divided into three types, which are respectively a data producer, a data processor, a data seller and a data consumer, where the data producer is mainly responsible for collecting blockchain data, data owned by the data producer is original blockchain data, the data processor performs data processing on the original blockchain data to finally form a blockchain data product, the data seller is mainly responsible for selling the blockchain data or the blockchain data product, and the data consumer is an individual and an enterprise who purchases the original blockchain data or the blockchain data product, as shown in fig. 8, fig. 8 is a flowchart of a blockchain data flow process, first blockchain data acquisition, then blockchain data processing, then blockchain data usage, and finally blockchain data transaction.
In an embodiment, as shown in fig. 9, the data fast tracing model may include a tracing service platform 310, a data capture module 320, a data processing module 330, and a data usage module 340, where the tracing service platform 310 may be configured to update tracing information, the data capture module 320 may obtain blockchain data, the data processing module 330 may perform storage processing on the blockchain data and perform data processing on the blockchain data to produce blockchain data products, and the data usage module 340 may be configured to sell the blockchain data products, which is not limited in this embodiment.
In an optional embodiment, the blockchain data product can be traced according to the production time of the blockchain data product and the corresponding logic sequence, so that a tracing basis is provided for the blockchain data product, the real application value of the blockchain data product is comprehensively fed back, and the whole tracing process is ensured to be associated layer by layer.
In an embodiment, as shown in fig. 10, the method for tracing the blockchain data may further include, but is not limited to, step S810.
Step S810: and obtaining a source tracing vocabulary according to the data rapid source tracing model and the task priority level.
In the step, the source-tracing vocabulary is obtained according to the data fast source-tracing model and the task priority level, and the block chain data source tracing can be fast realized.
It should be noted that the task priority level may be a processing order of data tracing, or may be other priority levels, and is not limited herein.
In an embodiment, as shown in fig. 11, for further explanation of step S810, step S810 may include, but is not limited to, step S910, step S920, and step S930.
Step S910: classifying the block chain data according to the task priority to obtain a source tracing type;
step S920: when the block chain data is leaked or has a data problem, tracing query is carried out on the block chain data according to the tracing type and the tracing method, and data source information and data flow information of the block chain data are obtained.
It should be noted that the tracing type may include external tracing and internal tracing, and is not limited herein.
It should be further noted that the data flow information may include a plurality of different types of blockchain data flow modes, and may further include information on production of blockchain data, information on flowing of blockchain data, or information on disappearance of blockchain data, and the like, which is not limited herein.
In an optional embodiment, when leakage or data problem occurs in the blockchain data, a traceback query may be performed on the blockchain data according to the traceback path, or a flow path of the blockchain data may be reconstructed from a position at random, and a link in which the leakage or data problem occurs is finally determined.
It should be noted that the essence of tracing the blockchain data is to record the process of producing, streaming to extinction of the blockchain data, and reproduce the data streaming process according to the data streaming information of the recorded blockchain data.
In one embodiment, the blockchain data mainly forms four modes in the streaming process, which can be expressed by the following formula (2):
H={h1→h2→h3→h4} (2)
wherein, in the formula (2), h1、h2、h3And h4Respectively representing different types of blockchain data flow patterns. In the process of tracing to the source, for the use process of the blockchain data, the data types of different blockchain data need to be marked preferentially, and the tracing type of the blockchain data is acquired at the same time. The tracing can be divided into two types, namely external tracing and internal tracing.
In one embodiment, external tracing of blockchain data can be expressed by the following equation (3):
C(t)={me(g1,g2)+mr(g1,g2)} (3)
Wherein, in formula (3), c (t) represents a tracking result of tracking the blockchain data, me (g)1,g2) Representing the coordinate position of the original block chain data; mr (g)1,g2) Representing the coordinate position of the added information in the ciphertext.
In an embodiment, the internal tracing is mainly responsible for recording all detailed information of the activities performed by the role body on the blockchain data, wherein the information is obtained by the following formula (4):
Figure BDA0003553985190000091
wherein, in the formula (4), e (c)1,c2) Representing a blockchain data set, e (g)1,g2) Represents the input value, and m (i) represents the updated ciphertext information.
Step S930: and storing the data source information and the data flow information through a data rapid source tracing model to obtain a source tracing vocabulary.
In this embodiment, by using the method for tracing to the source of the blockchain data in steps S910 to S930, the blockchain data can be classified according to the task priority to obtain the tracing type, when the blockchain data has leakage or data problems, the blockchain data is traced to the source according to the tracing type and the tracing method to obtain the data source information and the data flow information of the blockchain data, and finally the data source information and the data flow information are stored through the data fast tracing model to obtain the tracing vocabulary, so that the processing amount of the blockchain data tracing to the source is increased, the accuracy of the data tracing is improved, meanwhile, the processing time of the blockchain data tracing to the source is shortened, and the processing rate of the blockchain data tracing to the source is increased to implement the fast tracing.
It should be noted that, by combining the content formed by the three core elements of the entity, the activity and the proxy in the data model, the process of tracing the data by using the blockchain data may be analyzed, for example, the content may be a data entity, a data activity and a data sliding initiator, where the data entity is blockchain data uploaded to the blockchain for sharing or transaction, and corresponding virtualization and attribute information may be obtained according to the resource of the blockchain data; the data activity mainly refers to the activity of a user in the block chain acting on the data of the block chain; the data sliding initiator mainly refers to all users in the platform, and the users can upload block chain data on the platform or participate in different types of data activities.
In an embodiment, the fast data tracing model centralizes and stores tracing information obtained by tracing the data of the blockchain data into the database, and in the flowing process of the blockchain data from the data source to the data use, the tracing information formed by each node is directly stored into the database through collection, which is not specifically limited herein.
It should be noted that, in the initial stage of performing the tracing information collection, the meaning of the information collection needs to be clarified, and the tracing information needs to accurately describe the data source and the transfer process of the block chain data, which is not limited herein.
In an embodiment, as shown in fig. 12, the method for tracing the blockchain data may further include, but is not limited to, step S1010.
Step S1010: and updating the computational logic in the data fast tracing model according to the latest block chain data.
In this embodiment, the computation logic in the data fast tracing model is updated according to the latest blockchain data, so that the data fast tracing model can automatically adjust a processing method, a processing sequence, processing parameters, boundary conditions, constraint conditions, and the like of data tracing, so as to obtain an optimal data tracing effect.
In an embodiment, the data rapid traceability model can realize three targets, namely information island breaking, decentralization and traceability information which cannot be tampered and are transparent, wherein the information island breaking means that a main user in a data circulation process is taken as a node and incorporated into the same block chain, and each block in the block chain in the same time zone can carry out information interaction, so that a traditional mode and a traditional system are broken, and the formation of the situation of the information island is effectively avoided; the decentralized means that information interaction and information updating can be realized through a block chain technology, and meanwhile, all blocks in a block chain are mutually connected and equivalent, so that single-point faults are effectively avoided; the source tracing information is not tampered and transparent means that it can be effectively ensured that each complete block in the blockchain has a complete copy of data through the blockchain, for example, if a malicious user modifies the source tracing information in the interest, it is very difficult for the blockchain data of all the complete blocks to be modified, and no specific limitation is made herein.
In each embodiment of the present application, when data related to the user identity or characteristic, such as user information, user behavior data, user history data, and user location information, is processed, permission or consent of the user is obtained, and the data collection, use, and processing comply with relevant laws and regulations and standards of relevant countries and regions. In addition, when the embodiment of the present application needs to acquire sensitive personal information of a user, individual permission or individual consent of the user is obtained through a pop-up window or a jump to a confirmation page, and after the individual permission or individual consent of the user is definitely obtained, necessary user-related data for enabling the embodiment of the present application to operate normally is acquired.
In addition, as shown in fig. 13, another embodiment of the present invention further provides a data tracing system, where the data tracing system includes:
the data obtaining module 110 is configured to determine a data source tracing rule in a blockchain, and obtain blockchain data of the blockchain according to the data source tracing rule;
an information determining module 120, configured to determine a data attribute of the blockchain data, and determine a blockchain data characteristic and blockchain data information according to the data attribute;
A first constructing module 130, configured to construct a secondary chain structure model according to the blockchain data characteristics and the blockchain data information;
the second building module 140 is configured to design the secondary chain structure frame according to the secondary chain structure model to obtain a secondary chain structure frame model;
the block chain data fast traceability algorithm module 150 is used for performing data fusion processing on the block chain data according to the secondary chain structure in the secondary chain structure model to obtain a data fusion result, and constructing a data fast traceability model of the block chain according to the secondary chain structure frame model and the data fusion result;
and the data tracing module 160 is configured to perform data tracing on the blockchain data by using a data fast tracing model.
In one embodiment, the blockchain data fast tracing algorithm module 150 includes:
an analyzing unit 151, configured to perform data fusion processing on the block chain data according to the secondary chain structure in the secondary chain structure model, to obtain a data fusion result;
and the associating unit 152 is configured to construct a data fast source tracing model of the block chain according to the secondary chain structure frame model and the data fusion result.
It should be noted that, since the data tracing system of the present embodiment can implement the blockchain data tracing method according to any of the foregoing embodiments, the data tracing system of the present embodiment and the blockchain data tracing method according to any of the foregoing embodiments have the same technical principle and the same technical effect, and are not described herein again to avoid redundant content.
It should be noted that the block chain data fast traceability algorithm module 150 and the data traceability module 160 may adopt a pluggable software module interfacing design, that is, a software module interfacing design with small conflict and priority probability may be used, or a software module interfacing design for learning by using data learning algorithms such as a support vector machine, a clustering, a neural network, and the like may be used, so as to update and replace the identification algorithm, so as to achieve the purpose that the data traceability system is not changed, and the block chain data fast traceability algorithm module 150 and the data traceability module 160 may be continuously adjusted according to the use effect, so as to effectively buffer and avoid the impact brought by the block chain data.
It should be noted that the pluggable interface is a custom interface, which can realize the flexibility of the algorithm.
In addition, referring to fig. 14, an embodiment of the present invention further provides a data tracing system 200, where the data tracing system 200 includes a memory 202, a processor 201, and a computer program stored in the memory 202 and operable on the processor 201.
The processor 201 and memory 202 may be connected by a bus or other means.
The memory 202, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer-executable programs. Further, the memory 202 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 202 may optionally include memory located remotely from the processor 201, and such remote memory may be coupled to the processor 201 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
It should be noted that the data tracing system 200 in this embodiment may be, for example, the data tracing system in the embodiment shown in fig. 13, and all of these embodiments belong to the same inventive concept, so that these embodiments have the same implementation principle and technical effect, and detailed description is omitted here.
The non-transitory software programs and instructions required for implementing the blockchain data tracing method of the above embodiment are stored in the memory 202, and when being executed by the processor 201, the blockchain data tracing method of the above embodiment is performed, for example, the method steps S110 to S170 in fig. 1, the method steps S210 to S220 in fig. 2, the method steps S310 to S340 in fig. 3, the method step S410 in fig. 4, the method steps S510 to S520 in fig. 5, the method steps S610 to S620 in fig. 6, the method steps S710 to S730 in fig. 7, the method step S810 in fig. 10, the method steps S910 to S930 in fig. 11, and the method step S1010 in fig. 12 described above are performed.
The above described embodiments of the device are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, which are executed by a processor or a controller, for example, by a processor in the foregoing apparatus embodiment, and enable the processor to perform the blockchain data tracing method in the foregoing embodiment, for example, the method steps S110 to S170 in fig. 1, the method steps S210 to S220 in fig. 2, the method steps S310 to S340 in fig. 3, the method step S410 in fig. 4, the method steps S510 to S520 in fig. 5, the method steps S610 to S620 in fig. 6, the method steps S710 to S730 in fig. 7, the method step S810 in fig. 10, the method steps S910 to S930 in fig. 11, and the method step S1010 in fig. 12 are performed.
Further, an embodiment of the invention also provides a computer program product comprising a computer program or computer instructions, the computer program or computer instructions being stored in a computer readable storage medium, the processor of the computer device reads the computer program or the computer instructions from the computer-readable storage medium, and executes the computer program or the computer instructions, so that the computer device executes the method for tracing the blockchain data in the foregoing embodiments, for example, the above-described method steps S110 to S170 in fig. 1, method steps S210 to S220 in fig. 2, method steps S310 to S340 in fig. 3, method step S410 in fig. 4, method steps S510 to S520 in fig. 5, method steps S610 to S620 in fig. 6, method steps S710 to S730 in fig. 7, method step S810 in fig. 10, method steps S910 to S930 in fig. 11 and method step S1010 in fig. 12 are performed.
It will be understood by those of ordinary skill in the art that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
While the preferred embodiments of the present invention have been described in detail, it will be understood by those skilled in the art that the foregoing and various other changes, omissions and deviations in the form and detail thereof may be made without departing from the scope of this invention.

Claims (10)

1. A method for tracing blockchain data is characterized in that the method for tracing blockchain data comprises the following steps:
determining a data source tracing rule in a block chain, and acquiring block chain data of the block chain according to the data source tracing rule;
determining the data attribute of the block chain data, and determining the block chain data characteristic and the block chain data information according to the data attribute;
constructing a secondary chain structure model according to the block chain data characteristics and the block chain data information;
performing data fusion processing on the block chain data according to a secondary chain structure in the secondary chain structure model to obtain a data fusion result;
designing a secondary chain structure frame according to the secondary chain structure model to obtain a secondary chain structure frame model;
constructing a data rapid source tracing model of the block chain according to the secondary chain structure frame model and the data fusion result;
And performing data tracing on the block chain data by using the data fast tracing model.
2. The blockchain data tracing method according to claim 1, wherein the blockchain includes a child chain and a main chain, the blockchain data tracing method further comprising:
performing data processing on the block head information of the block chain through the main chain to obtain target state information of each sub-chain;
and constructing a secondary chain structure in the secondary chain structure model according to the target state information.
3. The method as claimed in claim 2, wherein the obtaining target status information of each sub-chain by performing data processing on the block header information of the block chain through the main chain comprises:
acquiring sub-chain codes, and classifying the block head information of the block chain according to the sub-chain codes to obtain the block head information of each sub-chain;
respectively sequencing the block head information of each sub-chain according to the height of the block head to obtain a plurality of continuous block head information;
carrying out duplicate removal processing on the continuous block header information to obtain candidate information;
and packaging the candidate information through the main chain to obtain the target state information of each sub-chain.
4. The method as claimed in claim 1, wherein the performing data fusion processing on the blockchain data according to the secondary chain structure in the secondary chain structure model to obtain a data fusion result comprises:
and verifying the block chain data according to the secondary chain structure, and storing the block chain data when the block chain data passes verification to obtain the data fusion result.
5. The method as claimed in claim 4, wherein said verifying the blockchain data according to the secondary chain structure comprises:
performing data unified coding design on the block chain data through the sub-chains in the secondary chain structure to obtain a block chain data tag;
and verifying the block chain data according to the block chain data tag.
6. The method as claimed in claim 5, wherein the blockchain data tag includes a digital signature and a hash tag, and the performing the check processing on the blockchain data according to the blockchain data tag includes:
labeling the block chain data according to the Hash label to obtain labeled block chain data;
And verifying the marked block chain data according to the digital signature.
7. The blockchain data sourcing method of claim 1, wherein the blockchain data sourcing method further comprises:
acquiring account address information of a user, user identity identification information and a hash value of marked block chain data;
performing data mapping processing according to the account address information, the user identity identification information and the hash value to obtain a mapping result;
and performing identity authentication processing on the user according to the mapping result.
8. The blockchain data tracing method according to claim 1, wherein said blockchain data tracing method further comprises:
and obtaining a source tracing vocabulary according to the data rapid source tracing model and the task priority level.
9. The method of claim 8, wherein obtaining a source-traced vocabulary according to the data fast source-traced model and the task priority level comprises:
classifying the block chain data according to the task priority to obtain a tracing type;
when the block chain data is leaked or has a data problem, performing traceability query on the block chain data according to the traceability type and the traceability method to obtain data source information and data flow information of the block chain data;
And storing the data source information and the data flow information through the data rapid traceability model to obtain the traceability vocabularies.
10. The blockchain data tracing method according to claim 1, wherein said blockchain data tracing method further comprises:
and updating the computational logic in the data fast tracing model according to the latest block chain data.
CN202210269403.0A 2022-03-18 2022-03-18 Block chain data tracing method Pending CN114676195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210269403.0A CN114676195A (en) 2022-03-18 2022-03-18 Block chain data tracing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210269403.0A CN114676195A (en) 2022-03-18 2022-03-18 Block chain data tracing method

Publications (1)

Publication Number Publication Date
CN114676195A true CN114676195A (en) 2022-06-28

Family

ID=82074294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210269403.0A Pending CN114676195A (en) 2022-03-18 2022-03-18 Block chain data tracing method

Country Status (1)

Country Link
CN (1) CN114676195A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115374189A (en) * 2022-10-25 2022-11-22 湖南木屋网络科技有限公司 Block chain-based food safety tracing method, device and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115374189A (en) * 2022-10-25 2022-11-22 湖南木屋网络科技有限公司 Block chain-based food safety tracing method, device and equipment

Similar Documents

Publication Publication Date Title
US11830004B2 (en) Blockchain transaction safety
US20230120897A1 (en) Apparatus for cryptographic resource transfer based on quantitative assessment regarding non-fungible tokens
US11416767B2 (en) Generative adversarial network model training using distributed ledger
Mayers et al. The carbon footprint of games distribution
Ahmad et al. Movie success prediction using data mining
US20210112101A1 (en) Data set and algorithm validation, bias characterization, and valuation
CN108510268B (en) Annular block chain structure, data processing method and device
CN110096903A (en) Assets verification method and block chain network system based on block chain
CN113570387B (en) Artwork tracing method based on block chain and electronic equipment
CN104050217A (en) MEDIA CONTENT SUBSTITUTION method and system
CN111415170A (en) Block chain-based food tracing method and equipment and related storage medium
US20230239156A1 (en) Anomaly analysis using a blockchain, and applications thereof
CN108470039A (en) Data processing method and device in block chain
US11823026B2 (en) Artificial intelligence system employing graph convolutional networks for analyzing multi-entity-type multi-relational data
CN114676195A (en) Block chain data tracing method
CN112036914A (en) Block chain-based edible agricultural product quality certificate management method, equipment and medium
CN110990886A (en) Intelligent decoration method, equipment and medium based on block chain
CN111177320A (en) Class case simultaneous judging method, equipment and medium based on block chain
CN115268847A (en) Block chain intelligent contract generation method and device and electronic equipment
CN109756556A (en) A kind of one-stop cloud service ecosystem
CN108600390A (en) A kind of shared car damage identification and Claims Resolution method and device based on region chain
CN108881156A (en) Inventory records method, system and computer program product based on block chain
CN105631678A (en) Component anti-counterfeiting method and component anti-counterfeiting device
CN110599206B (en) Article quality authentication method and device, storage medium and electronic equipment
CN111639328B (en) Commodity tracing method based on blockchain system and blockchain 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