CN110874747A - Product service data uploading method, product service data storing device, product service data storing equipment and product service data storing medium - Google Patents

Product service data uploading method, product service data storing device, product service data storing equipment and product service data storing medium Download PDF

Info

Publication number
CN110874747A
CN110874747A CN201910981148.0A CN201910981148A CN110874747A CN 110874747 A CN110874747 A CN 110874747A CN 201910981148 A CN201910981148 A CN 201910981148A CN 110874747 A CN110874747 A CN 110874747A
Authority
CN
China
Prior art keywords
product
node
service data
digital certificate
participation node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910981148.0A
Other languages
Chinese (zh)
Inventor
赵文强
李艳鹏
梁志华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN201910981148.0A priority Critical patent/CN110874747A/en
Publication of CN110874747A publication Critical patent/CN110874747A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3263Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements

Abstract

One or more embodiments of the present specification disclose a method, an apparatus, a device, and a medium for uploading product service data, where the method for uploading product service data includes: sending the identity authentication information of the product participation node to a Certificate Authority (CA); receiving a digital certificate sent by the CA, wherein the digital certificate is generated by the CA authenticating the product participation node according to the identity authentication information; applying for the product participation node to become a node of a block chain according to the digital certificate; after the product participation node becomes a node of the block chain, calculating a signature of the product service data for each time of product service data to be uploaded, and sending the product service data, the signature and the digital certificate to nodes of the block chain except the product participation node.

Description

