CN112258304A - Consensus accounting method, identification tracing method and system, and computer storage medium - Google Patents

Consensus accounting method, identification tracing method and system, and computer storage medium Download PDF

Info

Publication number
CN112258304A
CN112258304A CN202010905577.2A CN202010905577A CN112258304A CN 112258304 A CN112258304 A CN 112258304A CN 202010905577 A CN202010905577 A CN 202010905577A CN 112258304 A CN112258304 A CN 112258304A
Authority
CN
China
Prior art keywords
identification
node
physical entity
digital object
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010905577.2A
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.)
Network Communication and Security Zijinshan Laboratory
Original Assignee
Network Communication and Security Zijinshan Laboratory
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 Network Communication and Security Zijinshan Laboratory filed Critical Network Communication and Security Zijinshan Laboratory
Priority to CN202010905577.2A priority Critical patent/CN112258304A/en
Publication of CN112258304A publication Critical patent/CN112258304A/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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a consensus accounting method, an identification tracing method, a system thereof and a computer storage medium, belonging to the technical field of block chains, wherein the consensus accounting method comprises the following steps: receiving a consensus accounting request; voting by all nodes of the first block chain for the node requesting accounting at this time; counting a voting ranking by combining the number of nodes requesting for accounting and related rules, wherein the node with the first ranking obtains the authority of accounting this time; recording the service data to a relational database; performing hash calculation on the full field of the locally recorded service data to obtain a corresponding hash value; writing the hash value into a second block chain; broadcasting the second block chain written with the hash value to the whole network; the entity service data is stored in the database, all the service data is subjected to hash calculation, and the generated hash value is stored on the block link as the service data tracing hash value, so that the safety and the tamper resistance are improved, and the service data acquisition performance is improved.

Description

