CN109981673B - Block chain-based data evidence storage method, device, equipment and storage medium - Google Patents

Block chain-based data evidence storage method, device, equipment and storage medium Download PDF

Info

Publication number
CN109981673B
CN109981673B CN201910271629.2A CN201910271629A CN109981673B CN 109981673 B CN109981673 B CN 109981673B CN 201910271629 A CN201910271629 A CN 201910271629A CN 109981673 B CN109981673 B CN 109981673B
Authority
CN
China
Prior art keywords
data
information
time
queried
transaction request
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
CN201910271629.2A
Other languages
Chinese (zh)
Other versions
CN109981673A (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.)
Shanghai Peerpath Network Information Technology Co ltd
Original Assignee
Shanghai Peerpath Network Information 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 Shanghai Peerpath Network Information Technology Co ltd filed Critical Shanghai Peerpath Network Information Technology Co ltd
Priority to CN201910271629.2A priority Critical patent/CN109981673B/en
Publication of CN109981673A publication Critical patent/CN109981673A/en
Application granted granted Critical
Publication of CN109981673B publication Critical patent/CN109981673B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/108Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Abstract

The embodiment of the invention discloses a data evidence storing method, a data evidence storing device, data evidence storing equipment and a data evidence storing storage medium based on a block chain. The method is applied to a block chain network of a credible public chain, and comprises the following steps: receiving a time correlation transaction request sent by a data provider; the time correlation transaction request comprises correlation information of data to be recorded; processing the time-correlated transaction request to store the obtained transaction data into the block; and feeding back a transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block to a data provider so as to be associated with the data to be recorded. According to the embodiment of the invention, the data recording time of the data to be recorded when the data to be recorded is stored in the network world is mapped to the time interval related to the timestamp information in the credible public link, so that the recording time of the data to be recorded is well documented, the reliability of the recording time of the data to be recorded is improved, and the reliability of the network data is further improved.

Description