Product service data uploading method, product service data storing device, product service data storing equipment and product service data storing medium
Technical Field
The present specification belongs to the field of product traceability, and in particular, relates to a product service data uploading method, a product service data storing device, and a product service data storing medium.
Background
As technology advances, the chain of the product supply chain continues to lengthen, thereby presenting a significant challenge to product traceability. In the face of the challenge, a product tracing service platform can be established to manage product service data, so as to implement product tracing, and the method specifically includes: and the product tracing service platform audits the identity authentication information sent by the product participation node, and if the audit is passed, the product service data sent by the product participation node can be stored for product tracing at the later stage.
However, since some false product business data inevitably exists, if the false product business data is stored, the user queries the false product business data when tracing the product source, so as to deceive the consumer, and an irreparable result is caused.
Disclosure of Invention
Embodiments of the present specification provide a product service data uploading method, a product service data storing device, a product service data uploading device, a product service data storing device, and a product service data storing medium, which can solve the problem that false product service data exists during tracing.
In a first aspect, an embodiment of the present specification provides a method for uploading product service data, where the method is applied to a product participation node in a product circulation process, and the method includes:
sending the identity authentication information of the product participation node to a Certificate Authority (CA);
receiving a digital certificate sent by the CA, wherein the digital certificate is generated by the CA authenticating the product participation node according to the identity authentication information;
applying for the product participation node to become a node of a block chain according to the digital certificate;
after the product participation node becomes a node of the block chain, calculating a signature of the product service data for each time of product service data to be uploaded, and sending the product service data, the signature and the digital certificate to nodes of the block chain except the product participation node.
In a second aspect, an embodiment of the present specification provides a product service data evidence storing method, which is applied to a node of a block chain, and the method includes:
receiving product service data, a signature of the product service data and a digital certificate sent by a product participation node in a product circulation process;
executing an intelligent contract for product business data storage to obtain the latest digital certificate of the product participation node from a CA;
verifying whether the digital certificate sent by the product participation node is valid according to the latest digital certificate obtained from the CA;
if the digital certificate sent by the product participation node is valid, verifying the signature according to the product service data;
storing the product business data on the blockchain if the signature verification passes; in the event that the signature verification fails, not storing the product business data on the blockchain.
In a third aspect, an embodiment of the present specification provides a product service data uploading apparatus, which is applied to a product participation node in a product circulation process, and the apparatus includes:
the authentication information sending module is used for sending the identity authentication information of the product participation node to a Certificate Authority (CA);
a digital certificate receiving module, configured to receive a digital certificate sent by the CA, where the digital certificate is generated by the CA authenticating the product participation node according to the identity authentication information;
a block chain node application module, configured to apply for the product participation node to become a node of a block chain according to the digital certificate;
the signature calculation module is used for calculating the signature of the product service data for the product service data to be uploaded each time after the product participation node becomes a node of the block chain;
a data sending module, configured to send the product service data, the signature, and the digital certificate to nodes of the blockchain other than the product participating node.
In a fourth aspect, an embodiment of the present specification provides a product service data certification device, which is applied to a node of a block chain, where the device includes:
the data receiving module is used for receiving product service data sent by a product participation node in the product circulation process, a signature of the product service data and a digital certificate;
the first intelligent contract execution module is used for executing an intelligent contract for storing the product service data so as to acquire the latest digital certificate of the product participation node from the CA;
the first certificate verification module is used for verifying whether the digital certificate sent by the product participation node is valid according to the latest digital certificate obtained from the CA;
the signature verification module is used for verifying the signature according to the product service data if the digital certificate sent by the product participation node is valid;
the storage processing module is used for storing the product service data on the block chain under the condition that the signature verification is passed; in the event that the signature verification fails, not storing the product business data on the blockchain.
In a fifth aspect, an embodiment of the present specification provides a computer device, including: a processor and a memory storing computer program instructions;
and the processor realizes the product service data uploading method or the product service data storage method when executing the computer program instruction.
In a sixth aspect, an embodiment of the present specification provides a computer storage medium, where computer program instructions are stored on the computer storage medium, and when executed by a processor, the computer program instructions implement the product service data uploading method or the product service data storage method.
In the product service data uploading method, the product service data storing device, the product service data uploading equipment and the product service data storing medium in the embodiment of the specification, the digital certificate is issued to the product participation node through the CA, and the CA is an authority and has more resources and more comprehensive data, so that the CA authentication result is more accurate. In addition, the product service data is uploaded, and simultaneously, the signature of the product service data and the digital certificate of the product participation node are uploaded. Therefore, the product service data can be verified through the signature, and the product participation node sending the product service data is verified through the digital certificate, so that double verification is realized, false product service data is prevented from being uploaded, and the real product service data is guaranteed to be displayed to a user when product tracing is carried out.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments of the present disclosure will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a system for a product business data uploading method and a product business data storage method provided by an embodiment of the present specification;
fig. 2 shows a timing diagram of a product service data uploading method and a product service data storing method provided by an embodiment of the present specification;
fig. 3 is a schematic structural diagram illustrating a product service data uploading apparatus provided by an embodiment of the present specification;
fig. 4 is a schematic structural diagram of a product service data certification device provided in another embodiment of the present specification;
fig. 5 shows a hardware structure diagram of a computer device provided in an embodiment of the present specification.
Detailed Description
Features and exemplary embodiments of various aspects of the present specification will be described in detail below, and in order to make objects, technical solutions and advantages of the specification more apparent, the specification will be further described in detail below with reference to the accompanying drawings and specific embodiments. It will be apparent to one skilled in the art that the present description may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present specification by illustrating examples thereof.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Fig. 1 shows a system diagram for a product business data uploading method and a product business data storage method according to an embodiment of the present specification.
As shown in fig. 1, the product service data uploading method includes the following steps:
a product participation node in a product circulation process sends identity authentication information to a Certificate Authority (CA), where the identity authentication information may include qualification information of the product participation node, and the product participation node may be: a product production node, a product logistics node, a product sales node, a product purchase node, or a product maintenance node.
And the CA verifies the identity authentication information of the product participation node, generates a digital certificate for the product participation node under the condition that the verification is passed, and sends the digital certificate to the product participation node.
And the product participation node applies for the product participation node to become a node of the block chain according to the digital certificate generated by the CA.
After the product participation node becomes a node of the block chain, calculating the signature of the product service data for the product service data to be uploaded each time, and sending the product service data, the signature and the digital certificate of the product participation node to nodes except the product participation node of the block chain.
After the product service data uploading method is executed, the product service data evidence storing method is executed, and the method specifically comprises the following steps:
after receiving the product service data, the signature and the digital certificate, the nodes of the blockchain execute an intelligent contract for product service data certification to acquire the latest digital certificate of the product participation node stored in the CA.
And the node of the block chain verifies whether the digital certificate sent by the product participation node is valid according to the latest digital certificate of the product participation node stored in the CA. For example, if the latest digital certificate of the product participation node stored in the CA is identical to the digital certificate sent by the product participation node, it indicates that the digital certificate sent by the product participation node is valid.
And under the condition that the digital certificate sent by the product participation node is valid, verifying the signature of the product service data by the node of the block chain according to the product service data.
Storing product service data on the blockchain under the condition that the signature verification is passed; in the event that the signature verification fails, no product business data is stored on the blockchain.
After the product service data is stored, the query terminal can acquire the product service data from the nodes of the block chain, so that product tracing is realized. The product tracing refers to collecting and tracing data of each link of production, distribution, logistics, sale, purchase, use, recovery and the like of the product.
In the embodiment of the specification, the digital certificate is issued to the product participation node through the CA, and the CA is an authority and has more resources and more comprehensive data, so that the certification result of the CA is more accurate. In addition, the product service data is uploaded, and simultaneously, the signature of the product service data and the digital certificate of the product participation node are uploaded. Therefore, the product service data can be verified through the signature, and the product participation node sending the product service data can be verified through the digital certificate, so that double verification is realized, false product service data are prevented from being uploaded, and the real product service data are guaranteed to be displayed to a user when product tracing is carried out.
The product tracing system provided in the embodiment of the present specification is introduced above, and the product service data uploading and evidence storing method provided in the embodiment of the present specification is introduced below.
Fig. 2 shows a timing diagram of a product service data uploading method and a product service data storing method provided in an embodiment of the present specification, and as shown in fig. 2, the product service data uploading method includes:
s102, the product participation node sends identity authentication information to the CA. The CA is the authority that performs certification and issuance of certificates.
And S104, the CA performs identity authentication based on the identity authentication information and generates a digital certificate under the condition that the identity authentication is passed. Wherein the digital certificate comprises a public key of the product participating node. In addition, the CA may also generate a private key corresponding to the public key for the product participating node, i.e., the public key and the private key are a pair, and send the private key to the product participating node.
And S106, the CA sends the generated digital certificate to the product participation node. For the digital certificate of the product participation node, not only the product participation node can hold, but also the CA stores the digital certificate. For the private key of the product participation node, the private key is secret and cannot be leaked, and only the product participation node holds the private key.
And S108, after receiving the digital certificate generated by the CA, the product participation node sends a request and the digital certificate of the product participation node to the nodes of the block chain, wherein the request is used for applying the product participation node to become the nodes of the block chain.
After a node of the blockchain receives the request, an intelligent contract for joining the blockchain is executed to obtain the latest digital certificate of the product participating node from the CA.
Wherein, obtaining the latest digital certificate of the product participation node from the CA includes S110 and S112.
S110, the node of the block chain sends a request for obtaining the latest digital certificate of the product participation node to the CA.
And S112, inquiring the latest digital certificate of the product participation node by the CA according to the request in the S110, and sending the latest digital certificate of the product participation node to the nodes of the block chain.
After the node of the blockchain acquires the latest digital certificate of the product participation node from the CA, the product service data uploading and storing method further comprises the following steps:
s114, the node of the block chain verifies whether the digital certificate sent by the product participating node is valid according to the latest digital certificate of the product participating node, for example, whether the content of the latest digital certificate of the product participating node is consistent with the content of the digital certificate sent by the product participating node is verified, and when the content is consistent, the digital certificate sent by the product participating node is valid. And when the digital certificate sent by the product participation node is verified to be valid, adding the product participation node to the block chain, namely, taking the product participation node as one node of the block chain.
With continued reference to fig. 2, the product service data credentialing method includes:
and S116, after the product participation node becomes a node of the block chain, calculating the product service data to be uploaded by the product participation node each time by using the private key of the product participation node to obtain the signature of the product service data. The product business data may include names of product participation nodes, production dates of products, production places of products, and the like.
Wherein, S116 specifically includes: calculating the product service data through a Secure Hash Algorithm (SHA) Hash function to obtain a calculation result, and encrypting the calculation result by using a private key of a product participation node to obtain a signature of the product service data.
And S118, the product participating node sends the product service data, the signature and the digital certificate to nodes except the product participating node of the block chain.
After receiving the product service data, the signature and the certificate serial number, the nodes of the block chain execute an intelligent contract for storing the product service data so as to acquire the latest digital certificate of the participating nodes from the CA.
Wherein the acquiring, by a node of the blockchain, the latest digital certificate of the participating node from the CA includes S120 and S122.
S120, sending a request for obtaining the certificate of the product participation node to the CA.
And S122, inquiring the latest digital certificate of the product participation node in the stored digital certificates according to the request in the S120 by the CA, and sending the latest digital certificate of the participation node to the nodes of the block chain.
After S122, the product service data uploading and storing method further includes:
and S124, verifying whether the digital certificate sent by the product participation node is valid or not by the node of the block chain by using the latest digital certificate of the product participation node acquired from the CA, if so, verifying the signature by using the public key in the digital certificate and the product service data, and storing the product service data onto the block chain when the signature passes the verification.
The verifying the signature by using the public key in the digital certificate and the product service data sent by the product participation node specifically comprises: calculating a first abstract according to the product service data, for example, calculating the product service data through an SHA hash function to obtain the first abstract; decrypting the signature by using a public key in the digital certificate of the product participation node to obtain a second abstract; and if the first digest is the same as the second digest, the signature is verified to be passed.
In this embodiment of the present specification, after the CA generates a digital certificate for the product participating node, the product participating node may prove its identity to be reliable by using the digital certificate, thereby becoming a node of the blockchain. After the product participation node becomes a node of the block chain, the identity is proved to be reliable by using the digital certificate, so that the uploaded product service data is proved to be reliable, the uploading and storing of false product service data are effectively avoided, and the authenticity and reliability of product service data tracing are ensured. In the embodiment of the present specification, a product participation node may directly communicate with a node of a block chain, that is, there is no intermediate forwarding device between the product participation node and the node of the block chain; the product participating nodes may communicate indirectly with the nodes of the blockchain, i.e. there is no intermediate relay device between the product participating nodes and the nodes of the blockchain, such as a server of the tracing service platform.
In one or more embodiments of this specification (including the embodiment of fig. 1 or fig. 2), after the product participation node becomes a node of the blockchain, the product traffic data uploading method further includes: under the condition that the product participation node receives the operation of associating the product service data with the product identification, responding to the operation and acquiring the product identification; associating the product identification with product business data; sending a product identification associated with the product business data to a node of the blockchain other than the product participating nodes.
The storing of the product service data by the nodes of the block chain comprises: storing the associated product identification and product service data on the blockchain.
Just because the product identification and the product service data are stored in an associated manner, under the condition that the node of the block chain receives a product data query request sent by a query terminal, the product service data of at least one product participation node associated with the product identification can be queried according to the product identification in the product data query request; and sending the product service data of at least one product participation node to the inquiry terminal.
For example, the query terminal sends a product data query request to a node of the block chain through the applet, and after receiving the product data query request, the node of the block chain acquires product service data associated with the product identifier from the block chain and sends the product service data to the query terminal, thereby realizing the tracing of the product service data.
In one or more embodiments of the present description (including the embodiment of fig. 1 or fig. 2), the product business data certification method further includes: under the condition that the signature verification of the node pair of the block chain is not passed, acquiring the position information of the product participation node; and reporting the position information to a legal supply node of the product, wherein the legal participation node of the product is obtained by inquiring the product brand in the product service data.
Wherein, the position information of the product participation node is obtained, which comprises the following steps: inquiring the network protocol IP address of a product participation node; and determining the position information according to the IP address.
If the signature verification fails, the source of the product service data is a fake and fake merchant, and further the product service data is false product service data, the position information of the fake and fake merchant is reported to a legal supply node (such as a legal producer or a legal seller of the product) of the product, so that the legal supply node can follow up the responsibility of the fake and fake merchant, and the standardization of the product on the market is realized.
Fig. 3 shows a schematic structural diagram of a product service data uploading device provided by an embodiment of the present specification. The product service data uploading apparatus is applied to a product participating node in a product circulation process, as shown in fig. 3, the product service data uploading apparatus 200 includes:
and the authentication information sending module 202 is configured to send the identity authentication information of the product participation node to the certificate authority CA.
And the digital certificate receiving module 204 is configured to receive a digital certificate sent by the CA, where the digital certificate is generated by the CA authenticating the product participating node according to the identity authentication information.
A block link point application module 206, configured to apply for the product participating node to become a node of the block chain according to the digital certificate.
And the signature calculation module 208 is configured to calculate a signature of the product service data for each product service data to be uploaded after the product participation node becomes a node of the block chain.
And a data sending module 210, configured to send the product service data, the signature, and the digital certificate to nodes of the blockchain other than the product participating nodes.
In one or more embodiments of the present description, block link point application module 206 includes:
and the application information sending module is used for sending a request and a digital certificate to the nodes of the blockchain except the product participation node, wherein the request is used for applying the product participation node to become the node of the blockchain.
In one or more embodiments of the present description, the product service data uploading apparatus 200 further includes:
and the product identifier acquisition module is used for responding to the operation of associating the product service data with the product identifier and acquiring the product identifier.
And the association module is used for associating the product identification with the product service data.
And the identification sending module is used for sending the product identification associated with the product service data to nodes except the product participation node of the blockchain.
Fig. 4 is a schematic structural diagram illustrating a product service data certification device according to an embodiment of the present disclosure. As shown in fig. 4, the product service data authentication device 300 includes:
the data receiving module 302 is configured to receive product service data, a signature of the product service data, and a digital certificate sent by a product participating node in a product circulation process.
A first intelligent contract execution module 304, configured to execute an intelligent contract for product business data validation to obtain the latest digital certificate of the product participating node from the CA.
And the first certificate verification module 306 is configured to verify whether the digital certificate sent by the product participating node is valid according to the latest digital certificate obtained from the CA.
And the signature verification module 308 is configured to verify the signature according to the product service data if the digital certificate sent by the product participating node is valid.
The storage processing module 310 is configured to store the product service data on the blockchain if the signature verification passes; in the event that the signature verification fails, no product business data is stored on the blockchain.
In one or more embodiments of the present description, the product service data certification device 300 further includes:
and the node application request receiving module is used for receiving a request and a digital certificate sent by the product participation node, and the request is used for applying the product participation node to become a node of the block chain.
And the second intelligent contract execution module is used for responding to the request and executing the intelligent contract used for joining the block chain so as to obtain the latest digital certificate of the product participation node from the CA.
And the second certificate verification module is used for verifying whether the digital certificate sent by the product participation node is valid according to the latest digital certificate acquired from the CA.
And the node confirmation module is used for taking the product participation node as the node of the block chain if the digital certificate sent by the product participation node is valid.
In one or more embodiments of the present specification, in the case that the signature verification fails, the product service data certification apparatus 300 further includes:
the position information acquisition module is used for acquiring the position information of the product participation node;
and the position information reporting module is used for reporting the position information to legal participating nodes of the product, and the legal participating nodes are obtained by inquiring the product brand in the product service data.
In one or more embodiments of the present description, the location information acquiring module includes:
the IP address query module is used for querying the network protocol IP address of the product participation node;
and the position information determining module is used for determining the position information according to the IP address.
In one or more embodiments of the present description, the product service data certification device 300 further includes:
and the identification receiving module is used for receiving the product identification which is sent by the product participation node and is associated with the product service data.
The storage processing module 310 includes:
and the association storage module is used for storing the associated product identification and the product service data on the block chain.
Fig. 5 shows a hardware structure diagram of a computer device provided in an embodiment of the present specification.
The computer device may include a processor 401 and a memory 402 storing computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present specification.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. The memory 402 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid-state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement any one of the product service data uploading methods or the product service data storage methods in the above embodiments.
In one example, the computer device may also include a communication interface 403 and a bus 410. As shown in fig. 5, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in this specification.
Bus 410 includes hardware, software, or both to couple the components of the computer device to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 410 may include one or more buses, where appropriate. Although this description embodiment describes and illustrates a particular bus, this description contemplates any suitable bus or interconnect.
The computer device may execute the product service data uploading method and/or the product service data storage method in this specification, so as to implement the method and apparatus described in conjunction with fig. 1 to 4.
In addition, by combining the product service data uploading method and the product service data storage method in the foregoing embodiments, embodiments of the present specification may provide a computer storage medium to implement. The computer storage medium having computer program instructions stored thereon; when executed by a processor, the computer program instructions implement any one of the product service data uploading method and the product service data evidence storing method in the above embodiments.
It is to be understood that this description is not limited to the particular configurations and processes described above and shown in the figures. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present specification are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the specification.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of this specification are programs or code segments that are used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this specification describe some methods or systems based on a series of steps or devices. However, the present specification is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
As described above, only the specific implementation manner of the present specification is provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present disclosure, and these modifications or substitutions should be covered within the scope of the present disclosure.