Consensus accounting method, identification tracing method and system, and computer storage medium
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain-based consensus accounting method, an identification traceability method and system and a computer storage medium.
Background
The industrial internet identification analysis system is an important component of an industrial internet network architecture and is a central nerve for supporting interconnection and intercommunication of industrial internets. The industrial internet utilizes the identification to communicate resources such as people, machines, things and the like, realizes interconnection and intercommunication of industrial full elements, industrial full chains and industrial full value chains through cooperative interaction between networking objects (entity objects or virtual objects), and effectively improves industrial production efficiency. The mainstream identification analysis system mainly comprises Handle, GS1, OID and the like, and is mainly used in the scenes of supply chain management, life cycle management and the like of a product circulation link at present.
The supply chain is a functional network chain structure which is formed by connecting suppliers, manufacturers, logistics distributors, distributors and end users into a whole. Each role is an important part in a supply chain system, but in the actual circulation process, the situations of product damage, product loss, counterfeit products and the like often occur, so that the circulation process of the products needs to be traced, a link with problems is searched in the whole supply chain, and the product tracing operation is completed.
The supply chain traceability means that in each link of a product supply chain, relevant information of product production and transportation can be traced, the whole circulation process of products is guaranteed to be always effectively monitored, and responsible units or responsible persons can be timely positioned.
As shown in fig. 1, the existing supply chain traceability system generally consists of three parts, namely product identification, data acquisition and centralized database. The product identification adopts technical means such as bar codes, two-dimensional codes and RFID to uniformly identify products and generate identification codes, and data acquisition refers to uploading acquired product attributes, enterprise attributes, logistics attributes and the like to a centralized database. When the product is circulated to a certain node on the supply chain, the node is responsible for recording related product data into a central database, a product tracing system is established based on the database, and the related nodes on the supply chain can perform operations such as inquiry and the like through the unique code on the product.
The existing traditional tracing system architecture has the following problems:
1. data asymmetry: the supply chain is a multi-party participation, multi-party maintenance system, and messages among producers, distributors and consumers are asymmetric in the whole supply chain system. Different circulation systems exist between the producer and the distributor, between the distributor and the consumer, and product information is stored in different databases, so that an information island is formed, and the difficulty in tracing the product is high.
2. Data missing: because the supply chain involves more nodes, most of the current traceability platforms are used for inputting product information by platforms built by manufacturers, and transporters, dealers, distributors and the like rarely participate in the data input link of the traceability platform, so that the data integrity of the whole traceability system is greatly reduced.
3. Data unreliable: since the databases exist in different databases, there is a possibility of human tampering with the data. For example, the manufacturer can modify the date of production, the expiration date, etc. of the product at will, and these data are crucial for product traceability, and relate to the safety of the consumer.
4. Data leakage: the traceability system is characterized in that apart from self-built modes of manufacturers, distributors and the like, part of the manufacturers and distributors also use a traceability platform provided by a third-party platform provider to upload product data in circulation to the third-party platform, the third-party platform provider grasps all product information, for most enterprises, core information of the products, such as data of supplied raw materials, production places, production volumes, inventory quantities, sales volumes and the like, belong to business secrets, the possibility exists that the providers of the third-party platform perform classified summary analysis on the input data, and once the data is stolen and leaked and disclosed in the market, fair competition among enterprises of the same type and the same industry is seriously influenced.
5. The data is unstable: the source tracing data stored in most enterprises at present are stored by adopting a centralized database, and once a server storing the data has accidents of power failure, downtime and the like due to some reason, a source tracing platform cannot continuously provide services for users. If the model of the third-party supplier provides the platform, once the supplier no longer provides the traceability service for some reason, the user data based on the platform is completely lost, and a fatal attack is generated to the manufacturer and the distributor.
6. Supervision limitation: in the current market circulation process of products in China, due to more circulation links, a supervisor (such as quality supervision departments in various regions) cannot supervise the whole process, most of the current products are mainly supervised and spot-checked, sampling inspection is carried out in the production and circulation processes of the products, and complaints of terminal consumers are used as auxiliary supervision. While sample supervision can control product quality to some extent, it does not cover all product quality, and complaints are made after a consumer has used a product, while specific products can be controlled, it does not control the flow to other areas or the damage to the consumer that the product has been used.
Disclosure of Invention
In order to solve the problems, the invention provides a common identification accounting method which is high in safety and cannot be tampered, and also provides a safe, complete, real, transparent and tamper-proof identification tracing method and a system thereof.
In order to achieve the above object, an aspect of the present invention is a consensus accounting method, including:
receiving a consensus accounting request;
voting by all nodes of the first block chain for the node requesting accounting at this time;
counting a voting ranking by combining the number of nodes requesting for accounting and related rules, wherein the node with the first ranking obtains the authority of accounting this time;
recording the service data to a relational database;
performing hash calculation on the full field of the locally recorded service data to obtain a corresponding hash value;
writing the hash value into a second block chain;
broadcasting the second blockchain with the written hash value to the whole network.
Optionally, the first blockchain is a federation chain.
In another aspect, the present invention further provides an identifier tracing method, including:
receiving an identification entry request initiated by a first operation node;
receiving information of a current physical entity; the information comprises product attributes, time attributes, geographic position attributes and logistics attributes;
carrying out identification analysis on the information of the physical entity to produce a corresponding digital object identification;
writing the digital object identification information and the circulation information of the physical entity into a first block chain according to a contract of a node;
performing consensus accounting on circulation information related to the physical entity represented by the digital object identifier; wherein the consensus accounting adopts the consensus accounting method.
In the identifier tracing method, optionally, after performing consensus accounting on the circulation information related to the physical entity represented by the digital object identifier, the method further includes:
receiving a query request initiated by a second node;
acquiring circulation information related to a physical entity corresponding to the digital object identifier according to the query contract;
and acquiring all geographical position information of the physical entity corresponding to the digital object identifier distributed in the circulation process according to the circulation information, and displaying a corresponding movement track on a map.
In the identifier tracing method, optionally, after performing consensus accounting on the circulation information related to the physical entity represented by the digital object identifier, the method further includes:
receiving an identification feedback request initiated by a third node and sending the identification feedback request to a fourth node;
the fourth node performs relevant processing on the relevant physical entity according to the identification feedback request, and feeds back a processing result to the third node after the processing is completed;
the information of the relevant physical entity represented by the digital object identifier is refreshed by the common identification accounting method.
In another aspect, the present invention further provides an identifier tracing system, including:
a first receiving unit, configured to receive an identifier entry request initiated by a first node;
a second receiving unit, configured to receive information of a current physical entity; the information comprises product attributes, time attributes, geographic position attributes and logistics attributes;
the identification analysis unit is used for carrying out identification analysis on the information of the physical entity and producing a corresponding digital object identification;
a consensus accounting unit, configured to perform consensus accounting on circulation information related to the physical entity represented by the digital object identifier; wherein the consensus accounting adopts the consensus accounting method.
Optionally, the identifier tracing system further includes an identifier querying unit, where the identifier querying unit is configured to receive a request for identifier querying of the second operation node, and obtain the physical entity information recorded in the blockchain through a query contract.
Optionally, the identifier tracing system further includes an identifier positioning unit and an identifier map unit; the identification positioning unit is used for inquiring the fed back data according to the identification to acquire all the geographical position information of the physical entity corresponding to the digital object identification distributed in the circulation process; the identification map unit is used for reflecting all movement tracks of the physical entity corresponding to the digital object identification in the circulation process on the map.
Optionally, the identifier tracing system further includes an identifier feedback unit, where the identifier feedback unit is configured to receive a request for identifier feedback from the third node, notify the fourth node of managing the identifier, feed back a processing result to the third node after the fourth node object completes processing, and call an entering contract to refresh the related physical entity information represented by the digital object identifier.
Optionally, the identifier parsing unit includes an active identifier parsing module and a passive identifier parsing module; the active identification analysis module is used for actively identifying a carrier to perform identification processing and converting a corresponding physical entity into a digital object identification; the passive identification analysis module is used for the passive identification carrier to carry out identification processing and convert the corresponding physical entity into the digital object identification.
Compared with the prior art, the invention has the beneficial effects that: the consensus accounting method of the invention stores the entity service data in the database, performs hash calculation on all the service data, and stores the generated hash value as the service data tracing hash value on the block chain.
In addition, the expression traceability system utilizes the characteristics of a physical entity and a digital object in a one-object-one-code manner to map the real circulating product into a digital object identifier, and utilizes the characteristics of multi-party participation, distributed storage, decentralized management, data non-falsification and the like of a block chain to provide a safe, complete, real, transparent and non-falsification traceability system for consumers, suppliers, manufacturers, logistics merchants, distributors, supervision agencies and the like.
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 embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a diagram of an existing supply chain traceability system architecture;
FIG. 2 is a flow chart of identity entry in the present invention;
FIG. 3 is a flow chart of consensus billing in the present invention;
FIG. 4 is a flow diagram of identifying queries in the present invention;
FIG. 5 is a flow chart of the identification feedback of the present invention;
FIG. 6 is a block diagram of the identification traceability system 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.
As used in this application and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements.
The relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise. Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description. Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate. In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present embodiment, "a plurality" means two or more unless otherwise specified.
The invention provides an identification tracing method which mainly comprises an identification input flow, an identification query flow, an identification feedback flow and a consensus accounting flow.
Each process is further described with reference to the accompanying drawings, where the identifier entry is mainly created for the first time for a physical entity represented by a digital object identifier and is not entered into a system, or records data information generated in a process of circulating the physical entity from one operation node to another operation node, as shown in fig. 2, the process includes the following steps:
s10: and receiving an identification entry request initiated by the first node.
Specifically, the nodes in the technical scheme mainly include a consumption node, an operation node, a supervision node and a management node. The application objects corresponding to the consumption nodes are consumers in the supply chain traceability system, the application objects corresponding to the operation nodes are suppliers, manufacturers (manufacturers), logistics merchants and sellers (distributors, distributors and agents) in the supply chain traceability system, the application objects corresponding to the supervision nodes are third-party supervision organizations in the supply chain traceability system, and the application objects corresponding to the management nodes are suppliers, manufacturers (manufacturers), logistics merchants, sellers (distributors, distributors and agents) and third-party supervision organizations in the supply chain traceability system. All the 4 nodes cover all the application objects in the supply chain tracing link.
In the present embodiment, the first node is an operation node, i.e., a supplier, a producer (manufacturer), a logistics center, a seller (distributor, agent).
In some embodiments, after receiving an identifier entry request initiated by an operation node, a management node may verify an identity of the operation node, specifically, may verify the identity by using a password, a fingerprint, or facial recognition, and the like, and if the identity passes the authentication, continue a subsequent entry step, otherwise, directly terminate the service request.
S20: receiving information of a current physical entity; the information comprises product attributes, time attributes, geographic position attributes and logistics attributes.
S30: and carrying out identification analysis on the information of the physical entity to produce a corresponding digital object identification.
The identification analysis is to adopt an identification method of one object and one code, map a physical entity into a digital object by an active identification analysis technology or a passive identification analysis technology, and transmit related physical entity information represented by the digital object identification to the identification traceability module. The active identification analysis refers to identification recognition processing aiming at active identification carriers such as SIM cards and the like, and corresponding physical entities are converted into digital object identifications; passive identification analysis refers to identification recognition processing of passive identification carriers such as one-dimensional codes and two-dimensional codes, and corresponding physical entities are converted into digital object identifications.
In some embodiments, before performing the identifier analysis, it is determined whether the identifier entry is performed for the first time, if the identifier entry is performed for the first time, the digital object identifier corresponding to the information of the physical entity needs to be generated, and if the identifier entry is not performed for the first time, only the digital object identifier corresponding to the physical entity needs to be acquired from the server.
S40: and writing the digital object identification information and the circulation information of the physical entity into a first block chain according to the contract of the node.
Specifically, related physical entity circulation information is obtained, then the related information is sent to an input contract, and the subsequent input contract starts to execute the contract according to the protocol of each node.
It should be noted that the blockchain network is a P2P network, the consumption node, the operation node, the management node, and the supervision node defined by the present invention are all in the blockchain network, and together complete the traceability management of the digital object identifier, and the type of blockchain (the first blockchain and the subsequent second blockchain) adopted by the present invention is a federation chain, that is, only nodes that are authorized can participate in the accounting.
S50: and carrying out consensus accounting on the circulation information related to the physical entity represented by the digital object identifier.
The common identification accounting is distributed accounting and block generation of circulation data related to physical entities corresponding to the digital object identification, and is mainly oriented to operation nodes or supervision nodes.
As shown in fig. 3, the flow of the consensus accounting is specifically described below, and the consensus accounting specifically includes the following steps:
s501: a consensus billing request is received.
It should be understood that the consensus accounting request is initiated by the operational node or the supervisory node.
S502: and all nodes of the first block chain vote for the node requesting accounting at this time.
It should be understood that the first blockchain is a federation chain.
S503: and (4) counting the voting ranking by combining the number of the nodes requesting for accounting and the related rules, and obtaining the authority of accounting at this time by the first node in the ranking.
Specifically, the ranking of the voting nodes is comprehensively calculated according to the number of the nodes requesting for accounting, the working state, the registration time, the credit value, the weight and the like of the voting node, and the node with the first ranking obtains the authority of accounting this time.
S504: and recording the business data to a relational database.
It should be noted that the service data includes digital object identification physical information (product attribute, time attribute, geographic location attribute, logistics attribute) and circulation information of the physical entity.
S505: and performing hash calculation on the full field of the locally recorded service data to obtain a corresponding hash value.
S506: and writing the hash value into a second block chain.
It should be understood that the second blockchain in this embodiment is a federation chain.
S507: broadcasting the second blockchain with the written hash value to the whole network.
Because the business data represented by the digital object has large information amount, the consensus accounting method stores the entity business data in the database, performs hash calculation on all the business data, and stores the generated hash value as a business data tracing hash value on the block chain. Compared with the traditional method of storing all the data in a database, the method increases the security and the tamper resistance, and compared with the method of storing all the data in a block chain, the method improves the performance of acquiring the service data.
In some embodiments, the method for identifying a source further includes a method for identifying a query, as shown in fig. 4, the method including the steps of:
s601: and receiving a query request initiated by the second node.
It should be noted here that the second node may be a consuming node or a supervising node or an operating node.
S602: and acquiring circulation information related to the physical entity corresponding to the digital object identifier according to the query contract.
Specifically, a digital object identifier code of the identifier carrier needs to be acquired through active identifier analysis or passive identifier analysis, and then the digital object identifier is sent to the identifier query module; the identification query module receives the digital object identification and initiates a request to a query contract; the entered contract begins executing the contract according to the protocol of each node.
It is required to say that the physical entities are related to the information of the distribution information product attribute, the time attribute, the geographic position attribute, the logistics attribute and the like.
S603: and acquiring all geographical position information of the physical entity corresponding to the digital object identifier distributed in the circulation process according to the circulation information, and displaying a corresponding movement track on a map. In some embodiments, the method for identifying traceability further includes a method for identifying feedback, as shown in fig. 5, the method includes the following steps:
s701: and receiving an identification feedback request initiated by the third node and sending the identification feedback request to the fourth node.
It should be noted that, in this embodiment, the third node is a consuming node or a supervising node, and the fourth node is an operating node.
In some embodiments, the management node determines whether the identity of the originating node is trusted, and may specifically perform verification in a manner of password, fingerprint, face recognition, or the like, and if the authentication passes, perform the subsequent step, otherwise directly terminate the service request.
S702: and the fourth node performs related processing on the related physical entity according to the identification feedback request, and feeds back a processing result to the third node after the processing is completed.
It should be understood that the related physical entity refers to a corresponding physical entity in the identification feedback request, and the related processing refers to performing corresponding processing according to the corresponding identification feedback, for example, the identification feedback indicates that the article lacks a label, and then the corresponding processing is to label the article.
S703: the information of the relevant physical entity represented by the digital object identifier is refreshed by the common identification accounting method.
Specifically, a query contract corresponding to the digital object identifier needs to be called first, then all circulation information corresponding to the digital object identifier is obtained, then related information fed back by the digital object identifier and a processing result are added, then an entry contract of the digital object identifier is called, and finally, related information of the physical entity represented by the digital object identifier is refreshed by a consensus accounting method, for a specific consensus accounting method, reference is made to steps S501 to S507 in the above embodiment, which is not described herein again.
In addition, the present invention further provides an identifier tracing system, as shown in fig. 6, the system includes a first receiving unit 10, a second receiving unit 20, an identifier parsing unit 30, a consensus accounting unit 40, an identifier querying unit 50, an identifier positioning unit 60, an identifier map unit 70, and an identifier feedback unit 80, which are described in detail below.
A first receiving unit 10, configured to receive an identity entry request initiated by a first node.
It should be understood that the first node is an operational node, i.e. a supplier, a producer (manufacturer), a logistics distributor, a vendor (distributor, agent).
A second receiving unit 20, configured to receive information of a current physical entity; the information comprises product attributes, time attributes, geographic position attributes and logistics attributes.
An identifier resolution unit 30, configured to perform identifier resolution on the information of the physical entity to generate a corresponding digital object identifier; specifically, the identifier resolution unit 30 includes an active identifier resolution module and a passive identifier resolution module; the active identification analysis module is used for actively identifying a carrier to perform identification processing, converting a corresponding physical entity into a digital object identification, for example, identifying the active identification carrier such as an SIM card to perform identification processing, and converting the corresponding physical entity into the digital object identification; the passive identification analysis module is used for performing identification processing on a passive identification carrier, converting a corresponding physical entity into a digital object identification, for example, performing identification processing on passive identification carriers such as a one-dimensional code and a two-dimensional code, and converting the corresponding physical entity into the digital object identification.
A consensus accounting unit 40, configured to perform consensus accounting on circulation information related to the physical entity represented by the digital object identifier; please refer to steps S501 to S507 of the above embodiments, which are not described herein again.
And the identification query unit 50 is used for receiving the request of the second operation node identification query and acquiring the physical entity information recorded in the blockchain through a query contract. For a detailed description of the working process and related terms, please refer to steps S601-S603 of the above method embodiment, which is not repeated herein.
An identification positioning unit 60 and an identification map unit 70; the identification positioning unit is used for inquiring the fed back data according to the identification to acquire all the geographical position information of the physical entity corresponding to the digital object identification distributed in the circulation process; the identification map unit is used for reflecting all movement tracks of the physical entity corresponding to the digital object identification in the circulation process on the map.
And an identifier feedback unit 80, configured to receive the request for identifier feedback of the third node, notify the fourth node to manage the identifier, feed back a processing result to the third node after the fourth node object completes processing, and call a record contract to refresh the relevant physical entity information represented by the digital object identifier. For a detailed description of the working process and related terms, please refer to steps S701-S703 of the above method embodiment, which are not repeated herein.
In some embodiments, the identification traceability system further comprises a user management unit, which is used for defining different roles of the application object and is also responsible for adding, deleting and modifying related user information.
In some embodiments, the identifier tracing system further includes a function permission unit, configured to give different permissions to the application object for three typical functions of entry, query and feedback of the identifier operation.
In some embodiments, the identification tracing system further includes a logging contract unit for automatically executing a contract for writing physical entity information represented by the digital object identification into the blockchain according to an agreement agreed by the application node.
In some embodiments, the identification traceability system further comprises a query contract unit for automatically executing a contract for obtaining information representing the physical entity stored in the blockchain according to an agreement agreed upon by the application node.
In some embodiments, the identification tracing system further includes an identification competition unit, which is used for unifying the block content and the sequence of the application objects on each blockchain based on a consensus algorithm.
The identification traceability system maps the real circulating product into the digital object identification by utilizing the characteristics of a physical entity and a digital object in one object and one code, and provides a safe, complete, real, transparent and tamperproof traceability system for consumers, suppliers, manufacturers, logistics merchants, dealers, distributors, supervision agencies and the like by utilizing the characteristics of multi-party participation, distributed storage, decentralized management, data untampering and the like of a block chain.
An embodiment of the present invention provides a computer storage medium, wherein the computer storage medium may store a program, and the program comprises a part or all of the steps of any one of the consensus accounting methods described in the above method embodiments when executed.
In addition, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program includes some or all of the steps of any one of the identifier tracing methods described in the foregoing method embodiments.
Each functional unit in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (12)

