CN114741738A - Tracing data processing method and device based on block chain, electronic equipment and medium - Google Patents
Tracing data processing method and device based on block chain, electronic equipment and medium Download PDFInfo
- Publication number
- CN114741738A CN114741738A CN202210427026.9A CN202210427026A CN114741738A CN 114741738 A CN114741738 A CN 114741738A CN 202210427026 A CN202210427026 A CN 202210427026A CN 114741738 A CN114741738 A CN 114741738A
- Authority
- CN
- China
- Prior art keywords
- data
- tracing
- traceability
- nft
- link
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims description 18
- 238000013475 authorization Methods 0.000 claims abstract description 66
- 238000013500 data storage Methods 0.000 claims abstract description 31
- 238000000034 method Methods 0.000 claims abstract description 27
- 238000012545 processing Methods 0.000 claims abstract description 25
- 238000004458 analytical method Methods 0.000 claims abstract description 21
- 238000012795 verification Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012546 transfer Methods 0.000 claims description 2
- 238000012163 sequencing technique Methods 0.000 claims 3
- 230000006870 function Effects 0.000 description 18
- 230000002159 abnormal effect Effects 0.000 description 10
- 238000007726 management method Methods 0.000 description 8
- 229960005486 vaccine Drugs 0.000 description 8
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000003491 array Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Bioethics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Storage Device Security (AREA)
Abstract
本发明涉及区块链技术领域,提供一种基于区块链的溯源数据处理方法、装置、电子设备及介质,所述方法包括:基于原始溯源数据创建目标对象的溯源链路,并通过智能合约将溯源链路部署至区块链中;解析溯源数据存证请求,得到解析结果;将解析结果发送至智能合约的NFT生成模型中,生成数据提供方的NFT数据并进行存证;当侦测到数据查询方有权限下载溯源数据时,通过智能合约生成授权消息,并基于授权消息下载溯源数据。本发明将数据提供方的零散数据以NFT形式封装为不可拆分的整体,对溯源数据和数据提供方进行了可信的存证,提高了溯源数据的溯源来源的定位效率及准确率。
The invention relates to the technical field of blockchain, and provides a method, device, electronic device and medium for processing traceability data based on blockchain, the method comprising: creating a traceability link of a target object based on original traceability data, and creating a traceability link of a target object through a smart contract Deploy the traceability link into the blockchain; parse the traceability data storage request to obtain the analysis result; send the analysis result to the NFT generation model of the smart contract, generate the NFT data of the data provider and store the certificate; when detecting When the data query party has permission to download the traceability data, an authorization message is generated through the smart contract, and the traceability data is downloaded based on the authorization message. The invention encapsulates the scattered data of the data provider into an inseparable whole in the form of NFT, performs credible storage of the traceability data and the data provider, and improves the location efficiency and accuracy of the traceability source of the traceability data.
Description
技术领域technical field
本发明涉及区块链技术领域,具体涉及一种基于区块链的溯源数据处理方法、装置、电子设备及介质。The present invention relates to the technical field of blockchain, in particular to a method, device, electronic device and medium for processing traceability data based on blockchain.
背景技术Background technique
针对商品行业,供应链相对隔离,在一条产业链上的各个节点自成信息孤岛,全流程信息化程度较低,交易数据追溯难度极大。现有的溯源模型是在溯源对象的产出源头给某一待溯源的对象打上标记,每个参与该溯源对象传递环节的数据提供方将环节数据提供给溯源系统。For the commodity industry, the supply chain is relatively isolated, and each node in an industrial chain forms an island of information. The existing traceability model is to mark an object to be traced at the output source of the traceability object, and each data provider participating in the transmission of the traceability object provides the link data to the traceability system.
然而,各个数据提供方将数据上传到溯源系统后,需要通过溯源模型、数据分析、多方核验等复杂的流程方可定位到数据来源,导致溯源数据定位效率低。同时,由于数据和数据提供方的关系没有进行可信存证,导致数据提供方可能抵赖事实及篡改数据,造成溯源数据准确率低。However, after each data provider uploads the data to the traceability system, complex processes such as traceability model, data analysis, and multi-party verification are required to locate the data source, resulting in low efficiency of traceability data location. At the same time, because the relationship between the data and the data provider is not credible, the data provider may deny the facts and tamper with the data, resulting in a low accuracy rate of traceability data.
发明内容SUMMARY OF THE INVENTION
鉴于以上内容,有必要提出一种基于区块链的溯源数据处理方法、装置、电子设备及介质,将数据提供方的零散数据以NFT形式封装为不可拆分的整体,对溯源数据和数据提供方进行了可信的存证,提高了溯源数据的溯源来源的定位效率及准确率。In view of the above, it is necessary to propose a blockchain-based traceability data processing method, device, electronic equipment and medium, which encapsulates the scattered data of the data provider into an inseparable whole in the form of NFT, and provides traceability data and data. This improves the efficiency and accuracy of locating the source of traceability data.
本发明的第一方面提供一种基于区块链的溯源数据处理方法,所述方法包括:A first aspect of the present invention provides a blockchain-based traceability data processing method, the method comprising:
接收目标对象的原始溯源数据,基于所述原始溯源数据创建所述目标对象的溯源链路,并通过智能合约将所述溯源链路部署至区块链中,其中,所述溯源链路中包含有溯源码;Receive the original traceability data of the target object, create a traceability link of the target object based on the original traceability data, and deploy the traceability link into the blockchain through a smart contract, wherein the traceability link contains Traceable source code;
响应于接收到的所述目标对象的数据提供方的溯源数据存证请求,解析所述溯源数据存证请求,得到解析结果;In response to the received traceability data storage request from the data provider of the target object, parsing the traceability data storage request to obtain a parsing result;
将所述解析结果发送至所述智能合约的NFT生成模型中,生成所述数据提供方的目标NFT数据并进行存证;Send the analysis result to the NFT generation model of the smart contract, generate the target NFT data of the data provider and store the certificate;
当侦测到数据查询方发送的下载所述目标对象的溯源数据请求时,判断所述数据查询方是否有权限下载所述溯源数据;When detecting a request to download the traceability data of the target object sent by the data inquiring party, determine whether the data inquiring party has the right to download the traceability data;
当所述数据查询方有权限下载所述溯源数据时,通过所述智能合约生成授权消息,并基于所述授权消息下载所述溯源数据。When the data query party has the right to download the traceability data, an authorization message is generated through the smart contract, and the traceability data is downloaded based on the authorization message.
可选地,所述将所述解析结果发送至所述智能合约的NFT生成模型中,生成所述数据提供方的目标NFT数据并进行存证包括:Optionally, sending the parsing result to the NFT generation model of the smart contract, generating the target NFT data of the data provider and storing the certificate include:
识别所述解析结果中的每个数据字段信息的数据类型;Identify the data type of each data field information in the parsing result;
当识别到所述解析结果中的每个数据字段信息的数据类型为文本数据时,将所述每个数据字段信息发送至所述智能合约的NFT生成模型中;当识别到所述解析结果中的每个数据字段信息的数据类型不为文本数据时,计算每个数据字段信息的哈希值,将所述哈希值发送至所述智能合约的NFT生成模型中;When it is recognized that the data type of each data field information in the parsing result is text data, the information of each data field is sent to the NFT generation model of the smart contract; when it is recognized that the parsing result is in the NFT generation model When the data type of each data field information is not text data, calculate the hash value of each data field information, and send the hash value to the NFT generation model of the smart contract;
所述智能合约的NFT生成模型生成所述数据提供方的NFT识别码,并按照所述目标溯源链路对应的数据提供方的溯源节点的节点名称及数据字段信息,以及每个数据字段信息的数据格式,将接收到的每个数据字段信息或者哈希值填充至所述数据提供方的溯源节点的对应位置,得到第一NFT数据;The NFT generation model of the smart contract generates the NFT identification code of the data provider, and the node name and data field information of the traceability node of the data provider corresponding to the target traceability link, and the information of each data field. Data format, filling the received information of each data field or hash value to the corresponding position of the traceability node of the data provider to obtain the first NFT data;
在所述数据提供方对应的字段中填写所述数据提供方的信息,得到第二NFT数据;Fill in the information of the data provider in the field corresponding to the data provider to obtain the second NFT data;
所述智能合约的NFT生成模型将所述NFT识别码、所述第一NFT数据和所述第二NFT数据进行封装,生成所述数据提供方的目标NFT数据;The NFT generation model of the smart contract encapsulates the NFT identification code, the first NFT data and the second NFT data to generate the target NFT data of the data provider;
将所述数据提供方的目标NFT数据发送至智能合约的数据存证模型中,在所述数据存证模型中将所述数据提供方的目标NFT数据写入所述区块链中进行存证。Send the target NFT data of the data provider to the data storage model of the smart contract, and write the target NFT data of the data provider into the blockchain for storage in the data storage model. .
可选地,所述基于所述原始溯源数据创建所述目标对象的溯源链路包括:Optionally, the creation of the traceability link of the target object based on the original traceability data includes:
识别所述原始溯源数据,得到所述目标对象的各个溯源节点的节点名称及数据字段信息,以及每个数据字段信息的数据格式;Identify the original traceability data, obtain the node name and data field information of each traceability node of the target object, and the data format of each data field information;
将所述目标对象的各个溯源节点转换为对应的溯源链路的溯源节点,其中,所述溯源链路的溯源节点中包含有溯源节点的节点名称及数据字段信息,以及每个数据字段信息的数据格式;Each traceability node of the target object is converted into a traceability node of the corresponding traceability link, wherein the traceability node of the traceability link contains the node name and data field information of the traceability node, and the information of each data field information. Data Format;
将各个溯源节点之间的引用关系转换为对应的溯源链路中节点之间的边,其中,所述溯源链路中溯源节点之间的边作为所述溯源链路中溯源节点之间的引用关系;Convert the reference relationship between each traceability node into the edge between the nodes in the corresponding traceability link, wherein, the edge between the traceability nodes in the traceability link is used as the reference between the traceability nodes in the traceability link relation;
根据所述溯源链路的溯源节点和所述溯源链路中溯源节点之间的引用关系创建所述目标对象的溯源链路。The source tracing link of the target object is created according to the source tracing node of the source tracing link and the reference relationship between the source tracing nodes in the source tracing link.
可选地,所述解析所述溯源数据存证请求,得到解析结果包括:Optionally, the parsing of the traceability data storage request to obtain an parsing result includes:
解析所述溯源数据存证请求,获取目标溯源码和存证数据;Parse the traceability data deposit request, and obtain the target traceability source code and deposit data;
从预设的数据库中匹配出所述目标溯源码对应的目标溯源链路;Matching the target traceability link corresponding to the target traceability source code from the preset database;
将所述存证数据发送至智能合约中,所述智能合约的数据存证模型按照预设的解析规范对所述存证数据进行解析,得到解析结果。Send the certificate data to the smart contract, and the data certificate model of the smart contract parses the certificate data according to a preset analysis specification to obtain a parsing result.
可选地,所述判断所述数据查询方是否有权限下载所述溯源数据包括:Optionally, the judging whether the data query party has the right to download the traceability data includes:
解析下载所述目标对象的溯源数据请求,获取所述溯源数据的NFT识别码;Parse and download the traceability data request of the target object, and obtain the NFT identification code of the traceability data;
发送所述NFT识别码至智能合约的NFT申请模型中,生成所述NFT数据的使用申请,及将所述NFT数据的使用申请写入所述区块链中;Send the NFT identification code to the NFT application model of the smart contract, generate the application for the use of the NFT data, and write the application for the use of the NFT data into the blockchain;
判断所述NFT数据的使用申请是否获得授权;Determine whether the application for the use of the NFT data is authorized;
当所述NFT数据的使用申请获得授权时,确定所述数据查询方有权限下载所述溯源数据;When the application for the use of the NFT data is authorized, it is determined that the data query party has the right to download the traceability data;
当所述NFT数据的使用申请未获得授权时,确定所述数据查询方无权限下载所述溯源数据。When the application for the use of the NFT data is not authorized, it is determined that the data query party has no right to download the traceability data.
可选地,所述通过所述智能合约生成授权消息,并基于所述授权消息下载所述溯源数据包括:Optionally, generating an authorization message through the smart contract and downloading the traceability data based on the authorization message includes:
智能合约的NFT授权模型接收数据提供方发送的授权消息,并将所述授权消息写入所述区块链中;The NFT authorization model of the smart contract receives the authorization message sent by the data provider, and writes the authorization message into the blockchain;
基于所述授权消息对数据查询方的签名进行验签;Verifying the signature of the data query party based on the authorization message;
当所述验签通过时,所述数据查询方基于所述授权消息从数据存储服务器中下载所述溯源数据。When the signature verification is passed, the data query party downloads the traceability data from the data storage server based on the authorization message.
可选地,所述方法还包括:Optionally, the method further includes:
当侦测到数据查询方发送的查询所述溯源数据请求时,获取所述目标对象的溯源码;When detecting a request for querying the traceability data sent by the data query party, obtain the traceability source code of the target object;
根据所述溯源码查询对应的溯源链路,并匹配出所述溯源链路上的所有溯源节点的存证信息;Query the corresponding traceability link according to the traceability source code, and match the depository information of all traceability nodes on the traceability link;
按照预设的排序方式对所述所有溯源节点的存证信息进行排序,并将排序结果返回给所述数据查询方。Sort the certificate storage information of all the traceability nodes according to a preset sorting method, and return the sorting result to the data query party.
本发明的第二方面提供一种基于区块链的溯源数据处理装置,所述装置包括:A second aspect of the present invention provides a blockchain-based traceability data processing device, the device comprising:
接收和创建模块,用于接收目标对象的原始溯源数据,基于所述原始溯源数据创建所述目标对象的溯源链路,并通过智能合约将所述溯源链路部署至区块链中,其中,所述溯源链路中包含有溯源码;The receiving and creating module is used to receive the original traceability data of the target object, create the traceability link of the target object based on the original traceability data, and deploy the traceability link into the blockchain through a smart contract, wherein, The traceability link includes traceability source code;
解析模块,用于响应于接收到的所述目标对象的数据提供方的溯源数据存证请求,解析所述溯源数据存证请求,得到解析结果;A parsing module, configured to parse the traceability data deposit request in response to the received traceability data deposit request from the data provider of the target object, and obtain a parsing result;
生成模块,用于将所述解析结果发送至所述智能合约的NFT生成模型中,生成所述数据提供方的目标NFT数据并进行存证;A generation module, configured to send the analysis result to the NFT generation model of the smart contract, generate the target NFT data of the data provider and store the certificate;
判断模块,用于当侦测到数据查询方发送的下载所述目标对象的溯源数据请求时,判断所述数据查询方是否有权限下载所述溯源数据;a judgment module, configured to judge whether the data query party has the right to download the traceability data when a request for downloading the traceability data of the target object sent by the data query party is detected;
下载模块,用于当所述数据查询方有权限下载所述溯源数据时,通过所述智能合约生成授权消息,并基于所述授权消息下载所述溯源数据。A download module is configured to generate an authorization message through the smart contract when the data query party has the right to download the traceability data, and download the traceability data based on the authorization message.
本发明的第三方面提供一种电子设备,所述电子设备包括处理器和存储器,所述处理器用于执行所述存储器中存储的计算机程序时实现所述的基于区块链的溯源数据处理方法。A third aspect of the present invention provides an electronic device, the electronic device includes a processor and a memory, and the processor is configured to implement the blockchain-based traceability data processing method when executing a computer program stored in the memory .
本发明的第四方面提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现所述的基于区块链的溯源数据处理方法。A fourth aspect of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the blockchain-based traceability data processing method is implemented .
综上所述,本发明所述的基于区块链的溯源数据处理方法、装置、电子设备及介质,基于所述原始溯源数据创建所述目标对象的溯源链路,并通过智能合约将所述溯源链路部署至区块链中,建立溯源数据和溯源数据的提供方之间的存证关系,并且使用区块链对溯源数据进行存证,使得溯源数据一旦上链就不可篡改,提高了后续存证在所述溯源链路上的溯源数据的安全性。解析数据提供方的溯源数据存证请求得到解析结果,并将解析结果发送至所述智能合约的NFT生成模型中,生成所述数据提供方的目标NFT数据并进行存证,将数据提供方的零散的数据以NFT形式封装为不可拆分的整体,将溯源数据和数据提供方进行了可信的存证,提高了溯源数据的溯源来源的定位效率及准确率。在所述数据查询方有权限下载所述溯源数据时,通过所述智能合约生成授权消息,在授权情况下,基于所述授权消息下载所述溯源数据,提高了溯源数据的安全性。To sum up, the blockchain-based traceability data processing method, device, electronic device and medium of the present invention create a traceability link of the target object based on the original traceability data, and use a smart contract to transfer the traceability link to the target object. The traceability link is deployed in the blockchain, establishes the relationship between traceability data and the provider of the traceability data, and uses the blockchain to store the traceability data, so that the traceability data cannot be tampered with once it is on the chain. The security of the traceability data subsequently stored on the traceability link. Parse the data provider's traceability data storage request to obtain the parsing result, and send the parsing result to the NFT generation model of the smart contract, generate the target NFT data of the data provider and store the certificate, and store the data provider's data. The scattered data is encapsulated into an inseparable whole in the form of NFT, and the traceability data and the data provider are credibly stored, which improves the location efficiency and accuracy of the traceability source of the traceability data. When the data query party has the right to download the traceability data, an authorization message is generated through the smart contract, and in the case of authorization, the traceability data is downloaded based on the authorization message, which improves the security of the traceability data.
附图说明Description of drawings
图1是本发明实施例一提供的基于区块链的溯源数据处理方法的流程图。FIG. 1 is a flowchart of a blockchain-based traceability data processing method provided in Embodiment 1 of the present invention.
图2是本发明实施例二提供的基于区块链的溯源数据处理装置的结构图。FIG. 2 is a structural diagram of a blockchain-based traceability data processing device provided in Embodiment 2 of the present invention.
图3是本发明实施例三提供的电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device according to
具体实施方式Detailed ways
为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施例对本发明进行详细描述。需要说明的是,在不冲突的情况下,本发明的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above objects, features and advantages of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments may be combined with each other under the condition of no conflict.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention.
实施例一Example 1
图1是本发明实施例一提供的基于区块链的溯源数据处理方法的流程图。FIG. 1 is a flowchart of a blockchain-based traceability data processing method provided in Embodiment 1 of the present invention.
在本实施例中,所述基于区块链的溯源数据处理方法可以应用于电子设备中,对于需要进行基于区块链的溯源数据处理的电子设备,可以直接在电子设备上集成本发明的方法所提供的基于区块链的溯源数据处理的功能,或者以软件开发工具包(SoftwareDevelopment Kit,SDK)的形式运行在电子设备中。In this embodiment, the blockchain-based traceability data processing method can be applied to electronic devices, and for electronic devices that need blockchain-based traceability data processing, the method of the present invention can be directly integrated on the electronic device The provided functions of traceability data processing based on blockchain, or run in electronic devices in the form of a software development kit (Software Development Kit, SDK).
如图1所示,所述基于区块链的溯源数据处理方法具体包括以下步骤,根据不同的需求,该流程图中步骤的顺序可以改变,某些可以省略。As shown in Figure 1, the blockchain-based traceability data processing method specifically includes the following steps. According to different requirements, the order of the steps in the flowchart can be changed, and some can be omitted.
S11,接收目标对象的原始溯源数据,基于所述原始溯源数据创建所述目标对象的溯源链路,并通过智能合约将所述溯源链路部署至区块链中,其中,所述溯源链路中包含有溯源码。S11: Receive the original traceability data of the target object, create a traceability link of the target object based on the original traceability data, and deploy the traceability link into the blockchain through a smart contract, wherein the traceability link Traceable source code is included.
本实施例中,在目标对象的溯源数据处理过程中,可以为目标对象创建溯源链路,实现所述目标对象的溯源数据的存证,并通过智能合约将所述溯源数据部署至区块链中。In this embodiment, in the process of processing the traceability data of the target object, a traceability link can be created for the target object, so as to realize the storage of the traceability data of the target object, and deploy the traceability data to the blockchain through a smart contract middle.
本实施例中,所述目标对象可以为某个产品,例如,A疫苗,为A疫苗创建一个溯源链路,所述溯源链路对应有唯一的溯源码,所述溯源码用以唯一识别所述目标对象。In this embodiment, the target object may be a certain product, for example, vaccine A, to create a traceability link for vaccine A, the traceability link corresponds to a unique traceability source code, and the traceability source code is used to uniquely identify all describe the target object.
本实施例中,所述智能合约提供溯源数据的链路存证、数据存证、NFT数据生成、NFT申请、NFT授权、数据溯源查询等功能,所述智能合约中包含有NFT生成模型、数据存证模型、NFT申请模型、数据存证模型及NFT授权模型。In this embodiment, the smart contract provides functions such as link storage of traceability data, data storage, NFT data generation, NFT application, NFT authorization, data traceability query, etc. The smart contract includes NFT generation model, data Certificate deposit model, NFT application model, data deposit certificate model and NFT authorization model.
在一个可选的实施例中,所述基于所述原始溯源数据创建所述目标对象的溯源链路包括:In an optional embodiment, the creation of the traceability link of the target object based on the original traceability data includes:
识别所述原始溯源数据,得到所述目标对象的各个溯源节点的节点名称及数据字段信息,以及每个数据字段信息的数据格式;Identify the original traceability data, obtain the node name and data field information of each traceability node of the target object, and the data format of each data field information;
将所述目标对象的各个溯源节点转换为对应的溯源链路的溯源节点,其中,所述溯源链路的溯源节点中包含有溯源节点的节点名称及数据字段信息,以及每个数据字段信息的数据格式;Each traceability node of the target object is converted into the traceability node of the corresponding traceability link, wherein the traceability node of the traceability link contains the node name and data field information of the traceability node, and the information of each data field information. Data Format;
将各个溯源节点之间的引用关系转换为对应的溯源链路中节点之间的边,其中,所述溯源链路中溯源节点之间的边作为所述溯源链路中溯源节点之间的引用关系;Convert the reference relationship between each traceability node into the edge between the nodes in the corresponding traceability link, wherein, the edge between the traceability nodes in the traceability link is used as the reference between the traceability nodes in the traceability link relation;
根据所述溯源链路的溯源节点和所述溯源链路中溯源节点之间的引用关系创建所述目标对象的溯源链路。The source tracing link of the target object is created according to the source tracing node of the source tracing link and the reference relationship between the source tracing nodes in the source tracing link.
本实施例中,所述原始溯源数据中包含有所述目标对象的各个溯源节点的节点名称及数据字段信息,以及每个数据字段信息的数据格式,所述原始数源数据中还包含有每个溯源节点的溯源数据提供方信息、原始数据特征及溯源数据的其他属性信息。In this embodiment, the original traceability data includes the node name and data field information of each traceability node of the target object, and the data format of each data field information, and the original data source data also includes each Traceability data provider information, original data characteristics and other attribute information of traceability data of each traceability node.
本实施例中,通过根据所述原始溯源数据创建所述目标对象的溯源链路,并通过智能合约将所述溯源链路部署至区块链中,建立溯源数据和溯源数据的提供方之间的存证关系,并且使用区块链对溯源数据进行存证,使得溯源数据一旦上链就不可篡改,提高了后续存证在所述溯源链路上的溯源数据的安全性。In this embodiment, the traceability link of the target object is created according to the original traceability data, and the traceability link is deployed into the blockchain through a smart contract, so as to establish a relationship between the traceability data and the provider of the traceability data. and use the blockchain to store the traceability data, so that the traceability data cannot be tampered with once it is on the chain, which improves the security of the traceability data that is subsequently stored on the traceability link.
S12,响应于接收到的所述目标对象的数据提供方的溯源数据存证请求,解析所述溯源数据存证请求,得到解析结果。S12, in response to the received traceability data certification request from the data provider of the target object, parse the traceability data certification request to obtain a parsing result.
本实施例中,当数据提供方需要存证所述目标对象的溯源数据时,所述数据提供方的客户端向服务器发送溯源数据存证请求,服务器解析所述溯源数据存证请求,得到解析结果。In this embodiment, when the data provider needs to store the traceability data of the target object, the client of the data provider sends a request for the traceability data storage to the server, and the server parses the traceability data storage request, and obtains the analysis result.
在一个可选的实施例中,所述解析所述溯源数据存证请求,得到解析结果包括:In an optional embodiment, the parsing of the traceability data storage request to obtain a parsing result includes:
解析所述溯源数据存证请求,获取目标溯源码和存证数据;Parse the traceability data deposit request, and obtain the target traceability source code and deposit data;
从预设的数据库中匹配出所述目标溯源码对应的目标溯源链路;Matching the target traceability link corresponding to the target traceability source code from the preset database;
将所述存证数据发送至智能合约中,所述智能合约的数据存证模型按照预设的解析规范对所述存证数据进行解析,得到解析结果。Send the certificate data to the smart contract, and the data certificate model of the smart contract parses the certificate data according to a preset analysis specification to obtain a parsing result.
本实施例中,可以预先建立数据库,所述数据库中存储有所有目标对象的溯源链路的溯源码,当数据提供方发送溯源数据存证请求时,所述溯源数据存证请求中包含有目标溯源码和存证数据,通过所述目标溯源码可以快速确定出目标溯源链路,所述目标溯源链路对应有预设的解析规范,按照所述预设的解析规范解析所述存证数据,便于后续存证数据的管理,提供了存证数据的管理效率。In this embodiment, a database may be established in advance, and the database stores the traceability source codes of the traceability links of all target objects. When the data provider sends a traceability data storage request, the traceability data storage request contains the target Traceability source code and evidence data, the target traceability link can be quickly determined through the target traceability source code, the target traceability link corresponds to a preset parsing specification, and the certificate data is parsed according to the preset parsing specification , which is convenient for the management of the subsequent storage data, and provides the management efficiency of the storage data.
S13,将所述解析结果发送至所述智能合约的NFT生成模型中,生成所述数据提供方的目标NFT数据并进行存证。S13, send the analysis result to the NFT generation model of the smart contract, generate the target NFT data of the data provider and store the certificate.
本实施例中,在进行解析结果的存证时,将所述解析结果发送至智能合约的NFT生成模型中,对所述解析结果进行NFT封装,得到所述数据提供方的NFT数据。In this embodiment, when the parsing result is stored for verification, the parsing result is sent to the NFT generation model of the smart contract, and the parsing result is NFT encapsulated to obtain the NFT data of the data provider.
在一个可选的实施例中,所述将所述解析结果发送至所述智能合约的NFT生成模型中,生成所述数据提供方的目标NFT数据并进行存证包括:In an optional embodiment, in the NFT generation model of sending the parsing result to the smart contract, generating and storing the target NFT data of the data provider includes:
识别所述解析结果中的每个数据字段信息的数据类型;Identify the data type of each data field information in the parsing result;
当识别到所述解析结果中的每个数据字段信息的数据类型为文本数据时,将所述每个数据字段信息发送至所述智能合约的NFT生成模型中;当识别到所述解析结果中的每个数据字段信息的数据类型不为文本数据时,计算每个数据字段信息的哈希值,将所述哈希值发送至所述智能合约的NFT生成模型中;When it is recognized that the data type of each data field information in the parsing result is text data, the information of each data field is sent to the NFT generation model of the smart contract; when it is recognized that the parsing result is in the NFT generation model When the data type of each data field information is not text data, calculate the hash value of each data field information, and send the hash value to the NFT generation model of the smart contract;
所述智能合约的NFT生成模型生成所述数据提供方的NFT识别码,并按照所述目标溯源链路对应的数据提供方的溯源节点的节点名称及数据字段信息,以及每个数据字段信息的数据格式,将接收到的每个数据字段信息或者哈希值填充至所述数据提供方的溯源节点的对应位置,得到第一NFT数据;The NFT generation model of the smart contract generates the NFT identification code of the data provider, and the node name and data field information of the traceability node of the data provider corresponding to the target traceability link, and the information of each data field. Data format, filling the received information of each data field or hash value to the corresponding position of the traceability node of the data provider to obtain the first NFT data;
在所述数据提供方对应的字段中填写所述数据提供方的信息,得到第二NFT数据;Fill in the information of the data provider in the field corresponding to the data provider to obtain the second NFT data;
所述智能合约的NFT生成模型将所述NFT识别码、所述第一NFT数据和所述第二NFT数据进行封装,生成所述数据提供方的目标NFT数据;The NFT generation model of the smart contract encapsulates the NFT identification code, the first NFT data and the second NFT data to generate the target NFT data of the data provider;
将所述数据提供方的目标NFT数据发送至智能合约的数据存证模型中,在所述数据存证模型中将所述数据提供方的目标NFT数据写入所述区块链中进行存证。Send the target NFT data of the data provider to the data storage model of the smart contract, and write the target NFT data of the data provider into the blockchain for storage in the data storage model. .
本实施例中,在进行数据提供方的目标NFT数据的封装时,绑定了数据提供方的信息,使得目标NFT数据更加的完整,提高了NFT数据的管理效率。In this embodiment, when the target NFT data of the data provider is encapsulated, the information of the data provider is bound, so that the target NFT data is more complete and the management efficiency of the NFT data is improved.
本实施例中,所述智能合约中的NFT生成模型将接收到的每个数据字段信息、哈希值、数据提供方的信息及NFT识别码,这些零散的数据以NFT形式封装为不可拆分的整体,当溯源数据发生异常时,获取异常的溯源数据的NFT识别码,确定所述异常的溯源数据的数据来源为所述NFT识别码对应的数据提供方,例如,在疫苗物流运输环节中,A操作员提供了出库商品数量数据,B操作员提供了运输过程的温度湿度等运输环境数据,C操作员提供了运输车辆和驾驶员信息,最后发现疫苗数量异常,则可以快速定位到A操作员,提高了溯源数据的溯源来源的定位效率及准确率,此外,由于每个数据提供方的目标NFT数据作为一个整体,将溯源数据和数据提供方进行了可信的存证,避免了数据提供方篡改溯源数据导致的溯源数据不可靠的问题,提高了溯源数据的安全性。In this embodiment, the NFT generation model in the smart contract will receive each data field information, hash value, data provider information and NFT identification code, and these scattered data are encapsulated in the form of NFT as inseparable When the traceability data is abnormal, the NFT identification code of the abnormal traceability data is obtained, and the data source of the abnormal traceability data is determined to be the data provider corresponding to the NFT identification code, for example, in the vaccine logistics and transportation link , Operator A provides data on the quantity of goods out of the warehouse, Operator B provides transportation environment data such as temperature and humidity during transportation, Operator C provides transportation vehicle and driver information, and finally finds that the number of vaccines is abnormal, it can be quickly located. Operator A improves the location efficiency and accuracy of the traceability source of the traceability data. In addition, since the target NFT data of each data provider is taken as a whole, the traceability data and the data provider are credibly stored to avoid It solves the problem of unreliability of traceability data caused by data providers tampering with traceability data, and improves the security of traceability data.
S14,当侦测到数据查询方发送的下载所述目标对象的溯源数据请求时,判断所述数据查询方是否有权限下载所述溯源数据。S14, when a request for downloading the traceability data of the target object sent by the data query party is detected, determine whether the data query party has the right to download the traceability data.
本实施例中,下载所述目标对象的溯源数据请求是指所述数据查询方请求阅读被封装的NFT数据,为了确保NFT数据的安全性,需要判断所述数据查询方是否有权限下载所述目标对象的溯源数据。In this embodiment, the request to download the traceability data of the target object means that the data query party requests to read the encapsulated NFT data. In order to ensure the security of the NFT data, it is necessary to determine whether the data query party has the right to download the data. Traceability data of the target object.
在一个可选的实施例中,所述判断所述数据查询方是否有权限下载所述溯源数据包括:In an optional embodiment, the judging whether the data query party has the right to download the traceability data includes:
解析下载所述目标对象的溯源数据请求,获取所述溯源数据的NFT识别码;Parse and download the traceability data request of the target object, and obtain the NFT identification code of the traceability data;
发送所述NFT识别码至智能合约的NFT申请模型中,生成所述NFT数据的使用申请,及将所述NFT数据的使用申请写入所述区块链中;Send the NFT identification code to the NFT application model of the smart contract, generate the application for the use of the NFT data, and write the application for the use of the NFT data into the blockchain;
判断所述NFT数据的使用申请是否获得授权;Determine whether the application for the use of the NFT data is authorized;
当所述NFT数据的使用申请获得授权时,确定所述数据查询方有权限下载所述溯源数据;When the application for the use of the NFT data is authorized, it is determined that the data query party has the right to download the traceability data;
当所述NFT数据的使用申请未获得授权时,确定所述数据查询方无权限下载所述溯源数据。When the application for the use of the NFT data is not authorized, it is determined that the data query party has no right to download the traceability data.
本实施例中,所述智能合约的NFT申请模型可以根据数据查询方的下载所述目标对象的溯源数据请求和溯源数据的NFT识别码记录所述NFT数据的使用申请,并将所述NFT数据的使用申请写入所述区块链中,NFT数据的拥有方判断所述NFT数据的使用申请是否获得授权,根据判断结果确定所述数据查询方是否有权限下载所述溯源数据,当所述数据查询方有权限下载所述溯源数据时,授权所述数据查询方下载所述溯源数据。In this embodiment, the NFT application model of the smart contract can record the application for the use of the NFT data according to the data query party's request to download the traceability data of the target object and the NFT identification code of the traceability data, and store the NFT data The application for use of the NFT data is written into the blockchain, and the owner of the NFT data judges whether the application for use of the NFT data is authorized, and determines whether the data query party has the right to download the traceability data according to the judgment result. When the data query party has the right to download the traceability data, the data query party is authorized to download the traceability data.
进一步地,所述方法还包括:Further, the method also includes:
当侦测到数据查询方发送的查询所述溯源数据请求时,获取所述目标对象的溯源码;When detecting a request for querying the traceability data sent by the data query party, obtain the traceability source code of the target object;
根据所述溯源码查询对应的溯源链路,并匹配出所述溯源链路上的所有溯源节点的存证信息;Query the corresponding traceability link according to the traceability source code, and match the depository information of all traceability nodes on the traceability link;
按照预设的排序方式对所述所有溯源节点的存证信息进行排序,并将排序结果返回给所述数据查询方。Sort the certificate storage information of all the traceability nodes according to a preset sorting method, and return the sorting result to the data query party.
本实施例中,所述存证信息中包含有所述溯源链路的溯源码、及各个溯源节点的NFT识别码和NFT数据的使用申请等存证记录。In this embodiment, the certificate storage information includes the traceability source code of the traceability link, the NFT identification code of each traceability node, the application for using the NFT data, and other certificate storage records.
本实施例中,当数据查询方查询溯源数据的链路存证信息时,无需得到拥有方的授权,通过所述溯源数据的溯源链路的溯源码即可快速的查询到所述目标对象的所有存证信息,提高了溯源数据的追溯效率。In this embodiment, when the data inquiring party queries the link certificate information of the traceability data, it does not need to obtain the authorization of the owner, and the traceability source of the traceability link of the traceability data can quickly query the information of the target object. All the evidence-based information improves the traceability of traceability data.
S15,当所述数据查询方有权限下载所述溯源数据时,通过所述智能合约生成授权消息,并基于所述授权消息下载所述溯源数据。S15, when the data query party has the right to download the traceability data, generate an authorization message through the smart contract, and download the traceability data based on the authorization message.
本实施例中,在数据查询方有权限下载所述溯源数据时,需要对数据查询方的签名进行验签,进一步确保溯源数据的安全性。In this embodiment, when the data inquiring party has the right to download the traceability data, the signature of the data inquiring party needs to be verified to further ensure the security of the traceability data.
在一个可选的实施例中,所述通过所述智能合约生成授权消息,并基于所述授权消息下载所述溯源数据包括:In an optional embodiment, the generating an authorization message through the smart contract, and downloading the traceability data based on the authorization message includes:
智能合约的NFT授权模型接收数据提供方发送的授权消息,并将所述授权消息写入所述区块链中;The NFT authorization model of the smart contract receives the authorization message sent by the data provider, and writes the authorization message into the blockchain;
基于所述授权消息对数据查询方的签名进行验签;Verifying the signature of the data query party based on the authorization message;
当所述验签通过时,所述数据查询方基于所述授权消息从数据存储服务器中下载所述溯源数据。When the signature verification is passed, the data query party downloads the traceability data from the data storage server based on the authorization message.
进一步地,所述方法还包括:Further, the method also includes:
当所述验签未通过时,所述NFT授权模型将拒绝授权消息写入所述区块链中。When the signature verification fails, the NFT authorization model writes a rejection authorization message into the blockchain.
S16,当所述数据查询方无权限下载所述溯源数据,通过所述智能合约生成拒绝授权消息。S16, when the data query party does not have the right to download the traceability data, a denial of authorization message is generated through the smart contract.
在其他可选的实施例中,所述方法还包括:In other optional embodiments, the method further includes:
当所述数据查询方有权限下载所述溯源数据时,所述溯源数据的拥有方发送所述溯源数据至所述数据查询方。When the data query party has the right to download the traceability data, the owner of the traceability data sends the traceability data to the data query party.
进一步地,在所述基于所述授权消息下载所述溯源数据之后,所述方法还包括:Further, after downloading the traceability data based on the authorization message, the method further includes:
将下载的溯源数据中的哈希值与对应溯源链路上存证的哈希值进行对比;Compare the hash value in the downloaded traceability data with the hash value stored in the corresponding traceability link;
当下载的溯源数据中的哈希值与对应溯源链路上存证的哈希值完全一致时,确定下载的溯源数据正确;When the hash value in the downloaded traceability data is completely consistent with the hash value stored in the corresponding traceability link, it is determined that the downloaded traceability data is correct;
当下载的溯源数据中的哈希值与对应溯源链路上存证的哈希值不完全一致时,确定下载的溯源数据异常。When the hash value in the downloaded traceability data is inconsistent with the hash value stored in the corresponding traceability link, it is determined that the downloaded traceability data is abnormal.
本实施例中,数据查询方可以通过两种方式获取到溯源数据,第一种方式为当溯源数据存在保密要求时,溯源数据的拥有方在确定所述数据查询方有权限下载所述溯源数据时,直接将所述溯源数据发送至所述数据拥有方,第二种方式为当溯源数据不存在保密要求时,溯源数据的拥有方授权所述数据查询方从数据存储服务器中下载所述溯源数据,进一步的提高了溯源数据的安全性。In this embodiment, the data query party can obtain the traceability data in two ways. The first way is that when the traceability data has confidentiality requirements, the owner of the traceability data determines that the data query party has the right to download the traceability data. When the traceability data is directly sent to the data owner, the second method is that when the traceability data does not have confidentiality requirements, the owner of the traceability data authorizes the data query party to download the traceability from the data storage server. data, further improving the security of traceability data.
综上所述,本实施例所述的基于区块链的溯源数据处理方法,基于所述原始溯源数据创建所述目标对象的溯源链路,并通过智能合约将所述溯源链路部署至区块链中,建立溯源数据和溯源数据的提供方之间的存证关系,并且使用区块链对溯源数据进行存证,使得溯源数据一旦上链就不可篡改,提高了后续存证在所述溯源链路上的溯源数据的安全性。解析数据提供方的溯源数据存证请求得到解析结果,并将解析结果发送至所述智能合约的NFT生成模型中,生成所述数据提供方的目标NFT数据并进行存证,将数据提供方的零散的数据以NFT形式封装为不可拆分的整体,将溯源数据和数据提供方进行了可信的存证,提高了溯源数据的溯源来源的定位效率及准确率。在所述数据查询方有权限下载所述溯源数据时,通过所述智能合约生成授权消息,在授权情况下,基于所述授权消息下载所述溯源数据,提高了溯源数据的安全性。To sum up, the blockchain-based traceability data processing method in this embodiment creates a traceability link of the target object based on the original traceability data, and deploys the traceability link to the district through a smart contract. In the blockchain, the relationship between traceability data and the provider of the traceability data is established, and the blockchain is used to store the traceability data, so that the traceability data cannot be tampered with once it is on the chain, which improves the ability of subsequent evidence in the description. The security of traceability data on the traceability link. Parse the data provider's traceability data storage request to obtain the parsing result, and send the parsing result to the NFT generation model of the smart contract, generate the target NFT data of the data provider and store the certificate, and store the data provider's data. The scattered data is encapsulated into an inseparable whole in the form of NFT, and the traceability data and the data provider are credibly stored, which improves the location efficiency and accuracy of the traceability source of the traceability data. When the data query party has the right to download the traceability data, an authorization message is generated through the smart contract, and in the case of authorization, the traceability data is downloaded based on the authorization message, which improves the security of the traceability data.
实施例二Embodiment 2
图2是本发明实施例二提供的基于区块链的溯源数据处理装置的结构图。FIG. 2 is a structural diagram of a blockchain-based traceability data processing device provided in Embodiment 2 of the present invention.
在一些实施例中,所述基于区块链的溯源数据处理装置20可以包括多个由程序代码段所组成的功能模块。所述基于区块链的溯源数据处理装置20中的各个程序段的程序代码可以存储于电子设备的存储器中,并由所述至少一个处理器所执行,以执行(详见图1描述)基于区块链的溯源数据处理的功能。In some embodiments, the blockchain-based traceability data processing apparatus 20 may include a plurality of functional modules composed of program code segments. The program code of each program segment in the blockchain-based traceability data processing device 20 can be stored in the memory of the electronic device and executed by the at least one processor to execute (see description in FIG. 1 for details) based on The function of traceability data processing of blockchain.
本实施例中,所述基于区块链的溯源数据处理装置20根据其所执行的功能,可以被划分为多个功能模块。所述功能模块可以包括:接收和创建模块201、解析模块202、生成模块203、判断模块204、下载模块205、写入模块206及对比模块207。本发明所称的模块是指一种能够被至少一个处理器所执行并且能够完成固定功能的一系列计算机可读指令段,其存储在存储器中。在本实施例中,关于各模块的功能将在后续的实施例中详述。In this embodiment, the blockchain-based traceability data processing apparatus 20 may be divided into multiple functional modules according to the functions performed by the apparatus 20 . The functional modules may include: a receiving and creating
接收和创建模块201,用于接收目标对象的原始溯源数据,基于所述原始溯源数据创建所述目标对象的溯源链路,并通过智能合约将所述溯源链路部署至区块链中,其中,所述溯源链路中包含有溯源码。The receiving and creating
本实施例中,在目标对象的溯源数据处理过程中,可以为目标对象创建溯源链路,实现所述目标对象的溯源数据的存证,并通过智能合约将所述溯源数据部署至区块链中。In this embodiment, in the process of processing the traceability data of the target object, a traceability link can be created for the target object, so as to realize the storage of the traceability data of the target object, and deploy the traceability data to the blockchain through a smart contract middle.
本实施例中,所述目标对象可以为某个产品,例如,A疫苗,为A疫苗创建一个溯源链路,所述溯源链路对应有唯一的溯源码,所述溯源码用以唯一识别所述目标对象。In this embodiment, the target object may be a certain product, for example, vaccine A, to create a traceability link for vaccine A, the traceability link corresponds to a unique traceability source code, and the traceability source code is used to uniquely identify all describe the target object.
本实施例中,所述智能合约提供溯源数据的链路存证、数据存证、NFT数据生成、NFT申请、NFT授权、数据溯源查询等功能,所述智能合约中包含有NFT生成模型、数据存证模型、NFT申请模型、数据存证模型及NFT授权模型。In this embodiment, the smart contract provides functions such as link storage of traceability data, data storage, NFT data generation, NFT application, NFT authorization, data traceability query, etc. The smart contract includes NFT generation model, data Certificate deposit model, NFT application model, data deposit certificate model and NFT authorization model.
在一个可选的实施例中,所述接收和创建模块201基于所述原始溯源数据创建所述目标对象的溯源链路包括:In an optional embodiment, the creation of the traceability link of the target object by the receiving and creating
识别所述原始溯源数据,得到所述目标对象的各个溯源节点的节点名称及数据字段信息,以及每个数据字段信息的数据格式;Identify the original traceability data, obtain the node name and data field information of each traceability node of the target object, and the data format of each data field information;
将所述目标对象的各个溯源节点转换为对应的溯源链路的溯源节点,其中,所述溯源链路的溯源节点中包含有溯源节点的节点名称及数据字段信息,以及每个数据字段信息的数据格式;Each traceability node of the target object is converted into a traceability node of the corresponding traceability link, wherein the traceability node of the traceability link contains the node name and data field information of the traceability node, and the information of each data field information. Data Format;
将各个溯源节点之间的引用关系转换为对应的溯源链路中节点之间的边,其中,所述溯源链路中溯源节点之间的边作为所述溯源链路中溯源节点之间的引用关系;Convert the reference relationship between each traceability node into the edge between the nodes in the corresponding traceability link, wherein, the edge between the traceability nodes in the traceability link is used as the reference between the traceability nodes in the traceability link relation;
根据所述溯源链路的溯源节点和所述溯源链路中溯源节点之间的引用关系创建所述目标对象的溯源链路。The source tracing link of the target object is created according to the source tracing node of the source tracing link and the reference relationship between the source tracing nodes in the source tracing link.
本实施例中,所述原始溯源数据中包含有所述目标对象的各个溯源节点的节点名称及数据字段信息,以及每个数据字段信息的数据格式,所述原始数源数据中还包含有每个溯源节点的溯源数据提供方信息、原始数据特征及溯源数据的其他属性信息。In this embodiment, the original traceability data includes the node name and data field information of each traceability node of the target object, and the data format of each data field information, and the original data source data also includes each Traceability data provider information, original data characteristics and other attribute information of traceability data of each traceability node.
本实施例中,通过根据所述原始溯源数据创建所述目标对象的溯源链路,并通过智能合约将所述溯源链路部署至区块链中,建立溯源数据和溯源数据的提供方之间的存证关系,并且使用区块链对溯源数据进行存证,使得溯源数据一旦上链就不可篡改,提高了后续存证在所述溯源链路上的溯源数据的安全性。In this embodiment, the traceability link of the target object is created according to the original traceability data, and the traceability link is deployed into the blockchain through a smart contract, so as to establish a relationship between the traceability data and the provider of the traceability data. and use the blockchain to store the traceability data, so that the traceability data cannot be tampered with once it is on the chain, which improves the security of the traceability data that is subsequently stored on the traceability link.
解析模块202,用于响应于接收到的所述目标对象的数据提供方的溯源数据存证请求,解析所述溯源数据存证请求,得到解析结果。The
本实施例中,当数据提供方需要存证所述目标对象的溯源数据时,所述数据提供方的客户端向服务器发送溯源数据存证请求,服务器解析所述溯源数据存证请求,得到解析结果。In this embodiment, when the data provider needs to store the traceability data of the target object, the client of the data provider sends a request for the traceability data storage to the server, and the server parses the traceability data storage request, and obtains the analysis result.
在一个可选的实施例中,所述解析模块202解析所述溯源数据存证请求,得到解析结果包括:In an optional embodiment, the
解析所述溯源数据存证请求,获取目标溯源码和存证数据;Parse the traceability data deposit request, and obtain the target traceability source code and deposit data;
从预设的数据库中匹配出所述目标溯源码对应的目标溯源链路;Matching the target traceability link corresponding to the target traceability source code from the preset database;
将所述存证数据发送至智能合约中,所述智能合约的数据存证模型按照预设的解析规范对所述存证数据进行解析,得到解析结果。Send the certificate data to the smart contract, and the data certificate model of the smart contract parses the certificate data according to a preset analysis specification to obtain a parsing result.
本实施例中,可以预先建立数据库,所述数据库中存储有所有目标对象的溯源链路的溯源码,当数据提供方发送溯源数据存证请求时,所述溯源数据存证请求中包含有目标溯源码和存证数据,通过所述目标溯源码可以快速确定出目标溯源链路,所述目标溯源链路对应有预设的解析规范,按照所述预设的解析规范解析所述存证数据,便于后续存证数据的管理,提供了存证数据的管理效率。In this embodiment, a database may be established in advance, and the database stores the traceability source codes of the traceability links of all target objects. When the data provider sends a traceability data storage request, the traceability data storage request contains the target Traceability source code and evidence data, the target traceability link can be quickly determined through the target traceability source code, the target traceability link corresponds to a preset parsing specification, and the certificate data is parsed according to the preset parsing specification , which is convenient for the management of the subsequent storage data, and provides the management efficiency of the storage data.
生成模块203,用于将所述解析结果发送至所述智能合约的NFT生成模型中,生成所述数据提供方的目标NFT数据并进行存证。The
本实施例中,在进行解析结果的存证时,将所述解析结果发送至智能合约的NFT生成模型中,对所述解析结果进行NFT封装,得到所述数据提供方的NFT数据。In this embodiment, when the parsing result is stored for verification, the parsing result is sent to the NFT generation model of the smart contract, and the parsing result is NFT encapsulated to obtain the NFT data of the data provider.
在一个可选的实施例中,所述生成模块203将所述解析结果发送至所述智能合约的NFT生成模型中,生成所述数据提供方的目标NFT数据并进行存证包括:In an optional embodiment, the
识别所述解析结果中的每个数据字段信息的数据类型;Identify the data type of each data field information in the parsing result;
当识别到所述解析结果中的每个数据字段信息的数据类型为文本数据时,将所述每个数据字段信息发送至所述智能合约的NFT生成模型中;当识别到所述解析结果中的每个数据字段信息的数据类型不为文本数据时,计算每个数据字段信息的哈希值,将所述哈希值发送至所述智能合约的NFT生成模型中;When it is recognized that the data type of each data field information in the parsing result is text data, the information of each data field is sent to the NFT generation model of the smart contract; when it is recognized that the parsing result is in the NFT generation model When the data type of each data field information is not text data, calculate the hash value of each data field information, and send the hash value to the NFT generation model of the smart contract;
所述智能合约的NFT生成模型生成所述数据提供方的NFT识别码,并按照所述目标溯源链路对应的数据提供方的溯源节点的节点名称及数据字段信息,以及每个数据字段信息的数据格式,将接收到的每个数据字段信息或者哈希值填充至所述数据提供方的溯源节点的对应位置,得到第一NFT数据;The NFT generation model of the smart contract generates the NFT identification code of the data provider, and the node name and data field information of the traceability node of the data provider corresponding to the target traceability link, and the information of each data field. Data format, filling the received information of each data field or hash value to the corresponding position of the traceability node of the data provider to obtain the first NFT data;
在所述数据提供方对应的字段中填写所述数据提供方的信息,得到第二NFT数据;Fill in the information of the data provider in the field corresponding to the data provider to obtain the second NFT data;
所述智能合约的NFT生成模型将所述NFT识别码、所述第一NFT数据和所述第二NFT数据进行封装,生成所述数据提供方的目标NFT数据;The NFT generation model of the smart contract encapsulates the NFT identification code, the first NFT data and the second NFT data to generate the target NFT data of the data provider;
将所述数据提供方的目标NFT数据发送至智能合约的数据存证模型中,在所述数据存证模型中将所述数据提供方的目标NFT数据写入所述区块链中进行存证。Send the target NFT data of the data provider to the data storage model of the smart contract, and write the target NFT data of the data provider into the blockchain for storage in the data storage model. .
本实施例中,在进行数据提供方的目标NFT数据的封装时,绑定了数据提供方的信息,使得目标NFT数据更加的完整,提高了NFT数据的管理效率。In this embodiment, when the target NFT data of the data provider is encapsulated, the information of the data provider is bound, so that the target NFT data is more complete and the management efficiency of the NFT data is improved.
本实施例中,所述智能合约中的NFT生成模型将接收到的每个数据字段信息、哈希值、数据提供方的信息及NFT识别码,这些零散的数据以NFT形式封装为不可拆分的整体,当溯源数据发生异常时,获取异常的溯源数据的NFT识别码,确定所述异常的溯源数据的数据来源为所述NFT识别码对应的数据提供方,例如,在疫苗物流运输环节中,A操作员提供了出库商品数量数据,B操作员提供了运输过程的温度湿度等运输环境数据,C操作员提供了运输车辆和驾驶员信息,最后发现疫苗数量异常,则可以快速定位到A操作员,提高了溯源数据的溯源来源的定位效率及准确率,此外,由于每个数据提供方的目标NFT数据作为一个整体,将溯源数据和数据提供方进行了可信的存证,避免了数据提供方篡改溯源数据导致的溯源数据不可靠的问题,提高了溯源数据的安全性。In this embodiment, the NFT generation model in the smart contract will receive each data field information, hash value, data provider information and NFT identification code, and these scattered data are encapsulated in the form of NFT as inseparable When the traceability data is abnormal, the NFT identification code of the abnormal traceability data is obtained, and the data source of the abnormal traceability data is determined to be the data provider corresponding to the NFT identification code, for example, in the vaccine logistics and transportation link , Operator A provides data on the quantity of goods out of the warehouse, Operator B provides transportation environment data such as temperature and humidity during transportation, Operator C provides transportation vehicle and driver information, and finally finds that the number of vaccines is abnormal, it can be quickly located. Operator A improves the location efficiency and accuracy of the traceability source of the traceability data. In addition, since the target NFT data of each data provider is taken as a whole, the traceability data and the data provider are credibly stored to avoid It solves the problem of unreliability of traceability data caused by data providers tampering with traceability data, and improves the security of traceability data.
判断模块204,用于当侦测到数据查询方发送的下载所述目标对象的溯源数据请求时,判断所述数据查询方是否有权限下载所述溯源数据。The
本实施例中,下载所述目标对象的溯源数据请求是指所述数据查询方请求阅读被封装的NFT数据,为了确保NFT数据的安全性,需要判断所述数据查询方是否有权限下载所述目标对象的溯源数据。In this embodiment, the request to download the traceability data of the target object means that the data query party requests to read the encapsulated NFT data. In order to ensure the security of the NFT data, it is necessary to determine whether the data query party has the right to download the data. Traceability data of the target object.
在一个可选的实施例中,所述判断模块204判断所述数据查询方是否有权限下载所述溯源数据包括:In an optional embodiment, the judging
解析下载所述目标对象的溯源数据请求,获取所述溯源数据的NFT识别码;Parse and download the traceability data request of the target object, and obtain the NFT identification code of the traceability data;
发送所述NFT识别码至智能合约的NFT申请模型中,生成所述NFT数据的使用申请,及将所述NFT数据的使用申请写入所述区块链中;Send the NFT identification code to the NFT application model of the smart contract, generate the application for the use of the NFT data, and write the application for the use of the NFT data into the blockchain;
判断所述NFT数据的使用申请是否获得授权;Determine whether the application for the use of the NFT data is authorized;
当所述NFT数据的使用申请获得授权时,确定所述数据查询方有权限下载所述溯源数据;When the application for the use of the NFT data is authorized, it is determined that the data query party has the right to download the traceability data;
当所述NFT数据的使用申请未获得授权时,确定所述数据查询方无权限下载所述溯源数据。When the application for the use of the NFT data is not authorized, it is determined that the data query party has no right to download the traceability data.
本实施例中,所述智能合约的NFT申请模型可以根据数据查询方的下载所述目标对象的溯源数据请求和溯源数据的NFT识别码记录所述NFT数据的使用申请,并将所述NFT数据的使用申请写入所述区块链中,NFT数据的拥有方判断所述NFT数据的使用申请是否获得授权,根据判断结果确定所述数据查询方是否有权限下载所述溯源数据,当所述数据查询方有权限下载所述溯源数据时,授权所述数据查询方下载所述溯源数据。In this embodiment, the NFT application model of the smart contract can record the application for the use of the NFT data according to the data query party's request to download the traceability data of the target object and the NFT identification code of the traceability data, and store the NFT data The application for use of the NFT data is written into the blockchain, and the owner of the NFT data judges whether the application for use of the NFT data is authorized, and determines whether the data query party has the right to download the traceability data according to the judgment result. When the data query party has the right to download the traceability data, the data query party is authorized to download the traceability data.
进一步地,当侦测到数据查询方发送的查询所述溯源数据请求时,获取所述目标对象的溯源码;根据所述溯源码查询对应的溯源链路,并匹配出所述溯源链路上的所有溯源节点的存证信息;按照预设的排序方式对所述所有溯源节点的存证信息进行排序,并将排序结果返回给所述数据查询方。Further, when detecting the traceability data request sent by the data inquiring party, obtain the traceability source code of the target object; query the corresponding traceability link according to the traceability source code, and match the traceability link on the source traceability link. The certificate storage information of all the traceability nodes; sort the certificate storage information of all the traceability nodes according to the preset sorting method, and return the sorting result to the data query party.
本实施例中,所述存证信息中包含有所述溯源链路的溯源码、及各个溯源节点的NFT识别码和NFT数据的使用申请等存证记录。In this embodiment, the certificate storage information includes the traceability source code of the traceability link, the NFT identification code of each traceability node, the application for using the NFT data, and other certificate storage records.
本实施例中,当数据查询方查询溯源数据的链路存证信息时,无需得到拥有方的授权,通过所述溯源数据的溯源链路的溯源码即可快速的查询到所述目标对象的所有存证信息,提高了溯源数据的追溯效率。In this embodiment, when the data inquiring party queries the link certificate information of the traceability data, it does not need to obtain the authorization of the owner, and the traceability source of the traceability link of the traceability data can quickly query the information of the target object. All the evidence-based information improves the traceability of traceability data.
下载模块205,用于当所述数据查询方有权限下载所述溯源数据时,通过所述智能合约生成授权消息,并基于所述授权消息下载所述溯源数据。The
本实施例中,在数据查询方有权限下载所述溯源数据时,需要对数据查询方的签名进行验签,进一步确保溯源数据的安全性。In this embodiment, when the data inquiring party has the right to download the traceability data, the signature of the data inquiring party needs to be verified to further ensure the security of the traceability data.
在一个可选的实施例中,所述下载模块205通过所述智能合约生成授权消息,并基于所述授权消息下载所述溯源数据包括:In an optional embodiment, the
智能合约的NFT授权模型接收数据提供方发送的授权消息,并将所述授权消息写入所述区块链中;The NFT authorization model of the smart contract receives the authorization message sent by the data provider, and writes the authorization message into the blockchain;
基于所述授权消息对数据查询方的签名进行验签;Verifying the signature of the data query party based on the authorization message;
当所述验签通过时,所述数据查询方基于所述授权消息从数据存储服务器中下载所述溯源数据。When the signature verification is passed, the data query party downloads the traceability data from the data storage server based on the authorization message.
写入模块206,用于当所述验签未通过时,所述NFT授权模型将拒绝授权消息写入所述区块链中。The
进一步地,所述生成模块203,还用于当所述数据查询方无权限下载所述溯源数据,通过所述智能合约生成拒绝授权消息。Further, the
在其他可选的实施例中,当所述数据查询方有权限下载所述溯源数据时,所述溯源数据的拥有方发送所述溯源数据至所述数据查询方。In other optional embodiments, when the data query party has the right to download the traceability data, the owner of the traceability data sends the traceability data to the data query party.
进一步地,在所述基于所述授权消息下载所述溯源数据之后,对比模块207,用于将下载的溯源数据中的哈希值与对应溯源链路上存证的哈希值进行对比;当下载的溯源数据中的哈希值与对应溯源链路上存证的哈希值完全一致时,确定下载的溯源数据正确;当下载的溯源数据中的哈希值与对应溯源链路上存证的哈希值不完全一致时,确定下载的溯源数据异常。Further, after downloading the traceability data based on the authorization message, the
本实施例中,数据查询方可以通过两种方式获取到溯源数据,第一种方式为当溯源数据存在保密要求时,溯源数据的拥有方在确定所述数据查询方有权限下载所述溯源数据时,直接将所述溯源数据发送至所述数据拥有方,第二种方式为当溯源数据不存在保密要求时,溯源数据的拥有方授权所述数据查询方从数据存储服务器中下载所述溯源数据,进一步的提高了溯源数据的安全性。In this embodiment, the data query party can obtain the traceability data in two ways. The first way is that when the traceability data has confidentiality requirements, the owner of the traceability data determines that the data query party has the right to download the traceability data. When the traceability data is directly sent to the data owner, the second method is that when the traceability data does not have confidentiality requirements, the owner of the traceability data authorizes the data query party to download the traceability from the data storage server. data, further improving the security of traceability data.
综上所述,本实施例所述的基于区块链的溯源数据处理装置,基于所述原始溯源数据创建所述目标对象的溯源链路,并通过智能合约将所述溯源链路部署至区块链中,建立溯源数据和溯源数据的提供方之间的存证关系,并且使用区块链对溯源数据进行存证,使得溯源数据一旦上链就不可篡改,提高了后续存证在所述溯源链路上的溯源数据的安全性。解析数据提供方的溯源数据存证请求得到解析结果,并将解析结果发送至所述智能合约的NFT生成模型中,生成所述数据提供方的目标NFT数据并进行存证,将数据提供方的零散的数据以NFT形式封装为不可拆分的整体,将溯源数据和数据提供方进行了可信的存证,提高了溯源数据的溯源来源的定位效率及准确率。在所述数据查询方有权限下载所述溯源数据时,通过所述智能合约生成授权消息,在授权情况下,基于所述授权消息下载所述溯源数据,提高了溯源数据的安全性。To sum up, the blockchain-based traceability data processing device in this embodiment creates a traceability link of the target object based on the original traceability data, and deploys the traceability link to the district through a smart contract. In the blockchain, the relationship between traceability data and the provider of the traceability data is established, and the blockchain is used to store the traceability data, so that the traceability data cannot be tampered with once it is on the chain, which improves the ability of subsequent evidence in the description. The security of traceability data on the traceability link. Parse the data provider's traceability data storage request to obtain the parsing result, and send the parsing result to the NFT generation model of the smart contract, generate the target NFT data of the data provider and store the certificate, and store the data provider's data. The scattered data is encapsulated into an inseparable whole in the form of NFT, and the traceability data and the data provider are credibly stored, which improves the location efficiency and accuracy of the traceability source of the traceability data. When the data query party has the right to download the traceability data, an authorization message is generated through the smart contract, and in the case of authorization, the traceability data is downloaded based on the authorization message, which improves the security of the traceability data.
实施例三
参阅图3所示,为本发明实施例三提供的电子设备的结构示意图。在本发明较佳实施例中,所述电子设备3包括存储器31、至少一个处理器32、至少一条通信总线33及收发器34。Referring to FIG. 3 , it is a schematic structural diagram of an electronic device according to
本领域技术人员应该了解,图3示出的电子设备的结构并不构成本发明实施例的限定,既可以是总线型结构,也可以是星形结构,所述电子设备3还可以包括比图示更多或更少的其他硬件或者软件,或者不同的部件布置。Those skilled in the art should understand that the structure of the electronic device shown in FIG. 3 does not constitute a limitation of the embodiments of the present invention, and may be a bus-type structure or a star-shaped structure, and the
在一些实施例中,所述电子设备3是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的电子设备,其硬件包括但不限于微处理器、专用集成电路、可编程门阵列、数字处理器及嵌入式设备等。所述电子设备3还可包括客户设备,所述客户设备包括但不限于任何一种可与客户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、数码相机等。In some embodiments, the
需要说明的是,所述电子设备3仅为举例,其他现有的或今后可能出现的电子产品如可适应于本发明,也应包含在本发明的保护范围以内,并以引用方式包含于此。It should be noted that the
在一些实施例中,所述存储器31用于存储程序代码和各种数据,例如安装在所述电子设备3中的基于区块链的溯源数据处理装置20,并在电子设备3的运行过程中实现高速、自动地完成程序或数据的存取。所述存储器31包括只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable Read-Only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子擦除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。In some embodiments, the
在一些实施例中,所述至少一个处理器32可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述至少一个处理器32是所述电子设备3的控制核心(Control Unit),利用各种接口和线路连接整个电子设备3的各个部件,通过运行或执行存储在所述存储器31内的程序或者模块,以及调用存储在所述存储器31内的数据,以执行电子设备3的各种功能和处理数据。In some embodiments, the at least one
在一些实施例中,所述至少一条通信总线33被设置为实现所述存储器31以及所述至少一个处理器32等之间的连接通信。In some embodiments, the at least one
尽管未示出,所述电子设备3还可以包括给各个部件供电的电源(比如电池),可选的,电源可以通过电源管理装置与所述至少一个处理器32逻辑相连,从而通过电源管理装置实现管理充电、放电、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述电子设备3还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。Although not shown, the
应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。It should be understood that the embodiments are only used for illustration, and are not limited by this structure in the scope of the patent application.
上述以软件功能模块的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,电子设备,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分。The above-mentioned integrated units implemented in the form of software functional modules may be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, an electronic device, or a network device, etc.) or a processor (processor) to execute the methods described in the various embodiments of the present invention. part.
在进一步的实施例中,结合图2,所述至少一个处理器32可执行所述电子设备3的操作装置以及安装的各类应用程序(如所述的基于区块链的溯源数据处理装置20)、程序代码等,例如,上述的各个模块。In a further embodiment, with reference to FIG. 2 , the at least one
所述存储器31中存储有程序代码,且所述至少一个处理器32可调用所述存储器31中存储的程序代码以执行相关的功能。例如,图2中所述的各个模块是存储在所述存储器31中的程序代码,并由所述至少一个处理器32所执行,从而实现所述各个模块的功能以达到基于区块链的溯源数据处理的目的。Program codes are stored in the
示例性的,所述程序代码可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器31中,并由所述处理器32执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述所述程序代码在所述电子设备3中的执行过程。例如,所述程序代码可以被分割成接收和创建模块201、解析模块202、生成模块203、判断模块204、下载模块205、写入模块206及对比模块207。Exemplarily, the program code may be divided into one or more modules/units, and the one or more modules/units are stored in the
在本发明的一个实施例中,所述存储器31存储多个计算机可读指令,所述多个计算机可读指令被所述至少一个处理器32所执行以实现基于区块链的溯源数据处理的功能。In one embodiment of the present invention, the
具体地,所述至少一个处理器32对上述指令的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。Specifically, for the specific implementation method of the above instruction by the at least one
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division manners in actual implementation.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,既可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或,单数不排除复数。本发明中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。It will be apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, but that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of the invention is to be defined by the appended claims rather than the foregoing description, which are therefore intended to fall within the scope of the claims. All changes within the meaning and range of the equivalents of , are included in the present invention. Any reference signs in the claims shall not be construed as limiting the involved claim. Furthermore, it is clear that the word "comprising" does not exclude other units or, and the singular does not exclude the plural. A plurality of units or devices stated in the present invention may also be implemented by one unit or device through software or hardware. The terms first, second, etc. are used to denote names and do not denote any particular order.
最后应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent substitutions can be made without departing from the spirit and scope of the technical solutions of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210427026.9A CN114741738A (en) | 2022-04-21 | 2022-04-21 | Tracing data processing method and device based on block chain, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210427026.9A CN114741738A (en) | 2022-04-21 | 2022-04-21 | Tracing data processing method and device based on block chain, electronic equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114741738A true CN114741738A (en) | 2022-07-12 |
Family
ID=82283235
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210427026.9A Pending CN114741738A (en) | 2022-04-21 | 2022-04-21 | Tracing data processing method and device based on block chain, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114741738A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115375335A (en) * | 2022-10-24 | 2022-11-22 | 浙江省标准化研究院(金砖国家标准化(浙江)研究中心、浙江省物品编码中心) | Object tracing method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113362073A (en) * | 2020-03-06 | 2021-09-07 | 上海部恩科技有限公司 | Virtual asset disposal method based on block chain non-homogenization evidence |
US20210295324A1 (en) * | 2019-04-11 | 2021-09-23 | Jan Willem Olger Valentijn KERSEBOOM | System and method employing virtual ledger with non-fungible token (nft) generation |
CN113706175A (en) * | 2021-08-31 | 2021-11-26 | 江超 | Commodity traceability anti-counterfeiting method based on block chain and related equipment |
CN113806817A (en) * | 2021-10-08 | 2021-12-17 | 中科计算技术创新研究院 | Method for constructing twin NFT, NFT protocol and system for full trusted storage |
-
2022
- 2022-04-21 CN CN202210427026.9A patent/CN114741738A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210295324A1 (en) * | 2019-04-11 | 2021-09-23 | Jan Willem Olger Valentijn KERSEBOOM | System and method employing virtual ledger with non-fungible token (nft) generation |
CN113362073A (en) * | 2020-03-06 | 2021-09-07 | 上海部恩科技有限公司 | Virtual asset disposal method based on block chain non-homogenization evidence |
CN113706175A (en) * | 2021-08-31 | 2021-11-26 | 江超 | Commodity traceability anti-counterfeiting method based on block chain and related equipment |
CN113806817A (en) * | 2021-10-08 | 2021-12-17 | 中科计算技术创新研究院 | Method for constructing twin NFT, NFT protocol and system for full trusted storage |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115375335A (en) * | 2022-10-24 | 2022-11-22 | 浙江省标准化研究院(金砖国家标准化(浙江)研究中心、浙江省物品编码中心) | Object tracing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110489485B (en) | Federated blockchain network, method and storage medium for storing product data therein | |
WO2021189899A1 (en) | Link state tracking method and apparatus, and electronic device and computer storage medium | |
US11263120B2 (en) | Feature-based deployment pipelines | |
US20210067536A1 (en) | Blockchain cybersecurity audit platform | |
US20200364525A1 (en) | Rf tag operating system with iot connector core | |
CN109474578A (en) | Message method of calibration, device, computer equipment and storage medium | |
CN112445854B (en) | Multi-source service data real-time processing method, device, terminal and storage medium | |
US11188969B2 (en) | Data-analysis-based validation of product review data and linking to supply chain record data | |
US20210049715A1 (en) | Blockchain-based data procesing method, apparatus, and electronic device | |
CN113986924A (en) | Intelligent data filling method, device, equipment and storage medium | |
CN115086047B (en) | Interface authentication method and device, electronic equipment and storage medium | |
WO2019157122A1 (en) | Rf tag operating system with iot connector core | |
CN113051171A (en) | Interface test method, device, equipment and storage medium | |
CN112187783A (en) | Authentication method and device, electronic equipment and storage medium | |
CN114741738A (en) | Tracing data processing method and device based on block chain, electronic equipment and medium | |
CN113469649B (en) | Project progress analysis method, device, electronic device and storage medium | |
CN112866285B (en) | Gateway interception method and device, electronic equipment and storage medium | |
CN113434542A (en) | Data relation identification method and device, electronic equipment and storage medium | |
CN112686759B (en) | Account reconciliation monitoring method, device, equipment and medium | |
CN101464902A (en) | Verification method and system for outsourced database query result | |
CN116596551A (en) | Supply chain product tracing method based on block chain, storage medium and electronic equipment | |
WO2021174917A1 (en) | Artificial intelligence-based poi positioning method and device, computer device, and medium | |
US11205102B1 (en) | Tamper proof logging for automated processes | |
CN115102770A (en) | Resource access method, device and equipment based on user permission and storage medium | |
CN112214662A (en) | Service relationship query method, device, electronic device and storage medium |
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 |