Claims (18)

1. A product service data uploading method is applied to product participation nodes in a product circulation process, and comprises the following steps:
sending the identity authentication information of the product participation node to a Certificate Authority (CA);
receiving a digital certificate sent by the CA, wherein the digital certificate is generated by the CA authenticating the product participation node according to the identity authentication information;
applying for the product participation node to become a node of a block chain according to the digital certificate;
after the product participation node becomes a node of the block chain, calculating a signature of the product service data for each time of product service data to be uploaded, and sending the product service data, the signature and the digital certificate to nodes of the block chain except the product participation node.
2. The method of claim 1, wherein the applying for the product participating node to become a node of a blockchain according to the digital certificate comprises:
sending a request and the digital certificate to nodes of the blockchain except the product participating node, wherein the request is used for applying the product participating node to become the node of the blockchain.
3. The method of claim 1, wherein after the product participation node becomes a node of the blockchain, the method further comprises:
responding to the operation of associating the product service data with the product identification, and acquiring the product identification;
associating the product identification with the product business data;
sending the product identification associated with the product traffic data to a node of the blockchain other than the product participating node.
4. A product service data evidence storing method is applied to a node of a block chain, and the method comprises the following steps:
receiving product service data, a signature of the product service data and a digital certificate sent by a product participation node in a product circulation process;
executing an intelligent contract for product business data storage to obtain the latest digital certificate of the product participation node from a CA;
verifying whether the digital certificate sent by the product participation node is valid according to the latest digital certificate obtained from the CA;
if the digital certificate sent by the product participation node is valid, verifying the signature according to the product service data;
storing the product business data on the blockchain if the signature verification passes; in the event that the signature verification fails, not storing the product business data on the blockchain.
5. The method of claim 4, wherein before the receiving product business data, the signature of the product business data, and the digital certificate sent by the product participating node in the product circulation process, the method further comprises:
receiving a request and a digital certificate sent by the product participation node, wherein the request is used for applying the product participation node to become a node of the block chain;
executing an intelligent contract for joining the blockchain in response to the request to obtain an up-to-date digital certificate of the product participating node from the CA;
verifying whether the digital certificate sent by the product participation node is valid according to the latest digital certificate obtained from the CA;
and if the digital certificate sent by the product participation node is valid, taking the product participation node as the node of the block chain.
6. The method of claim 4, wherein in the event the signature verification fails, the method further comprises:
acquiring the position information of the product participation node;
and reporting the position information to a legal participation node of the product, wherein the legal participation node is obtained according to product brand inquiry in the product service data.
7. The method of claim 6, wherein the obtaining location information of the product participation node comprises:
inquiring the network protocol IP address of the product participation node;
and determining the position information according to the IP address.
8. The method of claim 4, further comprising:
receiving a product identification which is sent by the product participation node and is associated with the product service data;
the storing the product service data on the blockchain includes:
storing the associated product identification and the product traffic data on the blockchain.
9. A product service data uploading device is applied to a product participation node in a product circulation process, and the device comprises:
the authentication information sending module is used for sending the identity authentication information of the product participation node to a Certificate Authority (CA);
a digital certificate receiving module, configured to receive a digital certificate sent by the CA, where the digital certificate is generated by the CA authenticating the product participation node according to the identity authentication information;
a block chain node application module, configured to apply for the product participation node to become a node of a block chain according to the digital certificate;
the signature calculation module is used for calculating the signature of the product service data for the product service data to be uploaded each time after the product participation node becomes a node of the block chain;
a data sending module, configured to send the product service data, the signature, and the digital certificate to nodes of the blockchain other than the product participating node.
10. The apparatus of claim 9, wherein the blockchain node application module comprises:
and the application information sending module is used for sending a request and the digital certificate to nodes of the block chain except the product participation node, wherein the request is used for applying the product participation node to become the node of the block chain.
11. The apparatus of claim 9, wherein the apparatus further comprises:
the product identification acquisition module is used for responding to the operation of associating the product service data with the product identification to acquire the product identification;
an association module for associating the product identification with the product business data;
an identifier sending module, configured to send the product identifier associated with the product service data to nodes of the block chain other than the product participating node.
12. A product service data evidence storing device is applied to a node of a block chain, and the device comprises:
the data receiving module is used for receiving product service data sent by a product participation node in the product circulation process, a signature of the product service data and a digital certificate;
the first intelligent contract execution module is used for executing an intelligent contract for storing the product service data so as to acquire the latest digital certificate of the product participation node from the CA;
the first certificate verification module is used for verifying whether the digital certificate sent by the product participation node is valid according to the latest digital certificate obtained from the CA;
the signature verification module is used for verifying the signature according to the product service data if the digital certificate sent by the product participation node is valid;
the storage processing module is used for storing the product service data on the block chain under the condition that the signature verification is passed; in the event that the signature verification fails, not storing the product business data on the blockchain.
13. The apparatus of claim 12, wherein the apparatus further comprises:
a node application request receiving module, configured to receive a request and a digital certificate sent by the product participation node, where the request is used to apply for the product participation node to become a node of the block chain;
a second intelligent contract execution module, configured to execute, in response to the request, an intelligent contract for joining the blockchain to obtain, from the CA, a latest digital certificate of the product participating node;
the second certificate verification module is used for verifying whether the digital certificate sent by the product participation node is valid according to the latest digital certificate obtained from the CA;
and the node confirmation module is used for taking the product participation node as the node of the block chain if the digital certificate sent by the product participation node is valid.
14. The apparatus of claim 12, wherein in the event the signature verification fails, the apparatus further comprises:
the position information acquisition module is used for acquiring the position information of the product participation node;
and the position information reporting module is used for reporting the position information to a legal participating node of the product, wherein the legal participating node is obtained by inquiring the product brand in the product service data.
15. The apparatus of claim 14, wherein the location information acquisition module comprises:
the IP address query module is used for querying the network protocol IP address of the product participation node;
and the position information determining module is used for determining the position information according to the IP address.
16. The apparatus of claim 12, further comprising:
the identification receiving module is used for receiving the product identification which is sent by the product participation node and is associated with the product service data;
the storage processing module includes:
and the association storage module is used for storing the associated product identification and the product service data on the block chain.
17. A computer device, the device comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the method of any of claims 1-8.
18. A computer storage medium having computer program instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-8.
CN201910981148.0A 2019-10-16 2019-10-16 Product service data uploading method, product service data storing device, product service data storing equipment and product service data storing medium Pending CN110874747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910981148.0A CN110874747A (en) 2019-10-16 2019-10-16 Product service data uploading method, product service data storing device, product service data storing equipment and product service data storing medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910981148.0A CN110874747A (en) 2019-10-16 2019-10-16 Product service data uploading method, product service data storing device, product service data storing equipment and product service data storing medium