1. A consensus accounting method, comprising:
receiving a consensus accounting request;
voting by all nodes of the first block chain for the node requesting accounting at this time;
counting a voting ranking by combining the number of nodes requesting for accounting and related rules, wherein the node with the first ranking obtains the authority of accounting this time;
recording the service data to a relational database;
performing hash calculation on the full field of the locally recorded service data to obtain a corresponding hash value;
writing the hash value into a second block chain;
broadcasting the second blockchain with the written hash value to the whole network.
2. The consensus billing method of claim 1, wherein: the first blockchain is a federation chain.
3. An identification tracing method is characterized by comprising the following steps:
receiving an identification entry request initiated by a first node;
receiving information of a current physical entity; the information comprises product attributes, time attributes, geographic position attributes and logistics attributes;
carrying out identification analysis on the information of the physical entity to produce a corresponding digital object identification;
writing the digital object identification information and the circulation information of the physical entity into a first block chain according to a contract of a node;
performing consensus accounting on circulation information related to the physical entity represented by the digital object identifier; wherein the consensus billing method of claim 1 or 2 is adopted for the consensus billing.
4. The identity tracing method of claim 3, wherein after the step of performing consensus accounting on the physical entity related circulation information represented by the digital object identity, the method further comprises:
receiving a query request initiated by a second node;
acquiring circulation information related to a physical entity corresponding to the digital object identifier according to the query contract;
and acquiring all geographical position information of the physical entity corresponding to the digital object identifier distributed in the circulation process according to the circulation information, and displaying a corresponding movement track on a map.
5. The identity tracing method of claim 3, wherein after the step of performing consensus accounting on the circulation information related to the physical entity represented by the digital object identity, the method further comprises:
receiving an identification feedback request initiated by a third node and sending the identification feedback request to a fourth node; the fourth node performs relevant processing on the relevant physical entity according to the identification feedback request, and feeds back a processing result to the third node after the processing is completed;
refreshing the information of the associated physical entity represented by the digital object identity using the consensus accounting method of claim 1 or 2.
6. An identification traceability system, comprising:
the first receiving unit is used for receiving an identifier entry request initiated by a first operation node;
a second receiving unit, configured to receive information of a current physical entity; the information comprises product attributes, time attributes, geographic position attributes and logistics attributes;
the identification analysis unit is used for carrying out identification analysis on the information of the physical entity and producing a corresponding digital object identification;
a consensus accounting unit, configured to perform consensus accounting on circulation information related to the physical entity represented by the digital object identifier; wherein the consensus billing method of claim 1 or 2 is adopted for the consensus billing.
7. The identification traceability system of claim 6, wherein: the system further comprises an identification query unit, wherein the identification query unit is used for receiving the request of the second node identification query and acquiring the physical entity information recorded in the block chain through a query contract.
8. The identification traceability system of claim 7, wherein: the system also comprises an identification positioning unit and an identification map unit; the identification positioning unit is used for inquiring the fed back data according to the identification to acquire all the geographical position information of the physical entity corresponding to the digital object identification distributed in the circulation process; the identification map unit is used for reflecting all movement tracks of the physical entity corresponding to the digital object identification in the circulation process on the map.
9. The identification traceability system of claim 6, wherein: the system also comprises an identification feedback unit, wherein the identification feedback unit is used for receiving a request for the identification feedback of the third node, informing a fourth node to manage the identification, feeding back a processing result to the third node after the fourth node object is processed, and calling an input contract to refresh the related physical entity information represented by the digital object identification.
10. The identification traceability system of claim 6, wherein: the identification analysis unit comprises an active identification analysis module and a passive identification analysis module; the active identification analysis module is used for actively identifying a carrier to perform identification processing and converting a corresponding physical entity into a digital object identification; the passive identification analysis module is used for the passive identification carrier to carry out identification processing and convert the corresponding physical entity into the digital object identification.
11. A computer storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of a consensus accounting method as claimed in any one of claims 1-2.
12. A computer storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of a method for identity tracing according to any one of claims 3 to 5.
CN202010905577.2A 2020-09-01 2020-09-01 Consensus accounting method, identification tracing method and system, and computer storage medium Pending CN112258304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010905577.2A CN112258304A (en) 2020-09-01 2020-09-01 Consensus accounting method, identification tracing method and system, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010905577.2A CN112258304A (en) 2020-09-01 2020-09-01 Consensus accounting method, identification tracing method and system, and computer storage medium