Block chain-based data evidence storage method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of block chains, in particular to a data evidence storing method, a data evidence storing device, data evidence storing equipment and a data evidence storing storage medium based on a block chain.
Background
With the rapid development of the internet, people pay more and more attention to the security of network data. When the network data is recorded or edited, the corresponding timestamp is needed to construct the association between the recorded data and the network time.
However, since different electronic devices record or edit network data, different deployment areas of the electronic devices are different, and a uniform consensus mechanism is not set for a timestamp when the timestamp is recorded by each electronic device, the authenticity of the timestamp corresponding to the network data is not verified. Because the existence of the stored network data at the time node corresponding to the timestamp provided by the network data can not be proved, the reliability of the network data is further reduced.
Disclosure of Invention
The invention provides a data evidence storing method, a device, equipment and a storage medium based on a block chain, which are used for improving the reliability of network data.
In a first aspect, an embodiment of the present invention provides a data verification method based on a block chain, which is applied to a block chain link point of a trusted public chain, and includes:
receiving a time correlation transaction request sent by a data provider; wherein, the time-related transaction request comprises the related information of the data to be recorded;
processing the time-correlated transaction request to store the obtained transaction data into a block;
and feeding back a transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block to the data provider so as to be associated with the data to be recorded.
In a second aspect, an embodiment of the present invention further provides a data verification apparatus based on a block chain, configured at a block link point of a trusted public chain, including:
the association request receiving module is used for receiving a time association transaction request sent by a data provider; wherein, the time-related transaction request comprises the related information of the data to be recorded;
the association request processing module is used for processing the time association transaction request so as to store the obtained transaction data into a block;
and the evidence storing information feedback module is used for feeding back the transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block to the data provider so as to be associated with the data to be recorded.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement a data evidence storing method based on a block chain as provided in an embodiment of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a block chain-based data storage method as provided in the embodiment of the first aspect.
The embodiment of the invention receives a time correlation transaction request which is sent by a data provider and comprises the correlation information of the data to be recorded; processing the time-correlated transaction request to store the obtained transaction data into the block; and feeding back the transaction data identification corresponding to the time-associated transaction request and the timestamp information of the block to a data provider so as to be associated with the data to be recorded. By adopting the technical scheme, the incidence relation between the data to be recorded and the transaction data identification of the block stored in the credible public chain and the timestamp information of the block is established, and the data recording time of the data to be recorded when the data to be recorded is stored in the network world is mapped to the time interval related to the timestamp information in the credible public chain, so that the recording time of the data to be recorded is well documented, the reliability of the recording time of the data to be recorded is improved, and the reliability of the network data is further improved.
Drawings
Fig. 1 is a flowchart of a data evidence storing method based on a block chain according to a first embodiment of the present invention;
fig. 2 is a flowchart of a data evidence storing method based on a block chain according to a second embodiment of the present invention;
fig. 3 is a flowchart of a data evidence storing method based on a block chain according to a third embodiment of the present invention;
fig. 4 is a flowchart of a data evidence storing method based on a block chain in the fourth embodiment of the present invention;
fig. 5 is a flowchart of a data evidence storing method based on a block chain in the fifth embodiment of the present invention;
fig. 6 is a block chain-based data certification device according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device in a seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a data evidence storing method based on a block chain according to a first embodiment of the present invention. The embodiment of the invention is suitable for storing the time stamp of the data to be recorded by means of the block chain network when the data to be recorded in the network world is stored. The method is executed by a data evidence storage device based on the block chain, the device is realized by software and/or hardware, and is specifically configured in the electronic equipment carrying the block chain network node.
The block chain network in which the block chain network nodes participate is a credible public chain, the scale of the block chain network nodes contained in the credible public chain reaches a certain degree, the block chain network nodes are maintained, centralized management of a management team is weakened or eliminated, and certain public credibility and influence are achieved. Preferably, the trusted public chain uses a workload certification mechanism as a consensus mechanism for generating the blocks.
The block chain network node can be a full node with certain data operation, storage and verification capabilities, and can also be a light node for storing partial block data.
As shown in fig. 1, a data evidence storing method based on a block chain includes:
s110, receiving a time correlation transaction request sent by a data provider; wherein the time-associated transaction request includes associated information of the data to be recorded.
The data provider may be a data owner of the data to be recorded, or may be a data platform for data storage or transaction. The data to be recorded may be understood as network data stored in the network world, and may be, for example, copyright data, account data, or the like.
Wherein the associated information of the data to be recorded comprises basic information of the data to be recorded. Accordingly, the basic information of the data to be recorded may be the data to be recorded itself, or may also be data identification information capable of uniquely identifying the data to be recorded, such as a digital fingerprint.
Optionally, the data provider may send a time-related transaction request to the blockchain network by a blockchain network node deployed by the data provider itself; accordingly, a block generation node in the blockchain network receives and processes the time-correlated transaction request. Or alternatively, when the data provider does not have the participation qualification for participating in the blockchain network, the time correlation transaction request can be indirectly sent to the blockchain network by the proxy node.
And S120, processing the time correlation transaction request to store the obtained transaction data into a block.
Specifically, basic information of data to be recorded in the time-related transaction request is acquired; and processing the basic information of the data to be recorded to obtain the transaction data corresponding to the time-associated transaction request, and storing the obtained transaction data into the block body of the block. Meanwhile, the transaction data identification obtained by the hash calculation of the time-related transaction request, the block identification obtained by the hash calculation of every two transaction data in the block and the timestamp information when the block is output are recorded in the block head of the block.
Optionally, if the basic information of the data to be recorded includes the data identification information of the data to be recorded, the data identification information of the data to be recorded is directly processed to obtain the transaction data corresponding to the time-associated transaction request.
Or optionally, if the basic information of the data to be recorded includes the data to be recorded, acquiring the data to be recorded in the time-correlated transaction request, and generating data identification information according to the data to be recorded; and processing the data identification information of the data to be recorded to obtain the transaction data corresponding to the time-associated transaction request.
For example, the data identification information is generated according to the data to be recorded, and a specific algorithm may be adopted to convert the data to be recorded into a character string with a set length. For example, a digital fingerprint obtained by calculating data to be recorded by using a one-way hash function is data identification information of the data to be recorded.
S130, feeding back the transaction data identification corresponding to the time-associated transaction request and the timestamp information of the block to the data provider so as to be associated with the data to be recorded.
Illustratively, the transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block are fed back to the data provider network, so that the data provider can conveniently construct an association relationship between the transaction data identifier and the timestamp information and the data to be recorded. Optionally, the data provider may store an association relationship between the data to be recorded, the transaction data identifier, and the timestamp information locally on the used device, in an associated storage device of the used device, or in a cloud; and/or storing association information among data identification information of the data to be recorded, transaction data identification and time stamp information. Through the construction of the association relationship, the data provider can inquire and acquire the transaction data identification and/or the timestamp information based on the data to be recorded and/or the data identification information of the data to be recorded.
It can be understood that, when recording data to be recorded, a data provider or a data owner adds a data recording time to the data to be recorded according to a time node when the storage device stores the data to be recorded, so as to mark the recording time of the data. Meanwhile, when the data provider or the data owner records the data to be recorded, the data provider also constructs the incidence relation between the data to be recorded and the transaction data identifier and the timestamp information in the blockchain network, and further maps the data recording time of the data to be recorded to the credible time corresponding to the timestamp information in the blockchain network and the time interval before the credible time. Therefore, the transaction data identification and the timestamp information can be used as auxiliary data to prove the data recording time of the data to be recorded, so that the data recording time of the data to be recorded presented by the data provider is more credible, and the credibility of the data to be recorded is further enhanced.
In order to facilitate the data verifier to search the timestamp information in the blockchain network so as to verify the data recording time of the data to be recorded, the block identifier of the block can be fed back to the data provider after the obtained transaction data is stored in the block, so that the data provider can construct the association relationship between the block identifier and the data to be recorded.
The embodiment of the invention receives a time correlation transaction request which is sent by a data provider and comprises the correlation information of the data to be recorded; processing the time-correlated transaction request to store the obtained transaction data into the block; and feeding back the transaction data identification corresponding to the time-associated transaction request and the timestamp information of the block to a data provider so as to be associated with the data to be recorded. By adopting the technical scheme, the incidence relation between the data to be recorded and the transaction data identification of the block stored in the credible public chain and the timestamp information of the block is established, and the data recording time of the data to be recorded when the data to be recorded is stored in the network world is mapped to the time interval related to the timestamp information in the credible public chain, so that the recording time of the data to be recorded is well documented, the reliability of the recording time of the data to be recorded is improved, and the reliability of the network data is further improved.
On the basis of the technical solutions of the above embodiments, in order to narrow the time interval for mapping the data recording time of the data to be recorded to the block chain, before receiving the time-related transaction request sent by the data provider, the following steps may be added: acquiring initial time information of data to be recorded, and taking the initial time information as associated information of the data to be recorded. Wherein, the initial time information of the data to be recorded can be understood as the time reference information used for identifying the time before the data to be recorded is recorded in the network world; here, the time reference information may be time information (e.g., time stamp information) or associated information (e.g., block height information of a block) from which the time information can be obtained by a setting operation.
For example, the initial time information for acquiring the data to be recorded may be: receiving a timestamp acquisition request sent by a data provider; processing the timestamp acquisition request to acquire timestamp information of at least one generated block and/or a block height of the at least one generated block; and feeding back the timestamp information and/or the corresponding block height as initial time information to the data provider. The at least one generated block may be at least one of the latest set number of blocks. Wherein the set number can be set by a skilled person as desired or according to empirical values.
It is understood that, in order to further refine the time interval of the data recording time of the data to be recorded, it is preferable to obtain the current latest block in the block chain; correspondingly, obtaining the timestamp information of at least one generated block, which may be obtaining the timestamp information of the current latest block; the block height of at least one generated block is obtained, and may be the block height of the current latest block.
It should be noted that, when the association information of the data to be recorded further includes the initial time information, when the time-associated transaction request is processed, the basic information and the initial time information of the data to be recorded of the time-associated transaction request are obtained, the basic information and the initial time information of the data to be recorded are processed, the transaction data corresponding to the time-associated transaction request is obtained, and the obtained transaction data is stored in the block body of the block.
Optionally, if the associated information of the data to be recorded includes the data identification information and the initial time information of the data to be recorded, the basic information and the initial time information of the data to be recorded are processed, which may be: calculating by adopting a specific algorithm according to the data identification information and the initial time information of the data to be recorded to obtain a character string with a set length, and replacing the data identification information of the data to be recorded by adopting a calculation result; and processing the data identification information of the data to be recorded to obtain the transaction data corresponding to the time-associated transaction request.
Or optionally, if the associated information of the data to be recorded includes the data to be recorded and the initial time information, processing the basic information and the initial time information of the data to be recorded may be: calculating by adopting a specific algorithm according to the data to be recorded and the initial time information to generate data identification information; or, calculating according to the data to be recorded by adopting a first specific algorithm to obtain data identification information, calculating according to the initial time information and the data identification information by adopting a second specific algorithm, and replacing the data identification information by adopting a calculation result; and processing the data identification information of the data to be recorded to obtain the transaction data corresponding to the time-associated transaction request. Wherein the specific algorithm, the first specific algorithm and/or the second specific algorithm may be the same or different. Illustratively, the specific algorithm, the first specific algorithm, and the second specific algorithm may each employ a one-way hash function.
According to the technical scheme, the incidence relation between the time information of the data to be recorded before the data to be recorded is recorded in the network world and the data to be recorded is established by introducing the initial time information, the data recording time of the data to be recorded is mapped to the time interval between the time node corresponding to the initial time information and the credible time corresponding to the timestamp information in the block chain network, the initial time of the data to be recorded before the data to be recorded is recorded in the network world is enabled to be traceable, meanwhile, the time interval for mapping the data recording time of the data to be recorded to the block chain is shortened, and the time information carried by the data to be recorded is enabled to be more accurate.
Example two
Fig. 2 is a flowchart of a data verification method based on a block chain in the second embodiment of the present invention, and the second embodiment of the present invention performs optimization and improvement on the basis of the technical solutions of the above embodiments.
Further, refining the "time-associated transaction request" to "the time-associated transaction request includes a transfer transaction request; the transfer transaction request includes a transfer party account address and a set transfer amount "; correspondingly, the operation of processing the time-related transaction request is refined into the operation of determining data identification information according to the related information of the data to be recorded in the transfer transaction request, and a derivative account address is generated according to the data identification information; and acquiring a transfer party account address and a set transfer amount in the transfer Transaction request, and transferring the set transfer amount from the transfer party account address to the derived account address "so as to perfect a data storage mechanism when the Transaction request type processed by the block chain network is a readable field Transaction request (such as a Transaction request of UTXO (un-expended Transaction Output)).
As shown in fig. 2, a data evidence storing method based on a block chain includes:
s210, receiving a time correlation transaction request sent by a data provider.
Wherein the time correlation transaction request carries correlation information of data to be recorded; the time-correlated transaction request comprises a transfer transaction request; the transfer transaction request carries a transfer party account address and a set transfer amount.
The transfer party account address is at least one account address which is provided by the data provider and can be used for carrying out transfer transaction in the blockchain network. It will be appreciated that in order to reduce the risk to the data provider in the subsequent processing of the transfer transaction request, it is preferable to use the trusted account address of the data provider as the transferor account. The set transfer amount may be a preset fixed value or a randomly set variable value, and is specifically set by the data provider according to the demand.
S221, determining data identification information according to the associated information of the data to be recorded in the transfer transaction request, and generating a derivative account address according to the data identification information.
The associated information of the data to be recorded comprises basic information of the data to be recorded. The basic information of the data to be recorded comprises the data to be recorded and/or data identification information of the data to be recorded. Specifically, data identification information is determined according to basic information and/or initial time information of data to be recorded, and according to an account generation logic followed by the block chain network, an account address processable by the block chain network is derived by taking the data identification information as a seed and is used as a derived account address to be used as a transfer party account address in the transfer transaction request.
Optionally, the data identification information is determined according to the basic information of the data to be recorded, which may be to obtain the data to be recorded itself included in the basic information of the data to be recorded, and convert the data to be recorded into a character string with a set length by using a specific algorithm to obtain the data identification information.
Or, optionally, determining the data identification information according to the basic information of the data to be recorded, where the data identification information of the data to be recorded included in the basic information of the data to be recorded is obtained, and the data identification information of the data to be recorded is directly used as the data identification information.
The association information of the data to be recorded may further include initial time information. Wherein the initial time information is used for identifying the time reference information before the data to be recorded is recorded in the network world.
Or optionally, determining the data identification information according to the associated information of the data to be recorded, which may be to obtain the data to be recorded itself and the initial time information included in the basic information of the data to be recorded, and convert the data to be recorded and the initial time information into a character string with a set length by using a specific algorithm to obtain the data identification information.
Or optionally, determining the data identification information according to the associated information of the data to be recorded, which may be to obtain the data identification information of the data to be recorded included in the basic information of the data to be recorded, convert the data identification information and the initial time information of the data to be recorded into a character string with a set length by using a specific algorithm, and update the data identification information according to the obtained character string.
Or optionally, determining data identification information according to the associated information of the data to be recorded, where the data to be recorded included in the basic information of the data to be recorded is obtained, and the data to be recorded is converted into a character string with a set length by using a first specific algorithm; and converting the obtained character string and the initial time information into character strings with the same length as data identification information by adopting a second specific algorithm.
It can be understood that, since the data identification information is generated based on the initial time information, at the time node of the data identification information generation, the association relationship between the data to be recorded and the initial time information is correspondingly constructed, so that the initial time of the data to be recorded before being recorded in the network world is traceable.
S222, obtaining the transfer party account address and the set transfer amount in the transfer transaction request, and transferring the set transfer amount from the transfer party account address to the derivative account address.
Specifically, a transfer party account address and a set transfer amount in the transfer transaction request are obtained; the transfer transaction request is processed to transfer the element of the set transfer amount from the transferor account address to the derivative account address.
It is to be understood that the set transfer amount may be at least one; accordingly, the transfer operation may be at least one. The transfer operation can be executed at least once from the transfer party account address to the derived account address, and the residual transfer operation can be transferred from the derived account address to the transfer party account address and/or from the transfer party account address to the derived account address when the derived account address has a certain amount of money.
And S223, storing the obtained transaction data into the block.
It can be understood that, because the transaction data includes the derived account address generated based on the association information of the data to be recorded, the data to be recorded is associated with the timestamp information of the block in which the transaction data is stored through the storage of the derived account address in the block, and the data recording time of the data to be recorded in the network world is mapped into the block chain network.
And S230, feeding back the transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block to the data provider so as to be associated with the data to be recorded.
The method comprises the steps of refining a time-related transaction request into a transfer transaction request comprising a transfer party account address and a set transfer amount, specifically refining the operation of processing the time-related transaction request into data identification information determined according to the related information of data to be recorded in the transfer transaction request, and generating a derivative account address according to the data identification information; the transfer party account address and the set transfer amount in the transfer transaction request are obtained, and the set transfer amount is transferred from the transfer party account address to the derived account address, so that the transaction data containing the derived account address is stored in the block chain, the data to be recorded is associated with the derived account address and the timestamp information of the block, and a data evidence storing mechanism in the block chain network for processing the readable field transaction request type is further perfected.
EXAMPLE III
Fig. 3 is a flowchart of a data verification method based on a block chain in a third embodiment of the present invention, and the third embodiment of the present invention performs optimization and improvement on the basis of the technical solutions of the foregoing embodiments.
Further, refining "time-associated transaction request" to "the time-associated transaction request includes assistance data generation transaction request"; correspondingly, the operation "processing the time-related transaction request" is refined into "generating the related information of the data to be recorded in the transaction request according to the auxiliary data, operating an auxiliary query intelligent contract in the block chain network, and using an obtained operation result as the auxiliary data" to improve a data evidence mechanism when the transaction request type processed by the block chain network is the transaction request of the executable code segment (for example, the intelligent contract executed by an Ethernet Virtual Machine (EVM)).
As shown in fig. 3, a data evidence storing method based on a block chain includes:
and S310, receiving a time correlation transaction request sent by a data provider.
Wherein the time correlation transaction request carries correlation information of data to be recorded; the time-correlated transaction request includes an assistance data generation transaction request.
The auxiliary data generation transaction request is used for generating auxiliary data, and is used for establishing time association between the data to be recorded and the block chain network through storage of the auxiliary data in the blocks, so that time mapping of data recording time of the data to be recorded in the network world in the block chain network is realized.
S320, generating the associated information of the data to be recorded in the transaction request according to the auxiliary data, operating the auxiliary query intelligent contract in the block chain network, and taking the obtained operation result as the auxiliary data so as to store the transaction data comprising the auxiliary data into the block.
The auxiliary query intelligent contract is an intelligent contract which is preset for processing the associated information of the data to be recorded, and is used for obtaining the corresponding operation result of the data to be recorded by taking the associated information of the data to be recorded as input and operating the auxiliary query intelligent contract. And the operation result of the auxiliary query intelligent contract is the generated auxiliary data. The associated information of the data to be recorded comprises basic information of the data to be recorded; the basic information of the data to be recorded comprises the data to be recorded and/or data identification information of the data to be recorded. Or, the associated information of the data to be recorded further includes initial time information of the data to be recorded.
In order to simplify the code length of the auxiliary query intelligent contract and the time and memory resources consumed by processing the auxiliary query intelligent contract, optionally, the auxiliary data generation transaction request may be a data storage transaction request; correspondingly, the auxiliary query intelligent contract can be a data storage intelligent contract, so that the associated information of the data to be recorded is stored in the block; correspondingly, the operation result obtained by the auxiliary query of the intelligent contract is the storage result of the associated information of the data to be recorded.
It can be understood that, since the transaction data includes auxiliary data (i.e. the operation result of the auxiliary query intelligence contract) generated based on the association information of the data to be recorded, the data to be recorded is associated with the timestamp information of the block storing the transaction data by storing the auxiliary data in the block, and the data recording time of the data to be recorded in the network world is mapped into the block chain network.
S330, feeding back the transaction data identification corresponding to the time-associated transaction request and the timestamp information of the block to the data provider so as to be associated with the data to be recorded.
The embodiment of the invention generates the transaction request by refining the time-related transaction request into the auxiliary data, and specifically refines the operation of processing the time-related transaction request into the generation of the associated information of the data to be recorded in the transaction request according to the auxiliary data, runs the auxiliary query intelligent contract in the block chain network, and takes the obtained running result as the auxiliary data, so that the transaction data containing the running result of the auxiliary query intelligent contract is stored in the block chain, and further the running result of the data to be recorded and the auxiliary query intelligent contract is associated with the timestamp information of the block, thereby further perfecting the data evidence storage mechanism in the block chain network for processing the transaction request of the executable code segment type.
Example four
Fig. 4 is a flowchart of a data evidence storing method based on a block chain in the fourth embodiment of the present invention. The embodiment of the invention is optimized and improved on the basis of the technical scheme of each embodiment.
Further, after the operation of feeding back the transaction data identifier corresponding to the time-related transaction request and the timestamp information of the block to the data provider, additionally receiving a time validation transaction request sent by a data validator; the time verification transaction request comprises the association information of the data to be queried, the auxiliary data to be verified and the identification of the transaction data to be queried; processing the time verification transaction request to generate auxiliary data to be queried according to the associated information of the data to be queried; if the auxiliary data to be inquired is the same as the auxiliary data to be verified, searching a target block where the auxiliary data to be verified is located in a block chain according to the transaction data identifier to be inquired; and obtaining the timestamp information of the target block as target timestamp information and feeding the target timestamp information back to the data verifier so as to perfect a verification mechanism of the data verifier for the data to be recorded.
As shown in fig. 4, a data evidence storing method based on a block chain includes:
s410, receiving a time correlation transaction request sent by a data provider; wherein the time-associated transaction request includes associated information of the data to be recorded.
And S420, processing the time correlation transaction request, and storing the obtained transaction data into a block.
And S430, feeding back the transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block to the data provider so as to be associated with the data to be recorded.
S440, receiving a time verification transaction request sent by a data verification party; the time verification transaction request comprises the association information of the data to be queried, the auxiliary data to be verified and the identification of the transaction data to be queried.
The data to be inquired corresponds to the data to be recorded; when the auxiliary data to be verified and the data to be inquired serve as the associated information of the data to be recorded, the intermediate data obtained after the block chain network is processed correspond to each other; and when the transaction data identifier to be inquired corresponds to the transaction data identifier obtained after the data to be inquired is processed in the block chain network and is used as the data to be recorded. The associated information of the data to be queried comprises basic information of the data to be queried; the basic information of the data to be queried comprises the data to be queried or data identification information of the data to be queried. Optionally, the association information of the data to be queried further includes initial time information of the data to be queried.
When the data verifier has the acquisition requirement of the network data, a time verification transaction request is generated based on the associated information of the network data to be acquired, and the generated time verification transaction request is sent to the block chain network to verify whether the data recording time of the network data to be acquired is credible. It can be understood that the data verifier may obtain, from the data provider, the association information of the data to be queried, the auxiliary data to be verified, and the transaction data identifier to be queried, so as to verify the time information of the data to be queried.
Optionally, when the data provider stores the association information of the data to be queried, the auxiliary data to be verified, and/or the transaction data identifier to be queried in the local device of the data provider, the associated storage device of the used device, or the cloud, the data provider may directly obtain the corresponding data in an offline manner. Or optionally, when the data provider stores the association information of the data to be queried, the auxiliary data to be verified, and/or the transaction data identifier to be queried in the block of the application chain, the data verifier may perform link acquisition of the related data by participating in a block chain network node of the same application chain network, by sending a data acquisition transaction request, or by processing a data transmission transaction request, so as to send the related data to the data verifier.
S450, processing the time verification transaction request to generate auxiliary data to be queried according to the associated information of the data to be queried.
And S460, if the auxiliary data to be queried is the same as the auxiliary data to be verified, searching a target block where the auxiliary data to be verified is located in a block chain according to the transaction data identifier to be queried.
Optionally, the associated information of the data to be queried includes the data to be queried and/or data identification information of the data to be queried; the auxiliary data to be verified comprises an account address to be verified.
Correspondingly, generating auxiliary data to be queried according to the associated information of the data to be queried comprises the following steps: and determining data identification information according to the associated information of the data to be queried, and generating a derived account address to be queried according to the data identification information. The specific operation of determining the data identification information according to the association information of the data to be queried is completely the same as the operation mode of determining the data identification information according to the association information of the data to be recorded, and is not repeated here.
Correspondingly, if the auxiliary data to be queried is the same as the auxiliary data to be verified, searching a target block where the auxiliary data to be verified is located in a block chain according to the transaction data identifier to be queried, including: and if the derived account address to be inquired is the same as the account address to be verified, searching a target block where the account address to be verified is located in the block chain according to the transaction data identifier to be inquired.
Illustratively, according to the account generation logic followed by the blockchain network, the account address processable by the blockchain network is derived as the derived account address to be queried by using the data identification information of the data to be queried as a seed.
Comparing the derived account address to be queried with the account address to be verified, and when the account address to be queried is the same as the account address to be verified, indicating that the data to be queried is processed in the block chain network in the same way, and considering that the data to be queried is credible, thereby further verifying the credibility of the data recording time of the data to be queried; when the address of the account to be queried and verified is different from the address of the account to be verified, the data to be queried is not credible, and therefore the credibility of the data recording time of the data to be queried does not need to be verified. When the data recording time of the data to be queried is verified, a target block where an account address to be verified is located is searched in a block chain according to the transaction data identifier to be queried, and then timestamp information of the target block is obtained and used as target timestamp information, so that the credibility of the data recording time of the data to be queried is verified according to the target timestamp information.
Or optionally, the associated information of the data to be queried includes the data to be queried or data identification information of the data to be queried; the auxiliary data to be verified comprises data identification information of the data to be queried.
Correspondingly, generating auxiliary data to be queried according to the associated information of the data to be queried comprises the following steps: and according to the associated information of the data to be queried, operating the auxiliary query intelligent contract in the block chain network, and taking the obtained operation result as the auxiliary data to be queried.
Illustratively, the associated information of the data to be queried is used as input, the operation result corresponding to the data to be queried is obtained through the operation of the auxiliary query intelligent contract, and the obtained operation result is used as the auxiliary data to be queried. The auxiliary query intelligent contract is the same as the auxiliary query intelligent contract adopted when the time-associated transaction request is processed.
The auxiliary data to be inquired and the auxiliary data to be verified are compared, when the auxiliary data to be inquired and the auxiliary data to be verified are the same or the data identification of the auxiliary data to be inquired and the auxiliary data to be verified are the same, the fact that the data to be inquired is processed in the block chain network in the same mode is indicated, the data to be inquired can be considered to be credible, and therefore the credibility of the data recording time of the data to be inquired can be further verified; when the address of the account to be queried and verified is different from the address of the account to be verified, the data to be queried is not credible, and therefore the credibility of the data recording time of the data to be queried does not need to be verified. When the data recording time of the data to be queried is verified, a target block where the auxiliary data to be verified is located is searched in a block chain according to the transaction data identifier to be queried, and then time stamp information of the target block is obtained and used as target time stamp information, so that the credibility of the data recording time of the data to be queried is verified according to the target time stamp information.
The data identification of the auxiliary data to be queried can adopt a specific algorithm to convert the auxiliary data to be queried into a character string with a set length, so as to obtain data identification information of the auxiliary data to be queried; the specific algorithm is the same as the algorithm used for generating the data identification information according to the determined data to be recorded. For example, a one-way hash function is used to calculate the auxiliary data to be queried to obtain a data fingerprint, and the obtained data fingerprint is used as the data identification information of the auxiliary data to be queried.
S470, obtaining the timestamp information of the target block as target timestamp information and feeding back the target timestamp information to the data verifier.
After the data verifier receives the target timestamp information, the data recording time of the data to be inquired can be considered to be credible; or the target timestamp information is compared with the data recording time of the data to be inquired in an offline mode, and when the data recording time is the same as the target timestamp information, the data recording time of the data to be inquired can be considered to be credible.
According to the embodiment of the invention, after the transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block are fed back to the data provider, the verification operation of the data to be queried is added, so that the transaction request is verified by receiving and processing the time sent by the data verifier, the auxiliary data to be queried corresponding to the data to be queried is generated, and the purpose of verifying the data to be queried by the data verifier is achieved according to the comparison between the auxiliary data to be queried and the auxiliary data to be verified and the acquisition of the timestamp information of the target block where the auxiliary data to be verified is located, and the verification mechanism of the data verifier on the data to be recorded is perfected.
On the basis of the technical solutions of the foregoing embodiments, in order to facilitate the search of a target block, a to-be-queried block identifier may also be included in the time verification transaction request, and when a current block corresponding to the to-be-queried block identifier is searched in a block chain and the current block includes the to-be-queried transaction data identifier and the to-be-verified auxiliary data, the current block is determined to be the target block.
On the basis of the technical solutions of the above embodiments, in order to further enhance the accuracy of the verification result of the data to be queried, the association information of the data to be queried further includes initial time information of the data to be queried. Correspondingly, the data verifier also obtains the initial time information of the data to be queried from the data provider; the initial time information of the data to be queried can be understood as time reference information before the network world is recorded when the data to be queried is identified as the data to be recorded; here, the time reference information may be time information (e.g., time stamp information) or associated information (e.g., block height information of a block) from which the time information can be obtained by a setting operation.
Correspondingly, when the auxiliary data to be queried is generated according to the associated information of the data to be queried, the auxiliary data to be queried can be generated according to the basic information and the initial time information of the data to be queried.
Exemplarily, if the initial time information is initial timestamp information, determining data identification information of the data to be queried according to the basic information and the initial timestamp information of the data to be queried, and generating auxiliary data to be queried according to the data identification of the data to be queried; if the initial time information is a block high area, searching a reference block corresponding to the block height in the block chain; acquiring time stamp information of a reference block as initial time stamp information; and determining data identification information of the data to be queried according to the basic information and the initial timestamp information of the data to be queried, and generating auxiliary data to be queried according to the data identification of the data to be queried.
Optionally, if the basic information of the data to be queried includes the data identifier information of the data to be queried, determining the data identifier information of the data to be queried according to the basic information and the initial timestamp information of the data to be queried, which may be: according to the data identification information and the initial time information of the data to be queried, a specific algorithm is adopted for calculation to obtain a character string with a set length, and the calculation result is adopted to replace the data identification information of the data to be queried. The basic information of the data to be inquired corresponds to the basic information of the data to be recorded, and the adopted specific algorithm is consistent with the specific algorithm for processing the data to be recorded.
Or optionally, if the associated information of the data to be queried includes the data to be queried and the initial time information, processing the basic information and the initial time information of the data to be queried may be: calculating by adopting a specific algorithm according to the data to be inquired and the initial time information to generate data identification information; or, calculating by adopting a first specific algorithm according to the data to be inquired to obtain data identification information, calculating by adopting a second specific algorithm according to the initial time information and the data identification information, and replacing the data identification information by adopting a calculation result. Wherein the specific algorithm, the first specific algorithm and/or the second specific algorithm may be the same or different. Illustratively, the specific algorithm, the first specific algorithm, and the second specific algorithm may each employ a one-way hash function. The basic information of the data to be inquired corresponds to the basic information of the data to be recorded, and the adopted specific algorithms are consistent with the specific algorithms for processing the data to be recorded.
It should be noted that, because the data identification information is generated based on the initial time information, the association relationship between the data to be recorded and the initial time information is correspondingly constructed at the time node of the data identification information generation, so that the initial time trace before the data to be queried is recorded in the network world as the data to be recorded is made to be continuous.
The initial time information or the data identification information carrying the initial time information is used as a generation basis of the auxiliary data to be queried, so that when the auxiliary data to be queried is compared with the auxiliary data to be verified, if the auxiliary data to be queried is the same as the auxiliary data to be verified, the initial time information of the data to be queried can be directly indicated to be the same as the initial time information when the auxiliary data to be verified is generated; or the data identification information indicating the data to be queried is the same as the data identification information when the auxiliary data to be verified is generated, and the initial time information indicating the data to be queried is indirectly the same as the initial time when the auxiliary data to be verified is generated. The verification of the time node of the data to be inquired as the data to be recorded in the network world can be realized by adopting the comparison operation of the auxiliary data to be inquired and the auxiliary data to be verified.
EXAMPLE five
Fig. 5 is a flowchart of a data certification method based on a block chain in the fifth embodiment of the present invention, and the fourth embodiment of the present invention performs optimization and improvement on the basis of the technical solutions provided in the fourth embodiment.
Further, a time validation transaction request is refined into the time validation transaction request comprising the associated information of the data to be queried, the auxiliary data to be validated, the identification of the transaction data to be queried and the timestamp information to be validated; correspondingly, the time stamp information of the target block is acquired and fed back to the data verifier as target time stamp information, and the acquired time stamp information of the target block is replaced by the time stamp information of the target block as target time stamp information, compared with the time stamp information to be verified, and a comparison result is fed back to the data verifier, so that a verification mechanism of the data verifier for data to be recorded is perfected, and visual feedback of the verification result is realized.
As shown in fig. 5, a data evidence storing method based on a block chain includes:
s510, receiving a time correlation transaction request sent by a data provider; wherein the time-associated transaction request includes associated information of the data to be recorded.
S520, processing the time correlation transaction request, and storing the obtained transaction data into a block.
S530, feeding back the transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block to the data provider so as to be associated with the data to be recorded.
And S540, receiving a time verification transaction request sent by the data verifier.
The time verification transaction request comprises the association information of the data to be queried, the auxiliary data to be verified, the transaction data identifier to be queried and the timestamp information to be verified.
Optionally, the to-be-verified timestamp information includes a to-be-verified termination timestamp, where the to-be-verified termination timestamp corresponds to a data recording time corresponding to the data to be queried as the to-be-recorded data.
And S550, processing the time verification transaction request to generate auxiliary data to be queried according to the associated information of the data to be queried.
And S560, if the auxiliary data to be queried is the same as the auxiliary data to be verified, searching a target block where the auxiliary data to be verified is located in a block chain according to the transaction data identifier to be queried.
S570, acquiring the timestamp information of the target block as target timestamp information, comparing the target timestamp information with the to-be-verified timestamp information, and feeding back a comparison result to the data verifier.
Acquiring timestamp information of a target block as target timestamp information, and comparing the target timestamp information with a to-be-verified termination timestamp; when the target timestamp information is the same as the to-be-verified termination timestamp, feeding back a comparison result to the data verifier to inform the data verifier that the data recording time of the to-be-queried data passes verification; otherwise, the data verifier is informed that the data recording time of the data to be inquired is not verified.
It is understood that, in order to further enhance the accuracy of the verification result of the data to be queried, it is preferable to use the generated timestamp information of the block as the data recording time after processing the time association request of the association information of the data to be recorded when the data to be queried is used as the data to be recorded. Correspondingly, the data recording time of the data to be inquired is used as the time stamp of the termination to be verified. Correspondingly, when the obtained target timestamp information of the target block is the same as the to-be-verified termination timestamp, a comparison result is fed back to the data verifier to inform the data verifier that the data recording time of the to-be-queried data passes verification; otherwise, the data verifier is informed that the data recording time of the data to be inquired is not verified.
EXAMPLE six
Fig. 6 is a block chain-based data certification device according to a sixth embodiment of the present invention. The embodiment of the invention is suitable for storing the time stamp of the data to be recorded by means of the block chain network when the data to be recorded in the network world is stored. The apparatus is implemented by software and/or hardware, and is specifically configured in an electronic device carrying a blockchain network node. The block chain network in which the block chain network nodes participate is a credible public chain, the scale of the block chain network nodes contained in the credible public chain reaches a certain degree, the block chain network nodes are maintained, centralized management of a management team is weakened or eliminated, and certain public credibility and influence are achieved. Preferably, the trusted public chain uses a workload certification mechanism as a consensus mechanism for generating the blocks.
Fig. 6 shows a data evidence storage apparatus based on a blockchain, which includes: an association request receiving module 610, an association request processing module 620 and a evidence storing information feedback module 630.
The association request receiving module 610 is configured to receive a time association transaction request sent by a data provider; wherein, the time-related transaction request comprises the related information of the data to be recorded;
an association request processing module 620, configured to process the time-associated transaction request, so as to store the obtained transaction data in a block;
the evidence storing information feedback module 630 is configured to feed back the transaction data identifier corresponding to the time-related transaction request and the timestamp information of the block to the data provider so as to be related to the data to be recorded.
The embodiment of the invention receives a time correlation transaction request which is sent by a data provider and comprises the correlation information of the data to be recorded through a correlation request receiving module; processing the time correlation transaction request through a correlation request processing module so as to store the obtained transaction data into a block; and feeding back the transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block to a data provider through a certificate-storing information feedback module so as to be associated with the data to be recorded. By adopting the technical scheme, the incidence relation between the data to be recorded and the transaction data identification of the block stored in the credible public chain and the timestamp information of the block is established, and the data recording time of the data to be recorded when the data to be recorded is stored in the network world is mapped to the time interval related to the timestamp information in the credible public chain, so that the recording time of the data to be recorded is well documented, the reliability of the recording time of the data to be recorded is improved, and the reliability of the network data is further improved.
Further, the associated information of the data to be recorded includes the basic information to be recorded, and/or initial time information of the data to be recorded.
Further, the time-correlated transaction request comprises a transfer transaction request; the transfer transaction request comprises a transfer party account address and a set transfer amount;
accordingly, the association request processing module 620 includes:
the derived account generation unit is used for determining data identification information according to the associated information of the data to be recorded in the transfer transaction request and generating a derived account address according to the data identification information;
and the transfer processing unit is used for acquiring the transfer party account address and the set transfer amount in the transfer transaction request, and transferring the set transfer amount from the transfer party account address to the derivative account address.
Further, the time-correlated transaction request comprises an assistance data generation transaction request;
accordingly, the association request processing module 620 includes:
and the intelligent contract running unit is used for generating the associated information of the data to be recorded in the transaction request according to the auxiliary data, running the auxiliary query intelligent contract in the block chain network, and taking the obtained running result as the auxiliary data.
Further, the certificate storing information feedback module 630 is further configured to:
after storing the obtained transaction data into the block, feeding back the block identification of the block to the data provider.
Further, the apparatus further includes an initial timestamp obtaining module configured to:
before receiving a time-related transaction request sent by a data provider, receiving a timestamp acquisition request sent by the data provider;
processing the timestamp acquisition request to acquire timestamp information of at least one generated block and/or a block height of the at least one generated block;
and feeding back the timestamp information and/or the corresponding block height as initial time information to the data provider.
Further, the initial timestamp acquiring module, when executing acquiring timestamp information of at least one generated block, is specifically configured to:
and acquiring the timestamp information of the current latest block.
Further, the apparatus further comprises:
the verification request receiving module is used for receiving the time verification transaction request sent by the data verifier after feeding back the transaction data identifier corresponding to the time correlation transaction request and the timestamp information of the block to the data provider; the time verification transaction request comprises the association information of the data to be queried, the auxiliary data to be verified and the identification of the transaction data to be queried;
the auxiliary data to be queried generating module is used for processing the time verification transaction request so as to generate auxiliary data to be queried according to the associated information of the data to be queried;
the target block searching module is used for searching a target block where the auxiliary data to be verified is located in a block chain according to the transaction data identifier to be queried when the auxiliary data to be queried is the same as the auxiliary data to be verified;
and the target timestamp feedback module is used for acquiring timestamp information of the target block as target timestamp information and feeding the target timestamp information back to the data verifier.
Further, the time validation transaction request also comprises timestamp information to be validated;
correspondingly, the device further comprises a comparison result feedback module, configured to:
after a target block where the auxiliary data to be verified is located is searched in a block chain, obtaining timestamp information of the target block as target timestamp information, comparing the target timestamp information with the timestamp information to be verified, and feeding back a comparison result to the data verifier.
Further, the associated information of the data to be queried includes basic information of the data to be queried and/or initial time information of the data to be queried.
Further, the auxiliary data to be verified comprises an account address to be verified;
correspondingly, the auxiliary data to be queried generating module comprises:
and the to-be-queried derived account generating unit is used for determining data identification information according to the association information of the to-be-queried data and generating a to-be-queried derived account address according to the data identification information.
Further, the auxiliary data to be verified comprises data identification information of the data to be queried;
correspondingly, the auxiliary data to be queried generating module comprises:
and the auxiliary data to be inquired generation unit is used for operating the auxiliary inquiry intelligent contract in the block chain network according to the associated information of the data to be inquired and taking the obtained operation result as the auxiliary data to be inquired.
Further, the time verification transaction request also comprises a block identifier to be queried;
correspondingly, the target block searching module comprises:
and the target block determining unit is used for searching a current block corresponding to the to-be-queried block identifier and determining the current block as the target block when the current block comprises the to-be-queried transaction data identifier and the to-be-verified auxiliary data.
The data evidence storing device based on the block chain can execute the data evidence storing method based on the block chain provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the data evidence storing method based on the block chain.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present invention, where the electronic device specifically carries a blockchain network node, a blockchain network in which the blockchain network node participates is a public trusted link, and the size of the blockchain network node included in the public trusted link reaches a certain degree, and the blockchain network node performs maintenance to weaken or eliminate centralized management of a management team, and has certain public trust and influence. Preferably, the trusted public chain uses a workload certification mechanism as a consensus mechanism for generating the blocks.
The electronic device shown in fig. 7 includes: an input device 710, an output device 720, a processor 730, and a storage device 740.
The input device 710 is used for receiving a time-related transaction request sent by a data provider;
an output device 720, configured to feed back, to the data provider, a transaction data identifier corresponding to the time-related transaction request and timestamp information of the block;
one or more processors 730;
a storage device 740 for storing one or more programs.
In fig. 7, a processor 730 is taken as an example, the input device 710 of the medical imaging apparatus may be connected to the output device 720, the processor 730 and the storage device 740 through a bus or other means, and the processor 730 and the storage device 740 are also connected through a bus or other means, which is taken as an example in fig. 7.
In this embodiment, the processor 730 in the electronic device may control the input device 710 to receive a time-dependent transaction request sent by a data provider; the input device 710 can also be processed to receive a time-associated transaction request sent by a data provider; the resulting transaction data may also be stored in a block of storage 740; the output device 730 may be further controlled to feed back the transaction data identifier corresponding to the time-related transaction request and the timestamp information of the block to the data provider so as to be associated with the data to be recorded.
The storage device 740 in the electronic device, as a computer-readable storage medium, may be used to store one or more programs, which may be software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the data authentication method based on the blockchain in the embodiment of the present invention (for example, the association request receiving module 610, the association request processing module 620, and the authentication information feedback module 630 shown in fig. 6). The processor 730 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the storage device 740, that is, implements the data storage method based on the block chain in the above method embodiment.
The storage 740 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data (such as the time-related transaction request, the association information of the data to be recorded, the transaction data identifier of the time-related transaction request, and the time stamp information of the block in the above embodiments). Additionally, storage 740 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 non-volatile solid state storage device. In some examples, storage 740 may further include memory located remotely from processor 730, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Example eight
An eighth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a data verification apparatus based on a block chain, implements a data verification method based on the block chain, where the data verification method is applied to a block chain node of a trusted public chain, and the method includes: receiving a time correlation transaction request sent by a data provider; wherein, the time-related transaction request comprises the related information of the data to be recorded; processing the time-correlated transaction request to store the obtained transaction data into a block; and feeding back a transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block to the data provider so as to be associated with the data to be recorded. It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