Publications (1)

Publication Number Publication Date
CN110874747A true CN110874747A (en) 2020-03-10

Family

ID=69717852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910981148.0A Pending CN110874747A (en) 2019-10-16 2019-10-16 Product service data uploading method, product service data storing device, product service data storing equipment and product service data storing medium

Country Status (1)

Country Link
CN (1) CN110874747A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541724A (en) * 2020-07-08 2020-08-14 支付宝(杭州)信息技术有限公司 Block chain all-in-one machine and automatic node adding method and device thereof
CN111541552A (en) * 2020-07-08 2020-08-14 支付宝(杭州)信息技术有限公司 Block chain all-in-one machine and automatic node adding method and device thereof
CN111737724A (en) * 2020-08-26 2020-10-02 腾讯科技(深圳)有限公司 Data processing method and device, intelligent equipment and storage medium
CN112184222A (en) * 2020-05-29 2021-01-05 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment based on block chain
CN112261427A (en) * 2020-10-20 2021-01-22 中国联合网络通信集团有限公司 Malicious node identification method and device and electronic equipment
CN116611851A (en) * 2023-07-18 2023-08-18 四川远方云天食品科技有限公司 Hotpot condiment product tracing method and system based on blockchain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167763A (en) * 2018-08-16 2019-01-08 国网浙江省电力有限公司电力科学研究院 A kind of power industry electronic data security method and system based on block chain
CN109831418A (en) * 2018-12-28 2019-05-31 无锡井通网络科技有限公司 Credible alliance's chain building method, system and electronic equipment based on certificate
CN110069475A (en) * 2019-04-25 2019-07-30 中国科学院信息工程研究所 A kind of across data entity source tracing method of manufacturing industry based on the multi-party self―sustaining of block chain
CN110175467A (en) * 2019-04-25 2019-08-27 平安科技(深圳)有限公司 Signature file store method, device and computer equipment based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167763A (en) * 2018-08-16 2019-01-08 国网浙江省电力有限公司电力科学研究院 A kind of power industry electronic data security method and system based on block chain
CN109831418A (en) * 2018-12-28 2019-05-31 无锡井通网络科技有限公司 Credible alliance's chain building method, system and electronic equipment based on certificate
CN110069475A (en) * 2019-04-25 2019-07-30 中国科学院信息工程研究所 A kind of across data entity source tracing method of manufacturing industry based on the multi-party self―sustaining of block chain
CN110175467A (en) * 2019-04-25 2019-08-27 平安科技(深圳)有限公司 Signature file store method, device and computer equipment based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴行惠等: "区块链技术在产品质量监管中的应用研究", 《网络空间安全》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112184222A (en) * 2020-05-29 2021-01-05 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment based on block chain
CN112184222B (en) * 2020-05-29 2022-09-30 支付宝(杭州)信息技术有限公司 Service processing method, device and equipment based on block chain
EP3937459A1 (en) * 2020-07-08 2022-01-12 Alipay (Hangzhou) Information Technology Co., Ltd. Blockchain integrated stations and automatic node adding methods and apparatuses
CN111541552B (en) * 2020-07-08 2021-06-22 支付宝(杭州)信息技术有限公司 Block chain all-in-one machine and automatic node adding method and device thereof
CN111541724B (en) * 2020-07-08 2021-06-29 支付宝(杭州)信息技术有限公司 Block chain all-in-one machine and automatic node adding method and device thereof
EP3937458A1 (en) * 2020-07-08 2022-01-12 Alipay (Hangzhou) Information Technology Co., Ltd. Blockchain integrated stations and automatic node adding methods and apparatuses
CN111541724A (en) * 2020-07-08 2020-08-14 支付宝(杭州)信息技术有限公司 Block chain all-in-one machine and automatic node adding method and device thereof
US11424942B2 (en) 2020-07-08 2022-08-23 Alipay (Hangzhou) Information Technology Co., Ltd. Blockchain integrated stations and automatic node adding methods and apparatuses
US11451404B2 (en) 2020-07-08 2022-09-20 Alipay (Hangzhou) Information Technology Co., Ltd. Blockchain integrated stations and automatic node adding methods and apparatuses
CN111541552A (en) * 2020-07-08 2020-08-14 支付宝(杭州)信息技术有限公司 Block chain all-in-one machine and automatic node adding method and device thereof
CN111737724B (en) * 2020-08-26 2021-01-01 腾讯科技(深圳)有限公司 Data processing method and device, intelligent equipment and storage medium
CN111737724A (en) * 2020-08-26 2020-10-02 腾讯科技(深圳)有限公司 Data processing method and device, intelligent equipment and storage medium
CN112261427A (en) * 2020-10-20 2021-01-22 中国联合网络通信集团有限公司 Malicious node identification method and device and electronic equipment
CN112261427B (en) * 2020-10-20 2022-04-29 中国联合网络通信集团有限公司 Malicious node identification method and device and electronic equipment
CN116611851A (en) * 2023-07-18 2023-08-18 四川远方云天食品科技有限公司 Hotpot condiment product tracing method and system based on blockchain