Publications (1)

Publication Number Publication Date
CN112258304A true CN112258304A (en) 2021-01-22

Family

ID=74224808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010905577.2A Pending CN112258304A (en) 2020-09-01 2020-09-01 Consensus accounting method, identification tracing method and system, and computer storage medium

Country Status (1)

Country Link
CN (1) CN112258304A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966028A (en) * 2021-03-26 2021-06-15 全球能源互联网研究院有限公司 Data traceability system, method and device based on industrial internet identification
CN116389507A (en) * 2023-06-06 2023-07-04 中铱数字科技有限公司 Management consensus strategy system based on block chain
CN118018630A (en) * 2024-04-08 2024-05-10 成都边界元科技有限公司 Multi-center cross-chain identification method for data elements

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108364181A (en) * 2018-01-08 2018-08-03 广州中国科学院计算机网络信息中心 Source tracing method and system based on block chain and Internet of Things mark
CN109194702A (en) * 2018-06-04 2019-01-11 平安科技(深圳)有限公司 Medical data recording method, system, computer equipment and storage medium
CN110322352A (en) * 2019-07-09 2019-10-11 深圳市炳德区块链技术有限公司 A kind of account book foundation and querying method, electronic equipment based on block chain
CN111309711A (en) * 2020-03-13 2020-06-19 财付通支付科技有限公司 Cross-block-chain data migration method, device, equipment and storage medium
CN111460395A (en) * 2020-04-03 2020-07-28 北京邮电大学 Shared data storage and copyright protection tracing method and system
CN111507709A (en) * 2020-03-25 2020-08-07 农业农村部农药检定所(国际食品法典农药残留委员会秘书处) Data traceability system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108364181A (en) * 2018-01-08 2018-08-03 广州中国科学院计算机网络信息中心 Source tracing method and system based on block chain and Internet of Things mark
CN109194702A (en) * 2018-06-04 2019-01-11 平安科技(深圳)有限公司 Medical data recording method, system, computer equipment and storage medium
CN110322352A (en) * 2019-07-09 2019-10-11 深圳市炳德区块链技术有限公司 A kind of account book foundation and querying method, electronic equipment based on block chain
CN111309711A (en) * 2020-03-13 2020-06-19 财付通支付科技有限公司 Cross-block-chain data migration method, device, equipment and storage medium
CN111507709A (en) * 2020-03-25 2020-08-07 农业农村部农药检定所(国际食品法典农药残留委员会秘书处) Data traceability system
CN111460395A (en) * 2020-04-03 2020-07-28 北京邮电大学 Shared data storage and copyright protection tracing method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966028A (en) * 2021-03-26 2021-06-15 全球能源互联网研究院有限公司 Data traceability system, method and device based on industrial internet identification
CN116389507A (en) * 2023-06-06 2023-07-04 中铱数字科技有限公司 Management consensus strategy system based on block chain
CN116389507B (en) * 2023-06-06 2023-08-04 中铱数字科技有限公司 Management consensus strategy system based on block chain
CN118018630A (en) * 2024-04-08 2024-05-10 成都边界元科技有限公司 Multi-center cross-chain identification method for data elements