1. A data evidence storing method based on a block chain is characterized in that the method is applied to block chain link points of a credible public chain and comprises the following steps: receiving a time correlation transaction request sent by a data provider; wherein, the time-related transaction request comprises the related information of the data to be recorded;
processing the time-correlated transaction request to store the obtained transaction data into a block;
feeding back a transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block to the data provider so as to be associated with the data to be recorded;
receiving a time verification transaction request sent by a data verifier; the time verification transaction request comprises the association information of the data to be queried, the auxiliary data to be verified and the identification of the transaction data to be queried;
processing the time verification transaction request to generate auxiliary data to be queried according to the associated information of the data to be queried;
if the auxiliary data to be inquired is the same as the auxiliary data to be verified, searching a target block where the auxiliary data to be verified is located in a block chain according to the transaction data identifier to be inquired;
obtaining timestamp information of the target block as target timestamp information and feeding the target timestamp information back to the data verifier; alternatively, the first and second electrodes may be,
and when the time verification transaction request also comprises timestamp information to be verified, acquiring the timestamp information of the target block as target timestamp information, comparing the target timestamp information with the timestamp information to be verified, and feeding back a comparison result to the data verifier.
2. The method according to claim 1, wherein the association information of the data to be recorded comprises basic information of the data to be recorded and/or initial time information of the data to be recorded.
3. The method of claim 2, wherein the time-correlated transaction request comprises a transfer transaction request; the transfer transaction request comprises a transfer party account address and a set transfer amount;
correspondingly, processing the time-correlated transaction request includes:
determining data identification information according to the associated information of the data to be recorded in the transfer transaction request, and generating a derivative account address according to the data identification information;
and acquiring the transfer party account address and the set transfer amount in the transfer transaction request, and transferring the set transfer amount from the transfer party account address to the derivative account address.
4. The method of claim 2, wherein the time-correlated transaction request comprises an assistance data generating transaction request;
correspondingly, processing the time-correlated transaction request includes:
and generating the associated information of the data to be recorded in the transaction request according to the auxiliary data, operating the auxiliary query intelligent contract in the block chain network, and taking the obtained operation result as the auxiliary data.
5. The method of claim 2, prior to receiving a data provider send time association transaction request, further comprising:
receiving a timestamp acquisition request sent by a data provider;
processing the timestamp acquisition request to acquire timestamp information of at least one generated block and/or a block height of the at least one generated block;
and feeding back the timestamp information and/or the corresponding block height as initial time information to the data provider.
6. The method according to claim 1, wherein the associated information of the data to be queried comprises basic information of the data to be queried and/or initial time information of the data to be queried.
7. The method according to claim 6, characterized in that the auxiliary data to be verified comprises an account address to be verified;
correspondingly, generating auxiliary data to be queried according to the associated information of the data to be queried comprises the following steps:
and determining data identification information according to the associated information of the data to be queried, and generating a derived account address to be queried according to the data identification information.
8. The method according to claim 6, wherein the auxiliary data to be verified comprises data identification information of the data to be queried;
correspondingly, generating auxiliary data to be queried according to the associated information of the data to be queried comprises the following steps:
and according to the associated information of the data to be queried, operating the auxiliary query intelligent contract in the block chain network, and taking the obtained operation result as the auxiliary data to be queried.
9. A data evidence storage device based on a block chain is characterized in that the data evidence storage device is configured at a block chain link point of a credible public chain and comprises:
the association request receiving module is used for receiving a time association transaction request sent by a data provider; wherein, the time-related transaction request comprises the related information of the data to be recorded;
the association request processing module is used for processing the time association transaction request so as to store the obtained transaction data into a block;
the evidence storing information feedback module is used for feeding back the transaction data identifier corresponding to the time-associated transaction request and the timestamp information of the block to the data provider so as to be associated with the data to be recorded;
the verification request receiving module is used for receiving a time verification transaction request sent by a data verifier; the time verification transaction request comprises the association information of the data to be queried, the auxiliary data to be verified and the identification of the transaction data to be queried;
the auxiliary data to be queried generating module is used for processing the time verification transaction request so as to generate auxiliary data to be queried according to the associated information of the data to be queried;
the target block searching module is used for searching a target block where the auxiliary data to be verified is located in a block chain according to the transaction data identifier to be queried if the auxiliary data to be queried is the same as the auxiliary data to be verified;
the target timestamp feedback module is used for acquiring timestamp information of the target block as target timestamp information and feeding the target timestamp information back to the data verifier; or, when the time validation transaction request further includes timestamp information to be validated, acquiring timestamp information of the target block as target timestamp information, comparing the target timestamp information with the timestamp information to be validated, and feeding back a comparison result to the data validator.
10. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a blockchain-based data attestation method as recited in any one of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a blockchain-based data attestation method according to any one of claims 1 to 8.
CN201910271629.2A 2019-04-04 2019-04-04 Block chain-based data evidence storage method, device, equipment and storage medium Active CN109981673B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910271629.2A CN109981673B (en) 2019-04-04 2019-04-04 Block chain-based data evidence storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910271629.2A CN109981673B (en) 2019-04-04 2019-04-04 Block chain-based data evidence storage method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109981673A CN109981673A (en) 2019-07-05
CN109981673B true CN109981673B (en) 2021-10-08

