CN111415174A - Authentication information sending method and equipment based on block chain and storage medium - Google Patents
Authentication information sending method and equipment based on block chain and storage medium Download PDFInfo
- Publication number
- CN111415174A CN111415174A CN202010192145.1A CN202010192145A CN111415174A CN 111415174 A CN111415174 A CN 111415174A CN 202010192145 A CN202010192145 A CN 202010192145A CN 111415174 A CN111415174 A CN 111415174A
- Authority
- CN
- China
- Prior art keywords
- product
- block
- authentication information
- information
- authentication
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/018—Certifying business or products
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- General Physics & Mathematics (AREA)
- Finance (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a method, equipment and a storage medium for sending authentication information based on a block chain, wherein the method comprises the following steps: acquiring a block access request transmitted by a user terminal aiming at a mechanism product, and acquiring a block address carried by the block access request, wherein the block access request is generated by identifying a product identity of the mechanism product based on the user terminal; acquiring a block in a product block chain based on the block address, and acquiring product authentication information of the organization product in the block, wherein the product authentication information is generated by the authentication organization terminal based on detailed information of the organization product; and sending the product authentication information to the user terminal. By adopting the invention, the product authentication information of the mechanism product in the product block chain can be acquired through the product identity identification, and the authenticity of the article or the mechanism is effectively ensured.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a storage medium for sending authentication information based on a block chain.
Background
With the increasing living standard of people, the pursuit of the material level is higher and higher, and the brand goods are often selected to be purchased, or the famous stores are selected to have dinner, and the like, however, for some lawbreakers, the brand goods are often copied and sold, or the straight-run stores or the franchised stores are opened without authorization of the famous stores, so that property loss of buyer users and reputation of brand organizations are damaged, and it is difficult to verify authenticity of the goods or the organizations at present.
Disclosure of Invention
The embodiment of the invention provides an authentication information sending method, equipment and a storage medium based on a block chain, which can accurately verify the authenticity of an article or an organization.
An embodiment of the present invention provides a method for sending authentication information based on a block chain, including:
acquiring a block access request transmitted by a user terminal aiming at a mechanism product, and acquiring a block address carried by the block access request, wherein the block access request is generated by identifying a product identity of the mechanism product based on the user terminal;
acquiring a block in a product block chain based on the block address, and acquiring product authentication information of the organization product in the block, wherein the product authentication information is generated by the authentication organization terminal based on detailed information of the organization product;
and sending the product authentication information to the user terminal.
Before the obtaining of the block access request transmitted by the user terminal for the mechanism product, the method further includes:
acquiring product authentication transaction data transmitted by an authentication mechanism terminal aiming at detailed information of an organization product, and acquiring an authentication mechanism signature and product authentication information in the product authentication transaction data;
generating a chunk based on the certification authority signature and product certification information, the chunk being stored into a chain of product chunks;
and acquiring a block address of the block in the product block chain, and sending the block address to a product mechanism terminal, wherein the block address is used for packaging the product mechanism terminal to generate a product identity of the mechanism product.
Before obtaining the product authentication transaction data transmitted by the authentication agency device according to the detailed information of the agency product, the method further includes:
acquiring an authentication transaction request aiming at an organization product and transmitted by a product organization terminal, and acquiring a product organization signature, organization authentication information and detailed information of the organization product carried by the authentication transaction request;
and sending the product agency signature, the agency authentication information and the detail information to an authentication agency terminal so that the authentication agency terminal authenticates the detail information based on the product agency signature and the agency authentication information to generate product authentication information of the agency product.
Wherein, still include:
and acquiring the block address transmitted by the product mechanism terminal and the product position information of the mechanism product, and storing the product position information in the block corresponding to the block address.
Wherein the obtaining a block in a chain of product blocks based on the block address in which product authentication information for the organization product is obtained comprises:
acquiring terminal position information of the user terminal carried by the block access request;
acquiring a block corresponding to the block address in a product block chain, and acquiring product authentication information and product position information of the organization product in the block;
matching the terminal position information and the product position information based on an intelligent contract to obtain a matching result;
the sending the product authentication information to the user terminal includes:
and sending the product authentication information, the product position information and the matching result to the user terminal.
Wherein the generating a chunk based on the certification authority signature and the product authentication information, the storing the chunk into a chain of product chunks, comprises:
encrypting the product authentication information by using an organization key of a product organization to obtain the encrypted product authentication information;
storing the certification authority signature and the encrypted product authentication information into a block, and storing the block into a product block chain.
Wherein the storing the certification authority signature and the encrypted product authentication information into a chunk, the storing the chunk into a product chunk chain, comprises:
storing the authentication mechanism signature and the encrypted product authentication information into a block, and sending the block to a consensus node device in the product block chain for consensus processing;
and when the consensus node equipment passes the consensus of the blocks, storing the blocks into a product block chain.
An embodiment of the present invention provides an authentication information sending apparatus, including:
the system comprises an address acquisition unit, a block identification unit and a block management unit, wherein the address acquisition unit is used for acquiring a block access request transmitted by a user terminal aiming at a mechanism product, and acquiring a block address carried by the block access request, and the block access request is generated by identifying a product identity of the mechanism product based on the user terminal;
an authentication information acquisition unit configured to acquire a block in a product block chain based on the block address, and acquire product authentication information of the organization product in the block, the product authentication information being generated by the authentication organization terminal based on detailed information of the organization product;
and the authentication information sending unit is used for sending the product authentication information to the user terminal.
Wherein, still include:
the authentication information acquisition unit is used for acquiring product authentication transaction data transmitted by an authentication mechanism terminal aiming at the detailed information of the mechanism product and acquiring an authentication mechanism signature and product authentication information in the product authentication transaction data;
an authentication information storage unit for generating a block based on the certification authority signature and the product authentication information, and storing the block into a product block chain;
and the address sending unit is used for acquiring a block address of the block in the product block chain and sending the block address to a product mechanism terminal, wherein the block address is used for the product mechanism terminal to package to generate a product identity of the mechanism product.
Wherein, still include:
the authentication request acquisition unit is used for acquiring an authentication transaction request aiming at an organization product and transmitted by a product organization terminal, and acquiring a product organization signature, organization authentication information and detailed information of the organization product carried by the authentication transaction request;
an authentication information sending unit configured to send the product agency signature, the agency authentication information, and the detail information to an authentication agency terminal, so that the authentication agency terminal authenticates the detail information based on the product agency signature and the agency authentication information to generate product authentication information of the agency product.
Wherein, still include:
and the position information storage unit is used for acquiring the block address transmitted by the product mechanism terminal and the product position information of the mechanism product, and storing the product position information in the block corresponding to the block address.
Wherein the authentication information acquisition unit includes:
a location information obtaining subunit, configured to obtain terminal location information of the user terminal carried by the block access request;
a product information obtaining subunit, configured to obtain, in a product block chain, a block corresponding to the block address, and obtain, in the block, product authentication information and product position information of the organization product;
the position matching subunit is used for matching the terminal position information with the product position information based on an intelligent contract to obtain a matching result;
the authentication information sending unit is specifically configured to send the product authentication information, the product location information, and the matching result to the user terminal.
Wherein the authentication information storage unit includes:
the authentication information encryption subunit is used for encrypting the product authentication information by adopting an organization key of a product organization to obtain the encrypted product authentication information;
and the authentication information storage subunit is used for storing the authentication mechanism signature and the encrypted product authentication information into a block and storing the block into a product block chain.
The authentication information storage subunit is specifically configured to store the certification authority signature and the encrypted product authentication information into a block, and send the block to a consensus node device in the product block chain for consensus processing;
and when the consensus node equipment passes the consensus of the blocks, storing the blocks into a product block chain.
An aspect of the embodiments of the present invention provides a computer storage medium storing a computer program comprising program instructions that, when executed by a processor, perform the above-mentioned method steps.
One aspect of the embodiments of the present invention provides a computer device, including a processor, a memory, and an input/output interface;
the processor is respectively connected with the memory and the input/output interface, wherein the input/output interface is used for page interaction, the memory is used for storing program codes, and the processor is used for calling the program codes to execute the method steps.
In the embodiment of the invention, the product authentication information generated by the authentication mechanism terminal aiming at the detailed information of the mechanism product is subjected to uplink storage, and the block address of the corresponding block is converted into the product identity of the mechanism product, so that the user terminal can acquire the product authentication information of the mechanism product through the product identity, identify the article to be purchased or the related information of the shop to be visited, and accurately verify the authenticity of the article or the mechanism.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a system architecture diagram for storing and transmitting authentication information according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of block chain construction provided by an embodiment of the invention;
fig. 3 is a flowchart illustrating a method for sending authentication information according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for sending authentication information according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating an example of generating product authentication information according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating an example of sending product authentication information according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an authentication information sending device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an authentication information sending apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an authentication information storage unit provided in an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an authentication information acquisition unit provided in an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With reference to the embodiments shown in fig. 1 to fig. 6, a detailed description is given of an authentication information sending method based on a block chain according to an embodiment of the present invention.
Referring to fig. 1, a system architecture diagram for storing and transmitting authentication information is provided according to an embodiment of the present invention. As shown in fig. 1, for the service processing of the product authentication based on the block chain 100, it is necessary to implement a composition of multiple blocks, a block may be built on a block node device 11, the multiple block node devices 11 may be clients, background service devices, virtual machines built on the devices, and the like in the block chain 100, and each block node device 11 may receive input information during normal operation, and maintain shared data in the block chain based on the received input information. In order to ensure information intercommunication within the block chain 100, there may be an information connection between each block node device 11 in the block chain 100, and the information transmission between the block node devices 11 may be performed through the information connection. For example, when an arbitrary node in the blockchain receives input information, the other blocknode devices 11 in the blockchain 100 acquire the input information according to the consensus algorithm, and store the input information as data in the shared data, so that the data stored in all the blocks of the blockchain 100 on all the blocknode devices 11 are consistent.
In the service scenario of product authentication of an organization product provided in the embodiment of the present invention, an authentication information sending device is used as a block node device 11, and a user terminal 12, a product organization terminal 13, and an authentication organization terminal 14 may be respectively connected to a block chain 100, where the user terminal 12 may specifically include, but is not limited to, a mobile phone, a personal computer, a laptop, a vehicle-mounted device, a wearable electronic device, and other terminal devices used by a customer user, and the user terminal 12 may specifically browse product authentication information stored in the block node device 11 based on a product identity, send terminal location information to the block node device 11, match the product location information, and the like; the product agency terminal 13 may specifically be a background service device of a brand party, or may also be a management platform built in the background service device, the brand party may include but is not limited to an enterprise that has an operating shop and an affiliated shop that produce autonomous brand goods or are responsible for management, and the like, and the authentication agency terminal 14 may specifically implement items such as registration and confirmation of detailed information of an agency product reported by the product agency terminal, and chaining storage of product authentication information of the agency product; specifically, the agency offerings include, but are not limited to, self-contained branded items, managed direct stores, affiliated stores, produced by the offeror agencies (i.e., brands).
Referring to fig. 2, a schematic diagram of building a block chain is provided for the embodiment of the present invention. As shown in fig. 2, in order to further ensure the authenticity of the product authentication, the embodiment of the present invention builds a blockchain of a product authentication scenario, where the blockchain may include a blockchain bottom platform, a platform product service layer, and an application service layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability. The application service layer provides the application service based on the block chain scheme for the business participants to use.
Based on the implementation frameworks of fig. 1 and fig. 2, please refer to fig. 3 together, which provides a flow diagram of an authentication information sending method according to an embodiment of the present invention. As shown in fig. 3, the method of the embodiment of the present invention may include the following steps S101 to S103.
S101, acquiring a block access request transmitted by a user terminal aiming at a mechanism product, and acquiring a block address carried by the block access request;
specifically, the authentication information sending device may obtain a block access request transmitted by a user terminal for an organization product, where the block access request is generated based on identification of a product identifier of the organization product by the user terminal, and it may be understood that the product identifier may be placed on a surface of the organization product, for example: the product identity mark can be a bar code, a two-dimensional code or other graphic codes or can also be a readable chip, a customer user can scan and identify the product identity mark by using a scanning function of the user terminal to obtain a block address in a product block chain stored in the product identity mark, the user terminal can generate a block access request containing the block address, and further, the authentication information sending equipment can obtain the block access request transmitted by the user terminal and obtain the block address carried in the block access request.
S102, acquiring a block in a product block chain based on the block address, and acquiring product authentication information of the organization product in the block;
specifically, the authentication information sending device may obtain a block corresponding to the block address in the product block chain, and obtain product authentication information of the organization product in the block, where the product authentication information is generated by the authentication organization terminal based on detailed information of the organization product, and for a brand product, the detailed information may include, but is not limited to, a product name, a product specification, a product origin, a product component, traceability information of the product, and the like, and the traceability information specifically represents a process from initial collection of the product to a finished product; for an affiliated or franchised store, the detailed information may include, but is not limited to, a store name, a store occupation area, a business to which the store belongs, store location information, and the like, and the certification authority terminal may package the detailed information to generate the product authentication information of the agency product, and may store the product authentication information into the block.
S103, sending the product authentication information to the user terminal.
Specifically, the authentication information sending device may send the product authentication information to the user terminal, and the user terminal may display the product authentication information, so that the customer user may perform authenticity judgment on the product mechanism where the customer is currently located according to the product authentication information.
In the embodiment of the invention, the product authentication information generated by the authentication mechanism terminal aiming at the detailed information of the mechanism product is subjected to uplink storage, and the block address of the corresponding block is converted into the product identity of the mechanism product, so that the user terminal can acquire the product authentication information of the mechanism product through the product identity, identify the article to be purchased or the related information of the shop to be visited, and accurately verify the authenticity of the article or the mechanism.
Based on the implementation frameworks of fig. 1 and fig. 2, please refer to fig. 4 together, which provides a flow diagram of an authentication information sending method according to an embodiment of the present invention. As shown in fig. 4, the method of the embodiment of the present invention may include the following steps S201 to S211.
S201, acquiring an authentication transaction request aiming at an organization product and transmitted by a product organization terminal, and acquiring a product organization signature, organization authentication information and detailed information of the organization product carried by the authentication transaction request;
specifically, the certification information sending device may obtain a certification transaction request for an organization product transmitted by a product organization terminal, and obtain a product organization signature, organization certification information, and detailed information of the organization product, where the product organization signature is specifically an identity signature of the product organization terminal in a product block chain, and is used to represent an identity certificate of a product organization in the product block chain, the organization certification information may specifically be an organization certificate of the product organization, and specifically may include but is not limited to registration information such as an organization name, an organization address, an organization legal person, and license information, and the detailed information may be description information of the organization product, for example: for a brand article, the detailed information may include, but is not limited to, an article name, an article specification, an article origin, an article composition, traceability information of the article, and the like, where the traceability information specifically represents a process from an initial acquisition of the article to a finished product, and may specifically be composed of a plurality of traceability fragment information, and each traceability fragment information corresponds to information recorded in one stage of the article, for example: the identification method comprises the steps that the leather collecting position, the leather processing position, the position of a backpack finished product and the like of a backpack are carried out, each traceability fragment information corresponds to a fragment timestamp and is used for recording the obtaining time of each traceability fragment information, the traceability fragment information and the timestamp corresponding to each traceability fragment information can be sent to an authentication information sending terminal by a product mechanism terminal, the authentication information sending terminal can integrate each traceability fragment information by adopting the timestamp based on an intelligent contract to form traceability information, and the traceability information can be generated and linked up by the product mechanism terminal; for an affiliated or franchised store, the detailed information may include, but is not limited to, a store name, a store footprint, a business to which the store belongs, store location information, and the like.
S202, the product agency signature, the agency authentication information and the detail information are sent to an authentication agency terminal;
specifically, the certification information sending device may send the product agency signature, the agency certification information, and the detail information to the certification agency terminal, the certification agency terminal acquires the product agency signature, the agency certification information, and the detail information, the agency staff of the certification agency may pass through the certification agency terminal, check the detail information based on the product agency signature and the agency certification information, and after the check, pass through the certification agency terminal to generate the product certification information of the agency product, and the certification agency terminal may adopt a certification template to package the detail information to generate the product certification information of the agency product.
S203, acquiring product authentication transaction data transmitted by an authentication mechanism terminal aiming at detailed information of an organization product, and acquiring an authentication mechanism signature and product authentication information in the product authentication transaction data;
specifically, the authentication information sending device may obtain product authentication transaction data transmitted by the authentication agency terminal for detailed information of an agency product, and obtain an authentication agency signature and product authentication information in the product authentication transaction data, where the authentication agency signature is specifically an identity signature of the authentication agency terminal in a product block chain, and is used to represent an identity certificate of the authentication agency in the product block chain.
S204, generating a block based on the authentication agency signature and the product authentication information, and storing the block into a product block chain;
specifically, the authentication information sending device may store the certification authority signature and the product authentication information in a block, and send the block to a common node device in the product block chain for common identification processing, it should be noted that the authentication information sending device may also be used as a common node device in the product block chain, participate in a process of common identification of the block, that is, perform voting on the block uplink, when more than 50% of common node devices agree with the block uplink, determine that the common node device passes the block common identification, and after the common node device passes the block common identification, the authentication information sending device stores the block into the product block chain.
Optionally, the authentication information sending device may perform confidentiality processing on the product authentication information by using an organization key of a product organization based on an intelligent contract to obtain the encrypted product authentication information, where the organization key may specifically be a private key configured for the product organization in advance for the product block chain, and by performing encryption processing on the product authentication information, content in the product authentication information may be prevented from being stolen by a lawbreaker, and security of the product authentication information is improved. The authentication information sending device may store the authentication mechanism signature and the encrypted product authentication information in a block, and store the block in a product block chain, where it should be noted that a process of block chain storage is the same as the above consensus process, and is not described herein again.
S205, acquiring a block address of the block in the product block chain, and sending the block address to a product mechanism terminal;
specifically, the authentication information sending device may obtain a block address of the block in the product block chain, and send the block address to the product organization terminal, and the product organization terminal may receive the block address, and it may be understood that, since the block address is specifically a binary character string, the product organization terminal may encapsulate the block address to generate the product identity of the organization product.
S206, acquiring the block address transmitted by the product mechanism terminal and the product position information of the mechanism product, and storing the product position information in the block corresponding to the block address;
specifically, before generating the product id of the organization product, the product organization terminal may transmit the block address and the product location information of the organization product to the authentication information transmitting device, it is understood that, for a brand product, when an organization hands over the product to a product selling mechanism for selling the product, the organization terminal needs to record the location information of the product selling mechanism and use the location information as the product location information of the organization product, the authentication information transmitting device acquires the block address transmitted by the organization terminal and the product location information of the organization product, stores the product location information in the block corresponding to the block address, and it is understood that the authentication information transmitting device may write the product location information in the product authentication information, the product authentication information and the product position information may also be stored separately, and may be specifically set according to actual requirements. By carrying out uplink storage on the product position information, the product identity identification can be prevented from being stolen by lawbreakers, so that the mechanism product can be traced from a material source to a final home position, and the reliability of the product authentication information is further improved.
Referring to fig. 5 together, as shown in fig. 5, the authentication information sending device serves as a block node device in a product block chain, the terminal of the product organization can send the organization certification information of the product organization, the detailed information of the organization product and the product organization signature to the block node equipment for uplink storage, the authentication agency terminal can acquire agency authentication information, detailed information and product agency signature through the block node device, and checks and encapsulates the information to generate product authentication information, and sends the product authentication information and the authentication mechanism signature to the block node equipment for uplink storage, the product mechanism terminal can also obtain product location information of the mechanism product, and sending the location information to the block node device, where the block node device may write the location information of the product into the product authentication information.
S207, acquiring a block access request transmitted by the user terminal aiming at a mechanism product, and acquiring a block address carried by the block access request;
specifically, the authentication information sending device may obtain a block access request transmitted by a user terminal for an organization product, where the block access request is generated based on identification of a product identifier of the organization product by the user terminal, and it may be understood that the product identifier may be placed on a surface of the organization product, for example: the product identity mark can be a bar code, a two-dimensional code or other graphic codes or can also be a readable chip, a customer user can scan and identify the product identity mark by using a scanning function of the user terminal to obtain a block address in a product block chain stored in the product identity mark, the user terminal can generate a block access request containing the block address, and further, the authentication information sending equipment can obtain the block access request transmitted by the user terminal and obtain the block address carried in the block access request.
S208, acquiring the terminal position information of the user terminal carried by the block access request;
specifically, the user terminal may further obtain current terminal location information, and add the terminal location information to the block access request, and the authentication information sending device may obtain the terminal location information carried in the block access request.
S209, acquiring a block corresponding to the block address in a product block chain, and acquiring product authentication information and product position information of the organization product in the block;
specifically, the authentication information sending device may acquire the block corresponding to the block address in a product block chain, acquire product authentication information of the organization product in the block, and acquire the product location information in the product authentication information.
S210, matching the terminal position information and the product position information based on an intelligent contract to obtain a matching result;
specifically, the authentication information sending device may match the terminal location information and the product location information based on an intelligent contract to generate a matching result, optionally, when the terminal location information is within an area range indicated by the product location information, the authentication information sending device may determine that the terminal location information matches the product location information, and when the terminal location information is not within the area range indicated by the product location information, the authentication information sending device may determine that the terminal location information does not match the product location information, where the area range is specifically a range set by centering on the product location information.
S211, sending the product authentication information to the user terminal;
specifically, the authentication information sending device may send the product authentication information and the matching result to the user terminal, optionally, for the encrypted product authentication information, the customer user may carry the purchased article to a verification mechanism specified by the product mechanism, and the product mechanism authorizes the verification mechanism to decrypt the encrypted product authentication information and further verify the article based on the product authentication information. Optionally, for the traceability information in the product authentication information, the user terminal may perform track display on the traceability information in combination with the terminal map, and may also view details of each traceability fragment information.
Referring to fig. 6, as shown in fig. 6, the authentication information sending device is used as a block node device in a block chain of a product, and a product id may be printed or placed at an organization product such as an article, a store, etc. when a customer user purchases the article, or when arriving at the shop, the user terminal can be used to scan the product identification to obtain the block address, the user terminal may generate a block access request based on the block address, the user terminal sending the block access request to a block node device, the block node device may obtain the block address carried by the block access request, and acquiring a block corresponding to the block address, and sending product authentication information in the block to the user terminal, wherein the user terminal can display the product authentication information.
In the embodiment of the invention, the product authentication information generated by the authentication mechanism terminal aiming at the detailed information of the mechanism product is subjected to chain storage, and the block address of the corresponding block is converted into the product identity of the mechanism product, so that the user terminal can acquire the product authentication information of the mechanism product through the product identity, identify the article to be purchased or the related information of the shop to be visited, and accurately verify the authenticity of the article or the mechanism; by encrypting the product authentication information, the content in the product authentication information can be prevented from being stolen by lawbreakers, and the safety of the product authentication information is improved; by carrying out uplink storage on the product position information, the product identity identification can be prevented from being stolen by lawbreakers, so that the mechanism product can be traced from a material source to a final home position, and the reliability of the product authentication information is further improved.
Based on the implementation frameworks of fig. 1 and fig. 2, the following describes in detail an authentication information sending device according to an embodiment of the present invention with reference to fig. 7 to fig. 10. It should be noted that the authentication information sending device in fig. 7 to 10 may be specifically the block node device 11 in the framework shown in fig. 1, which is used to execute the method according to the embodiment shown in fig. 3 to 6 of the present invention, for convenience of description, only the part related to the embodiment of the present invention is shown, and details of the specific technology are not disclosed, please refer to the embodiment shown in fig. 3 to 6 of the present invention.
Fig. 7 is a schematic structural diagram of an authentication information sending device according to an embodiment of the present invention. As shown in fig. 7, the authentication information transmitting apparatus 1 according to the embodiment of the present invention may include: an address acquisition unit 101, an authentication information acquisition unit 102, and an authentication information transmission unit 103.
An address obtaining unit 101, configured to obtain a block access request transmitted by a user terminal for a mechanism product, and obtain a block address carried by the block access request;
an authentication information acquisition unit 102 configured to acquire a block in a product block chain in which product authentication information of the organization product is acquired, based on the block address;
an authentication information sending unit 103, configured to send the product authentication information to the user terminal.
In the embodiment of the invention, the product authentication information generated by the authentication mechanism terminal aiming at the detailed information of the mechanism product is subjected to uplink storage, and the block address of the corresponding block is converted into the product identity of the mechanism product, so that the user terminal can acquire the product authentication information of the mechanism product through the product identity, identify the article to be purchased or the related information of the shop to be visited, and accurately verify the authenticity of the article or the mechanism.
Please refer to fig. 8, which is a schematic structural diagram of an authentication information sending device according to an embodiment of the present invention. As shown in fig. 8, the authentication information transmitting apparatus 1 according to the embodiment of the present invention may include: an address acquisition unit 101, an authentication information acquisition unit 102, an authentication information transmission unit 103, an authentication information acquisition unit 104, an authentication information storage unit 105, an address transmission unit 106, an authentication request acquisition unit 107, an authentication information transmission unit 108, and a location information storage unit 109.
An authentication request obtaining unit 107, configured to obtain an authentication transaction request for an organization product transmitted by a product organization terminal, and obtain a product organization signature, organization authentication information, and detail information of the organization product, which are carried in the authentication transaction request;
an authentication information sending unit 108 for sending the product agency signature, the agency authentication information, and the detail information to an authentication agency terminal;
an authentication information acquisition unit 104, configured to acquire product authentication transaction data transmitted by an authentication mechanism terminal for details of an organization product, and acquire an authentication mechanism signature and product authentication information in the product authentication transaction data;
an authentication information storage unit 105 for generating a block based on the certification authority signature and the product authentication information, storing the block into a product block chain;
specifically, please refer to fig. 9, which provides a schematic structural diagram of the authentication information storage unit according to an embodiment of the present invention. As shown in fig. 9, the authentication information storage unit 105 may include:
the authentication information encryption subunit is used for encrypting the product authentication information by adopting an organization key of a product organization to obtain the encrypted product authentication information;
an authentication information storage subunit, configured to store the certification authority signature and the encrypted product authentication information into a block, and store the block into a product block chain;
the authentication information storage subunit is specifically configured to store the certification authority signature and the encrypted product authentication information into a block, send the block to a consensus node device in the product block chain for consensus processing, and store the block into the product block chain after the consensus node device passes consensus on the block.
An address sending unit 106, configured to obtain a block address of the block in the product block chain, and send the block address to a product organization terminal;
a location information storage unit 109, configured to obtain the block address transmitted by the product mechanism terminal and product location information of the mechanism product, and store the product location information in the block corresponding to the block address;
an address obtaining unit 101, configured to obtain a block access request transmitted by a user terminal for a mechanism product, and obtain a block address carried by the block access request;
an authentication information acquisition unit 102 configured to acquire a block in a product block chain in which product authentication information of the organization product is acquired, based on the block address;
specifically, please refer to fig. 10, which provides a schematic structural diagram of the authentication information obtaining unit according to an embodiment of the present invention. As shown in fig. 10, the authentication information acquisition unit 102 may include:
a location information obtaining subunit, configured to obtain terminal location information of the user terminal carried by the block access request;
a product information obtaining subunit, configured to obtain, in a product block chain, a block corresponding to the block address, and obtain, in the block, product authentication information and product position information of the organization product;
and the position matching subunit is used for matching the terminal position information with the product position information based on the intelligent contract to obtain a matching result.
An authentication information sending unit 103, configured to send the product authentication information to the user terminal;
the authentication information sending unit 103 is specifically configured to send the product authentication information, the product location information, and the matching result to the user terminal.
In the embodiment of the invention, the product authentication information generated by the authentication mechanism terminal aiming at the detailed information of the mechanism product is subjected to chain storage, and the block address of the corresponding block is converted into the product identity of the mechanism product, so that the user terminal can acquire the product authentication information of the mechanism product through the product identity, identify the article to be purchased or the related information of the shop to be visited, and accurately verify the authenticity of the article or the mechanism; by encrypting the product authentication information, the content in the product authentication information can be prevented from being stolen by lawbreakers, and the safety of the product authentication information is improved; by carrying out uplink storage on the product position information, the product identity identification can be prevented from being stolen by lawbreakers, so that the mechanism product can be traced from a material source to a final home position, and the reliability of the product authentication information is further improved.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a plurality of program instructions, where the program instructions are suitable for being loaded by a processor and executing the method steps in the embodiments shown in fig. 3 to 6, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 3 to 6, which is not described herein again.
Fig. 11 is a schematic structural diagram of a computer device according to an embodiment of the present invention. As shown in fig. 11, the computer apparatus 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, input output interfaces 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 11, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, an input-output interface module, and an information transmission application program.
In the computer device 1000 shown in fig. 11, the input/output interface 1003 is mainly used for providing an input interface for the user and the access device, and acquiring data input by the user and the access device.
In one embodiment, the processor 1001 may be configured to invoke an information sending application stored in the memory 1005 and specifically perform the following operations:
acquiring a block access request transmitted by a user terminal aiming at a mechanism product, and acquiring a block address carried by the block access request, wherein the block access request is generated by identifying a product identity of the mechanism product based on the user terminal;
acquiring a block in a product block chain based on the block address, and acquiring product authentication information of the organization product in the block, wherein the product authentication information is generated by the authentication organization terminal based on detailed information of the organization product;
and sending the product authentication information to the user terminal.
Optionally, before performing the obtaining of the block access request transmitted by the ue for the mechanism product, the processor 1001 further performs the following operations:
acquiring product authentication transaction data transmitted by an authentication mechanism terminal aiming at detailed information of an organization product, and acquiring an authentication mechanism signature and product authentication information in the product authentication transaction data;
generating a chunk based on the certification authority signature and product certification information, the chunk being stored into a chain of product chunks;
and acquiring a block address of the block in the product block chain, and sending the block address to a product mechanism terminal, wherein the block address is used for packaging the product mechanism terminal to generate a product identity of the mechanism product.
Optionally, before performing the operation of acquiring the product authentication transaction data transmitted by the authentication agency device for the detailed information of the agency product, the processor 1001 further performs the following operation:
acquiring an authentication transaction request aiming at an organization product and transmitted by a product organization terminal, and acquiring a product organization signature, organization authentication information and detailed information of the organization product carried by the authentication transaction request;
and sending the product agency signature, the agency authentication information and the detail information to an authentication agency terminal so that the authentication agency terminal authenticates the detail information based on the product agency signature and the agency authentication information to generate product authentication information of the agency product.
Optionally, the processor 1001 further performs the following operations:
and acquiring the block address transmitted by the product mechanism terminal and the product position information of the mechanism product, and storing the product position information in the block corresponding to the block address.
Optionally, when the processor 1001 performs the following operation of obtaining a block in a product block chain based on the block address, and obtaining product authentication information of the organization product in the block:
acquiring terminal position information of the user terminal carried by the block access request;
acquiring a block corresponding to the block address in a product block chain, and acquiring product authentication information and product position information of the organization product in the block;
matching the terminal position information and the product position information based on an intelligent contract to obtain a matching result;
the sending the product authentication information to the user terminal includes:
and sending the product authentication information, the product position information and the matching result to the user terminal.
Optionally, the processor 1001, when executing generating a block based on the certification authority signature and the product authentication information, and storing the block into a product block chain, specifically performs the following operations:
encrypting the product authentication information by using an organization key of a product organization to obtain the encrypted product authentication information;
storing the certification authority signature and the encrypted product authentication information into a block, and storing the block into a product block chain.
Optionally, when the processor 1001 stores the certification authority signature and the encrypted product authentication information in a block and stores the block in a product block chain, the following operations are specifically performed:
storing the authentication mechanism signature and the encrypted product authentication information into a block, and sending the block to a consensus node device in the product block chain for consensus processing;
and when the consensus node equipment passes the consensus of the blocks, storing the blocks into a product block chain.
In the embodiment of the invention, the product authentication information generated by the authentication mechanism terminal aiming at the detailed information of the mechanism product is subjected to chain storage, and the block address of the corresponding block is converted into the product identity of the mechanism product, so that the user terminal can acquire the product authentication information of the mechanism product through the product identity, identify the article to be purchased or the related information of the shop to be visited, and accurately verify the authenticity of the article or the mechanism; by encrypting the product authentication information, the content in the product authentication information can be prevented from being stolen by lawbreakers, and the safety of the product authentication information is improved; by carrying out uplink storage on the product position information, the product identity identification can be prevented from being stolen by lawbreakers, so that the mechanism product can be traced from a material source to a final home position, and the reliability of the product authentication information is further improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (10)
1. An authentication information sending method based on a block chain is characterized by comprising the following steps:
acquiring a block access request transmitted by a user terminal aiming at a mechanism product, and acquiring a block address carried by the block access request, wherein the block access request is generated by identifying a product identity of the mechanism product based on the user terminal;
acquiring a block in a product block chain based on the block address, and acquiring product authentication information of the organization product in the block, wherein the product authentication information is generated by the authentication organization terminal based on detailed information of the organization product;
and sending the product authentication information to the user terminal.
2. The method of claim 1, wherein before obtaining the block access request transmitted by the user terminal for the mechanism product, further comprising:
acquiring product authentication transaction data transmitted by an authentication mechanism terminal aiming at detailed information of an organization product, and acquiring an authentication mechanism signature and product authentication information in the product authentication transaction data;
generating a chunk based on the certification authority signature and product certification information, the chunk being stored into a chain of product chunks;
and acquiring a block address of the block in the product block chain, and sending the block address to a product mechanism terminal, wherein the block address is used for packaging the product mechanism terminal to generate a product identity of the mechanism product.
3. The method of claim 2, wherein prior to obtaining the product authentication transaction data transmitted by the accreditation institution device for the detailed information of the institution product, further comprising:
acquiring an authentication transaction request aiming at an organization product and transmitted by a product organization terminal, and acquiring a product organization signature, organization authentication information and detailed information of the organization product carried by the authentication transaction request;
and sending the product agency signature, the agency authentication information and the detail information to an authentication agency terminal so that the authentication agency terminal authenticates the detail information based on the product agency signature and the agency authentication information to generate product authentication information of the agency product.
4. The method of claim 2, further comprising:
and acquiring the block address transmitted by the product mechanism terminal and the product position information of the mechanism product, and storing the product position information in the block corresponding to the block address.
5. The method of claim 4, wherein obtaining blocks in a chain of product blocks based on the block addresses in which to obtain product authentication information for the organization product comprises:
acquiring terminal position information of the user terminal carried by the block access request;
acquiring a block corresponding to the block address in a product block chain, and acquiring product authentication information and product position information of the organization product in the block;
matching the terminal position information and the product position information based on an intelligent contract to obtain a matching result;
the sending the product authentication information to the user terminal includes:
and sending the product authentication information, the product position information and the matching result to the user terminal.
6. The method of claim 2, wherein generating a chunk based on the certification authority signature and the product certification information, storing the chunk into a chain of product chunks comprises:
encrypting the product authentication information by using an organization key of a product organization to obtain the encrypted product authentication information;
storing the certification authority signature and the encrypted product authentication information into a block, and storing the block into a product block chain.
7. The method of claim 6, wherein storing the certification authority signature and the encrypted product certification information into a chunk, the storing the chunk into a chain of product chunks, comprises:
storing the authentication mechanism signature and the encrypted product authentication information into a block, and sending the block to a consensus node device in the product block chain for consensus processing;
and when the consensus node equipment passes the consensus of the blocks, storing the blocks into a product block chain.
8. An authentication information transmission apparatus characterized by comprising:
the system comprises an address acquisition unit, a block identification unit and a block management unit, wherein the address acquisition unit is used for acquiring a block access request transmitted by a user terminal aiming at a mechanism product, and acquiring a block address carried by the block access request, and the block access request is generated by identifying a product identity of the mechanism product based on the user terminal;
an authentication information acquisition unit configured to acquire a block in a product block chain based on the block address, and acquire product authentication information of the organization product in the block, the product authentication information being generated by the authentication organization terminal based on detailed information of the organization product;
and the authentication information sending unit is used for sending the product authentication information to the user terminal.
9. A computer device comprising a processor, a memory, an input output interface;
the processor is connected with the memory and the input/output interface respectively, wherein the input/output interface is used for page interaction, the memory is used for storing program codes, and the processor is used for calling the program codes to execute the method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010192145.1A CN111415174A (en) | 2020-03-18 | 2020-03-18 | Authentication information sending method and equipment based on block chain and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010192145.1A CN111415174A (en) | 2020-03-18 | 2020-03-18 | Authentication information sending method and equipment based on block chain and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111415174A true CN111415174A (en) | 2020-07-14 |
Family
ID=71494316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010192145.1A Pending CN111415174A (en) | 2020-03-18 | 2020-03-18 | Authentication information sending method and equipment based on block chain and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111415174A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113610550A (en) * | 2021-08-26 | 2021-11-05 | 盐城一方信息技术有限公司 | Product tracing method and system based on block chain |
-
2020
- 2020-03-18 CN CN202010192145.1A patent/CN111415174A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113610550A (en) * | 2021-08-26 | 2021-11-05 | 盐城一方信息技术有限公司 | Product tracing method and system based on block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11798008B2 (en) | Blockchain-based product authentication system | |
CN108197891B (en) | Electronic signing device and method based on block chain | |
CN111080295B (en) | Electronic contract processing method and device based on blockchain | |
CN110519297B (en) | Data processing method and device based on block chain private key | |
TW201741922A (en) | Biological feature based safety certification method and device | |
CN103617531B (en) | Safe payment method based on credible two-dimension code and device | |
CN107204957B (en) | Account binding and service processing method and device | |
JP2023535013A (en) | Quantum secure payment system | |
CN112165382B (en) | Software authorization method and device, authorization server side and terminal equipment | |
CN112115205B (en) | Cross-chain trust method, device, equipment and medium based on digital certificate authentication | |
KR20080100786A (en) | Internet business security system | |
CN105684483A (en) | Registry apparatus, agent device, application providing apparatus and corresponding methods | |
CN110309663B (en) | Privacy authentication method and system based on block chain | |
CN111008366A (en) | Copyright authorization method and device based on block chain | |
CN111222841A (en) | Block chain-based data distribution method and equipment and storage medium thereof | |
CN111488372A (en) | Data processing method, device and storage medium | |
CN104125230B (en) | A kind of short message certification service system and authentication method | |
CN114519206B (en) | Method for anonymously signing electronic contract and signature system | |
CN110866265A (en) | Data storage method, device and storage medium based on block chain | |
CN107864120A (en) | Auth method, device and computer-readable recording medium | |
CN111431988A (en) | Vehicle information storage method and device based on block chain and storage medium | |
CN105591746B (en) | A kind of processing method and processing system of online binding accepting terminal | |
CN111415174A (en) | Authentication information sending method and equipment based on block chain and storage medium | |
CN106529216B (en) | Software authorization system and software authorization method based on public storage platform | |
CN111427923A (en) | Vehicle information query method and device based on block chain 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 |