Similar Documents

Publication Publication Date Title
Garrard et al. Blockchain for trustworthy provenances: A case study in the Australian aquaculture industry
CN110969447B (en) Product depth traceability system based on block chain technology
CN112258304A (en) Consensus accounting method, identification tracing method and system, and computer storage medium
US9436923B1 (en) Tracking unitization occurring in a supply chain
CN111062730B (en) Pork information management method and system based on Internet of things and blockchain
CN109461008A (en) Drug Administration method and system based on block chain
CN111612483B (en) Tea leaf credible tracing system based on decentralization and centralization cooperation
Liu et al. Supply Chain Decision Model Based on Blockchain: A Case Study of Fresh Food E‐Commerce Supply Chain Performance Improvement
CN111507709A (en) Data traceability system
Sun et al. Optimization of Cross‐Border e‐Commerce Logistics Supervision System Based on Internet of Things Technology
Zeng et al. Incentive mechanisms in federated learning and a game-theoretical approach
CN109784956B (en) Agricultural product tracing method based on block chain technology
Xiao Supervision Strategy Analysis on Price Discrimination of E‐Commerce Company in the Context of Big Data Based on Four‐Party Evolutionary Game
CN111383020A (en) Block chain-based article anti-counterfeiting management method, device, equipment and storage medium
Li et al. An exploratory study on the design and management model of traditional Chinese medicine quality safety traceability system based on blockchain technology
CN111598735A (en) House decoration supervisory systems based on block chain
CN102194190A (en) Method for trace information architecture
Guo et al. Supply chain governance of agricultural products under big data platform based on blockchain technology
CN115185244A (en) Product quality tracing system and method based on identification analysis technology
Chen et al. Analysis of the Closed-Loop Supply Chain Focusing on Power Batteries in China.
CN113554443A (en) Block chain-based imported frozen food quality safety tracing method and system
CN106156904B (en) Cross-platform virtual asset tracing method based on eID
CN116596551A (en) Supply chain product tracing method based on block chain, storage medium and electronic equipment
Zhu [Retracted] Research on Real‐Time Tracking Algorithm of E‐Commerce Logistics Information Based on Blockchain Technology
CN114298721A (en) Portable credible device of tracing to source towards chinese-medicinal material

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