Family

ID=67082963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910271629.2A Active CN109981673B (en) 2019-04-04 2019-04-04 Block chain-based data evidence storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109981673B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110363687A (en) * 2019-07-12 2019-10-22 百度在线网络技术(北京)有限公司 Recording method, device, electronic equipment, terminal and the medium of travel information
CN110413762A (en) * 2019-08-07 2019-11-05 北京艾摩瑞策科技有限公司 The cochain method and device thereof of knowledge question associated data
WO2021026741A1 (en) * 2019-08-12 2021-02-18 Advanced New Technologies Co., Ltd. Blockchain-based trusted platform
CN110457396A (en) * 2019-08-15 2019-11-15 北京北科融智云计算科技有限公司 One kind being based on block chain scientific data processing method, device, equipment and storage medium
CN110505065B (en) * 2019-08-21 2021-07-20 腾讯科技(深圳)有限公司 Trusted timestamp adding method and device and storage medium
CN110598477A (en) * 2019-09-19 2019-12-20 腾讯科技(深圳)有限公司 Block chain based information processing method and device, storage medium and equipment
WO2020035091A2 (en) * 2019-11-13 2020-02-20 Alipay (Hangzhou) Information Technology Co., Ltd. Managing trust points in ledger systems
CN111459932A (en) * 2020-03-05 2020-07-28 深圳市元征科技股份有限公司 Block chain-based data evidence storage method and device and storage medium
CN111126883B (en) * 2020-03-23 2024-01-26 中国计量大学 Block chain-based research and development project information management method and device and electronic equipment
CN111708538B (en) * 2020-05-29 2022-03-22 平安医疗健康管理股份有限公司 Transaction circulation method, device, computer equipment and computer readable storage medium
CN111966731A (en) * 2020-10-23 2020-11-20 支付宝(杭州)信息技术有限公司 Method and device for querying data in block chain system
CN112199446B (en) * 2020-12-01 2021-05-28 支付宝(杭州)信息技术有限公司 Method, device, equipment and storage medium for storing article circulation records
CN112597192A (en) * 2020-12-09 2021-04-02 杭州趣链科技有限公司 Data query method, device, server and medium
CN112866282B (en) * 2021-02-10 2022-12-27 中国人民银行数字货币研究所 Method and device for verifying time information in block chain

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017157926A (en) * 2016-02-29 2017-09-07 富士ゼロックス株式会社 Information processing unit and program
CN107480990A (en) * 2017-08-01 2017-12-15 中国联合网络通信集团有限公司 Block chain bookkeeping methods and device
CN107770182A (en) * 2017-10-30 2018-03-06 中国联合网络通信集团有限公司 The date storage method and home gateway of home gateway
CN108346060A (en) * 2018-02-06 2018-07-31 蔡汉宏 One kind discerning put on record method and its system based on the block chain art work
CN108595607A (en) * 2018-04-20 2018-09-28 百度在线网络技术(北京)有限公司 Processing method, device, equipment, system and the storage medium of register information
CN108711212A (en) * 2018-05-21 2018-10-26 中国联合网络通信集团有限公司 Card method, apparatus and system are deposited in ballot
CN108961052A (en) * 2018-06-25 2018-12-07 百度在线网络技术(北京)有限公司 Verification method, storage method, device, equipment and the medium of block chain data
CN109447809A (en) * 2018-11-14 2019-03-08 成都皓图智能科技有限责任公司 A kind of video active identification method of combination block chain
CN109462483A (en) * 2018-11-27 2019-03-12 平安科技(深圳)有限公司 Mail based on block chain deposits card method, apparatus, equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017157926A (en) * 2016-02-29 2017-09-07 富士ゼロックス株式会社 Information processing unit and program
CN107480990A (en) * 2017-08-01 2017-12-15 中国联合网络通信集团有限公司 Block chain bookkeeping methods and device
CN107770182A (en) * 2017-10-30 2018-03-06 中国联合网络通信集团有限公司 The date storage method and home gateway of home gateway
CN108346060A (en) * 2018-02-06 2018-07-31 蔡汉宏 One kind discerning put on record method and its system based on the block chain art work
CN108595607A (en) * 2018-04-20 2018-09-28 百度在线网络技术(北京)有限公司 Processing method, device, equipment, system and the storage medium of register information
CN108711212A (en) * 2018-05-21 2018-10-26 中国联合网络通信集团有限公司 Card method, apparatus and system are deposited in ballot
CN108961052A (en) * 2018-06-25 2018-12-07 百度在线网络技术(北京)有限公司 Verification method, storage method, device, equipment and the medium of block chain data
CN109447809A (en) * 2018-11-14 2019-03-08 成都皓图智能科技有限责任公司 A kind of video active identification method of combination block chain
CN109462483A (en) * 2018-11-27 2019-03-12 平安科技(深圳)有限公司 Mail based on block chain deposits card method, apparatus, equipment and storage medium