Similar Documents

Publication Publication Date Title
CN110874747A (en) Product service data uploading method, product service data storing device, product service data storing equipment and product service data storing medium
US11743054B2 (en) Method and system for creating and checking the validity of device certificates
CN109462588B (en) Decentralized data transaction method and system based on block chain
CN109819443B (en) Registration authentication method, device and system based on block chain
CN110609869A (en) Block chain-based data storage method, related equipment and storage medium
CN111182525B (en) Method and device for storing data
CN108694330B (en) Internet of things data management method, platform and equipment
CN109034414A (en) A kind of automobile management system based on block chain technology
CN1172224C (en) Method and device for authenticating a program code
CN110602455B (en) Video storage system, video processing method, device, equipment and storage medium
CN109905351B (en) Method, device, server and computer readable storage medium for storing data
CN112084234A (en) Data acquisition method, apparatus, device and medium
CN108701308B (en) System for issuing public certificate based on blockchain, and method for issuing public certificate based on blockchain using same
CN112749968B (en) Service data recording method and device based on block chain
CN114331462A (en) Block chain-based product information processing method and computer-readable storage medium
CN108540335B (en) Management method and management device for equipment analysis report
CN113221090A (en) Financial system digital certificate management method, device and system based on block chain
CN112769854A (en) Security protocol authentication method and system supporting multiple kinds of digital identity information
CN112583594A (en) Data processing method, acquisition device, gateway, trusted platform and storage medium
CN114553586B (en) Data acquisition method, device, equipment, medium and program product
CN113408005B (en) Auxiliary evaluation method, system, computer equipment and storage medium for automobile performance
CN112132588B (en) Data processing method and device based on block chain, routing equipment and storage medium
CN114422159A (en) Data processing method and device based on block chain
CN114157428A (en) Block chain-based digital certificate management method and system
CN111865592A (en) Internet of things equipment fast access method and device, Internet of things platform 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