Also Published As

Publication number Publication date
CN109981673A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN109981673B (en) Block chain-based data evidence storage method, device, equipment and storage medium
JP7222036B2 (en) Model training system and method and storage medium
CN109361734B (en) Data processing method, device, equipment and medium for block chain
CN110933163B (en) Block chain contract deployment method, device, equipment and storage medium
WO2020114385A1 (en) Trusted node determining method and apparatus based on block chain network
CN110535970B (en) Evidence storing and processing method, device, equipment and medium of judicial chain
CN110889729A (en) Data verification method and device based on block chain network
CN110099069B (en) Intelligent charging pile data transmission device, processing system and method
CN109861996B (en) Block chain-based relationship proving method, device, equipment and storage medium
CN113052721B (en) Power data processing method and device
CN111488372A (en) Data processing method, device and storage medium
CN105187218A (en) Digital record signature method for multicore infrastructure and verification method
CN111753014A (en) Identity authentication method and device based on block chain
CN112235260A (en) Anonymous data storage method, device, equipment and storage medium
CN107659579B (en) On-site certificate storing method and device and related certificate storing system
CN112749968A (en) Service data recording method and device based on block chain
CN113708935A (en) Internet of things equipment unified authentication method and system based on block chain and PUF
CN113919846B (en) Block link point dynamic grouping method and device, computer equipment and storage medium
CN109598108B (en) Program product selling method, block link point, storage medium, and block link system
CN106713297B (en) Electronic data fixed platform based on cloud service
CN107733709A (en) Date storage method, device and electronic equipment
CN109660357A (en) Digital asset register method, verification method, device, equipment and storage medium
CN112182009B (en) Block chain data updating method and device and readable storage medium
CN112738061B (en) Information processing method, device, management platform, electronic equipment and storage medium
CN114254383A (en) Intelligent networking automobile data safety management system and method based on block chain

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
GR01 Patent grant
GR01 Patent grant