CN112199446B - Method, device, equipment and storage medium for storing article circulation records - Google Patents

Method, device, equipment and storage medium for storing article circulation records Download PDF

Info

Publication number
CN112199446B
CN112199446B CN202011378949.7A CN202011378949A CN112199446B CN 112199446 B CN112199446 B CN 112199446B CN 202011378949 A CN202011378949 A CN 202011378949A CN 112199446 B CN112199446 B CN 112199446B
Authority
CN
China
Prior art keywords
circulation
block chain
target
digital identity
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011378949.7A
Other languages
Chinese (zh)
Other versions
CN112199446A (en
Inventor
吴莹强
罗东升
张亚楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202011378949.7A priority Critical patent/CN112199446B/en
Priority to CN202110826740.0A priority patent/CN113612741B/en
Publication of CN112199446A publication Critical patent/CN112199446A/en
Application granted granted Critical
Publication of CN112199446B publication Critical patent/CN112199446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • 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
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
    • G06K19/0723Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for storing article circulation records. The method is applied to node equipment in a block chain, and intelligent contracts used for generating block chain digital identities are deployed in the block chain. The method may include receiving a request for a proof of circulation record for a target item. Wherein, the target object is bound with an electronic tag. The certificate storing request comprises a circulation record generated based on the block chain digital identity of the target object, which is sensed by the sensing equipment from the electronic tag bound to the target object. The blockchain digital identity comprises a digital identity generated by the smart contract. And then responding to the card storage request, and issuing the corresponding relation between the circulation record and the block chain digital identity of the target article to the block chain for card storage.

Description

Method, device, equipment and storage medium for storing article circulation records
Technical Field
The application relates to computer technology, in particular to a method, a device, equipment and a storage medium for storing article circulation records.
Background
With the development of technologies such as a block chain, the internet of things, 5G and the like, the demand of entity economy on digitization is more and more strong. For example, in the scenario of goods circulation management in a bonded area, it is not satisfactory to perform goods circulation management by goods circulation documents at present, but it is more desirable to perform goods circulation management by performing real-logistics credible digital evidence storage on the whole goods circulation process, and it is also desirable to realize cross-checking between real logistics and document information flow based on the circulation records of the evidence.
The above-mentioned real logistics credible digital evidence storage specifically refers to a process of credible evidence storage in a digital form for the circulation record of a real object (target object) in the whole circulation process. The above trusted deposit certificate can be embodied in the following aspects: the data of the deposit certificate is real and can not be tampered, and the process of deposit certificate can be traced, transparentized, auditable and the like.
The block chain technology, also called distributed ledger technology, is an emerging technology in which several computing devices participate in "accounting" together, and a complete distributed database is maintained together. The blockchain technology has been widely used in many fields due to its characteristics of decentralization, transparency, participation of each computing device in database records, and rapid data synchronization between computing devices.
Disclosure of Invention
In view of the above, the present application discloses a method for storing article circulation records. The method is applied to node equipment in a block chain. Intelligent contracts for generating blockchain digital identities are deployed in the blockchain. The method comprises the following steps:
receiving a certificate storage request aiming at the circulation record of the target object; wherein, the target object is bound with an electronic tag; the certificate storage request comprises: a circulation record generated based on the block chain digital identity of the target object sensed by the sensing equipment from the electronic tag bound with the target object; the blockchain digital identity comprises a digital identity generated by the intelligent contract;
and responding to the certificate storage request, and issuing the corresponding relation between the circulation record and the block chain digital identity of the target article to the block chain for certificate storage.
The application also discloses a device for storing the article circulation record, which is applied to the node equipment in the block chain, wherein the block chain is provided with an intelligent contract for generating the block chain digital identity; the above-mentioned device includes:
the receiving module is used for receiving a certificate storage request aiming at the circulation record of the target object; wherein, the target object is bound with an electronic tag; the certificate storage request comprises: a circulation record generated based on the block chain digital identity of the target object sensed by the sensing equipment from the electronic tag bound with the target object; the blockchain digital identity comprises a digital identity generated by the intelligent contract;
and the card storage module responds to the card storage request and issues the corresponding relation between the circulation record and the block chain digital identity of the target article to the block chain for card storage.
In the above scheme, on one hand, the method binds an electronic tag to a target article, where the electronic tag may include a block chain digital identity generated by an intelligent contract, so that a circulation record of the target article may be formed for sensing information of the electronic tag by a sensing device when the target article passes through the sensing device, and trusted data is provided for implementing real-logistics trusted digital storage; on the other hand, after receiving the certificate storage request for the target article, the corresponding relation between the circulation record and the block chain digital identity of the target article can be issued to the block chain for certificate storage, so that the credible and digital certificate storage of the physical logistics is realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate one or more embodiments of the present application or technical solutions in the related art, the drawings needed to be used in the description of the embodiments or the related art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in one or more embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive exercise.
FIG. 1 is a schematic diagram of one type of intelligent contract creation shown herein;
FIG. 2 illustrates a method for storing a certificate of circulation record of an article according to the present application;
FIG. 3 is a schematic view of a scenario presented herein;
FIG. 4 is a schematic view of a bonded area circulation link shown in the present application;
FIG. 5 is a schematic illustration of a certificate store process shown in the present application;
FIG. 6 is a schematic view of a certificate storage device for circulation records of an article according to the present application;
fig. 7 is a schematic diagram of a hardware structure of an electronic device shown in the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. It should also be understood that the word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
Blockchains are generally divided into three types: public chain (Public Blockchain), Private chain (Private Blockchain) and alliance chain (Consortium Blockchain). In addition, there are various types of combinations, such as private chain + federation chain, federation chain + public chain, and other different combinations. The most decentralized of these is the public chain. The public chain is represented by bitcoin and ether house, and the participators joining the public chain can read the data record on the chain, participate in transaction, compete for accounting right of new blocks, and the like.
Furthermore, each participant (i.e., node) is free to join and leave the network and perform related operations. Private chains are the opposite, with the network's write rights controlled by an organization or organization and the data read rights specified by the organization. Briefly, a private chain can be a weakly centralized system with strictly limited and few participating nodes. This type of blockchain is more suitable for use within a particular establishment.
A federation chain is a block chain between a public chain and a private chain, and "partial decentralization" can be achieved. Each node in a federation chain typically has a physical organization or organization corresponding to it; participants jointly maintain blockchain operation by authorizing to join the network and forming a benefit-related alliance.
Whether public, private, or alliance, may provide the functionality of an intelligent contract. An intelligent contract on a blockchain is a contract that can be executed on a blockchain system triggered by a transaction. An intelligent contract may be defined in the form of code.
Taking the ethernet as an example, the support user creates and invokes some complex logic in the ethernet network, which is the biggest challenge of ethernet to distinguish from bitcoin blockchain technology. The core of the ethernet plant as a programmable blockchain is the ethernet plant virtual machine (EVM), each ethernet plant node can run the EVM. The EVM is a well-behaved virtual machine, which means that a variety of complex logic can be implemented through it. The user issuing and invoking smart contracts in the etherhouse is running on the EVM. In fact, what the virtual machine directly runs is virtual machine code (virtual machine bytecode, hereinafter referred to as "bytecode"). The intelligent contracts deployed on the blockchain may be in the form of bytecodes.
For example, as shown in fig. 1, after Bob sends a Transaction (Transaction) containing information to create an intelligent contract to the ethernet network, the EVM of node 1 may execute the Transaction and generate a corresponding contract instance. The "0 x68e12cf284 …" in fig. 1 represents the address of the contract, the data field of the transaction holds the byte code, and the to field of the transaction is an empty account. After the agreement is achieved between the nodes through the consensus mechanism, the contract is successfully created, and the subsequent user can call the contract.
After the contract is created, a contract account corresponding to the intelligent contract appears on the blockchain and has a specific address, and the contract code and the account storage are stored in the contract account. The behavior of an intelligent contract is controlled by the contract code, while the account store (Storage) of the intelligent contract maintains the state of the contract. In other words, the intelligent contract causes a virtual account to be generated on the blockchain that contains the contract code and account storage.
As mentioned above, the data field containing the transaction that created the smart contract holds what may be the byte code of the smart contract. A bytecode consists of a series of bytes, each of which can identify an operation. Based on the multiple considerations of development efficiency, readability and the like, a developer can select a high-level language to write intelligent contract codes instead of directly writing byte codes. For example, a high-level language such as Solidity, Serpent, LLL, etc. is used. For intelligent contract code written in a high-level language, the intelligent contract code can be compiled by a compiler to generate byte codes which can be deployed on a blockchain.
Taking the Solidity language as an example, the contract written by the method is similar to a Class (Class) in an object-oriented programming language, and various members including state variables, functions, function modifiers, events and the like can be declared in one contract. A state variable is a value permanently stored in the account storage of a smart contract that is used to save the state of the contract.
With the development of technologies such as a block chain, the internet of things, 5G and the like, the demand of entity economy on digitization is more and more strong. For example, in the scenario of goods circulation management in a bonded area, it is not satisfactory to perform goods circulation management by goods circulation documents at present, but it is more desirable to perform goods circulation management by performing real-logistics credible digital evidence storage on the whole goods circulation process, and it is also desirable to realize cross-checking between real logistics and document information flow based on the circulation records of the evidence.
The above-mentioned real logistics credible digital evidence storage specifically refers to a process of credible evidence storage in a digital form for the circulation record of a real object (target object) in the whole circulation process. The above trusted deposit certificate can be embodied in the following aspects: the data of the deposit certificate is real and can not be tampered, and the process of deposit certificate can be traced, transparentized, auditable and the like.
In view of the above, the present application is directed to a method for storing article circulation records. On one hand, the method binds an electronic tag for a target article, wherein the electronic tag can contain a block chain digital identity generated by an intelligent contract, so that a circulation record of the target article can be formed by sensing equipment for sensing information of the electronic tag when the target article passes through the sensing equipment, and trusted data is provided for realizing real logistics trusted digital storage; on the other hand, after receiving the certificate storage request for the target article, the corresponding relation between the circulation record and the block chain digital identity of the target article can be issued to the block chain for certificate storage, so that the credible and digital certificate storage of the physical logistics is realized.
The method can be applied to node devices in a block chain.
The node device can be used for executing operations such as transaction construction, intelligent contract operation, data storage and the like. The node device may be any electronic device deployed in a blockchain. For example, in a scenario of the goods circulation management in the bonded area, the node device may be a node device corresponding to a manager (e.g., a goods monitoring manager in the keen area) corresponding to a goods in the bonded area. It should be noted that the node device may be various terminal devices such as a mobile phone terminal device and a personal PC device, and the device type of the node device is not particularly limited in this application.
The block chain may be a public chain, a private chain, or a federation chain. When the block chain is a federation chain, the node device may be a node device that is authenticated and then joins the block chain. For example, in a scenario of goods circulation management in a bonded area, if a certain node device needs to join the above-mentioned alliance chain, the node device needs to apply for the manager, and can join the node device after being authorized by the manager.
It should be noted that the present application does not limit the specific type of the block chain.
Intelligent contracts for generating blockchain digital identities may be deployed in the blockchain. The intelligent contracts may be pre-developed and deployed in blockchains by project operators (e.g., the managers described above) according to business.
The intelligent contract may include generation logic. The trusted unique blockchain digital identity can be generated in the blockchain through the generation logic, so that the process of digital identity generation can be traced and is not tampered. In some examples, the generating logic may gradually generate the unique digital identity according to a predetermined rule. For example, the predetermined rule may be to add one to the current digital identity as the next digital identity.
In some instances, more information may be carried in order to make the digital identity. The generation logic may be configured to preset an issuance rule of the digital identity. The issuance rule may include an article type, a block chain block height information, a time of generation of a digital identity, and the like. It should be noted that the above-mentioned issuing rules may also be other rules set according to actual requirements, and are not described in an exhaustive manner here.
After the digital identity is generated, the generated digital identity may be sent to a third-party trusted device so that the third-party trusted device further generates an electronic tag based on the generated blockchain digital identity. In some examples, the third-party trusted device may be a device used by an electronic tag manufacturer. In some examples, the electronic tag may be a contactless smart tag. For example, the electronic tag may be an RFID (Radio Frequency Identification) tag.
After the electronic tag is produced, the electronic tag can be bound with a target object to be managed. For example, the electronic tag may be attached to an outer package of the target article, or the electronic tag may be embedded in the target article. The binding is not limited herein.
When the electronic tag is generated, the digital identity generated in the block chain can be written into the electronic tag, so that the sensing device can recognize the corresponding digital identity through sensing the electronic tag. In some examples, The sensing device may be an IOT (The Internet of Things) device. The sensing devices can be pre-deployed in each circulation link of the article and used for sensing the electronic tags corresponding to the articles in each circulation link. After the sensing device senses the electronic tag, the sensing device may generate a circulation record of the article based on the digital identity information contained in the sensed electronic tag, or the sensing device may transmit the sensed digital identity information to the corresponding summarizing device so that the summarizing device generates the circulation record of the article based on the received digital identity information. The summarizing device is connected with the sensing devices and used for managing the sensing devices.
The circulation record is used for describing the circulation process of the target object. In some examples, the flow records may include flow records generated by sensing devices disposed at various flow transit points in a flow link of the target item within the bonded area.
In some examples, the circulation record may include a circulation segment of the target item path and time of day information of the path through the circulation segment. For example, in a view of goods circulation management in a bonded area, the sensing device a is deployed in a goods delivery link, and the electronic tag 1 is bound with the goods 1. At this time, after the sensing device a senses the electronic tag 1, the block chain digital identity information and the current time information in the electronic tag 1 may be sent to the summarizing device. After receiving the information sent by the device a, the summarizing device may determine a circulation link corresponding to the device a based on the maintained correspondence table between the sensing device and the circulation link. Then, according to the information sent by the device A, a circulation record of the article 1 leaving the warehouse in X years, X months, X days, X minutes and X seconds is generated.
Referring to fig. 2, fig. 2 is a method for storing circulation records of an article according to the present application.
As shown in fig. 2, the above-mentioned evidence storing method (hereinafter referred to as method) may include:
s202, receiving a certificate storage request aiming at the circulation record of the target object; wherein, the target object is bound with an electronic tag; the certificate storage request comprises: a circulation record generated based on the block chain digital identity of the target object sensed by the sensing equipment from the electronic tag bound with the target object; the blockchain digital identity comprises a digital identity generated by the smart contract.
The target object is specifically any object that needs to be managed. For example, in the bonded area goods circulation management scenario, the target goods include bonded goods in the bonded area. For example, the bonded goods include high-value bonded goods or art.
The target object may be pre-bound with an electronic tag. Namely, the target object corresponds to the electronic tag one by one. The digital identity information in the electronic label may uniquely indicate the target item. After the sensing equipment senses the electronic tag, the currently sensed object can be identified according to the digital identity information carried in the electronic tag.
The circulation record can be generated by sensing that the equipment senses the electronic tag, or generated by receiving digital identity information sent by a sensing equipment method by the summarizing equipment. For example, the sensing device may send the sensed digital identity information to a corresponding summarizing device so that the summarizing device generates a circulation record of the article based on the received digital identity information.
The certificate storage request can be initiated by the sensing device after sensing the electronic tag, or initiated by the summarizing device after receiving the digital identity information sent by the sensing device. For example, after receiving the digital identity information, the summarizing device may generate a circulation record in response to the digital identity information, and construct a card storage request based on the circulation record. The constructed credential storage request may then be sent to the node devices in the blockchain.
After receiving the presence request, the node device may execute step S204, and issue the correspondence between the circulation record and the block chain digital identity of the target item to the block chain for certificate storage in response to the certificate storage request.
In some examples, the node device may maintain a correspondence between the circulation record and a blockchain digital identity of the target item in response to the presence request. For example, the correspondence may be maintained in the form of a linked list. The blocks may then be packaged based on the maintained correspondence, and a deposit transaction may be constructed and issued. After the node devices in the blockchain reach consensus, the block can be issued to the blockchain, so that the correspondence between the circulation record and the blockchain digital identity of the target item is issued to the blockchain for storage.
In the above scheme, on one hand, the method binds an electronic tag to a target article, where the electronic tag may include a block chain digital identity generated by an intelligent contract, so that a circulation record of the target article may be formed for sensing information of the electronic tag by a sensing device when the target article passes through the sensing device, and trusted data is provided for implementing real-logistics trusted digital storage; on the other hand, after receiving the certificate storage request for the target article, the corresponding relation between the circulation record and the block chain digital identity of the target article can be issued to the block chain for certificate storage, so that the credible and digital certificate storage of the physical logistics is realized.
In some embodiments, the method for generating the blockchain digital identity may include executing generation logic in the smart contract to generate a plurality of blockchain digital identities in response to a smart contract invocation transaction sent by a manager of the target item, so that a third-party trusted device further generates the electronic tag based on the generated blockchain digital identities.
The management party can manage the circulation records of the target articles. For example, in the management scenario of commodity circulation in the bonded area, the management party may be a commodity monitoring party. It will be appreciated that the above-described managing party is typically a trusted party.
When the electronic tag needs to be produced, the management party can initiate an intelligent contract invoking transaction for digital identity generation based on an applet or a client provided by the blockchain. After receiving the call transaction, the node device may obtain the intelligent contract in response to the call transaction, and execute a generation logic in the intelligent contract through a virtual machine to generate a plurality of blockchain digital identities, so that a third-party trusted device further generates an electronic tag based on the generated blockchain digital identities.
In this example, since the block chain digital identity can be generated on the block chain through the intelligent contract, the generation process can be audited and traceable, thereby improving the credibility of the digital evidence storage of the physical logistics.
In some embodiments, in order to improve the credibility of the verification process, after receiving the intelligent contract invoking transaction sent by the administrator, the contract code corresponding to the generation logic in the intelligent contract may be executed in the trusted execution environment in response to the intelligent contract invoking transaction sent by the administrator of the target item, so as to generate a plurality of blockchain digital identities. Then, the generated block chain digital identities may be encrypted based on a preset encryption key, so that after the third-party trusted device decrypts the block chain digital identities based on a decryption key corresponding to the encryption key, an electronic tag is further generated based on the decrypted block chain digital identities.
In this example, since the generation of the digital identity can be completed in the trusted execution environment, the secrecy of the digital identity generation process can be increased, and the credibility of the real logistics digital certificate storage is further improved.
In some embodiments, in order to further increase the credibility of the crediting process, after receiving the intelligent contract invocation transaction, before generating the digital identity, it may be determined whether the received invocation transaction is initiated by the management party, and if so, the operation of generating the digital identity is performed. Otherwise, the generation of the digital identity is refused.
In this example, since it can be ensured that the intelligent contract invoking transaction is initiated by the management party, the credibility of the digital identity generation process can be ensured from the source, and further the credibility of the real logistics digital certificate storage is improved.
In some embodiments, to further increase the credibility of the credentialing process, the credentialing process may be implemented by an intelligent contract. In some examples, the intelligent contracts described above may also be used for the verification of circulation records. After receiving the evidence storing request, the node device may respond to the evidence storing request and call an evidence storing logic included in the intelligent contract to issue the correspondence between the circulation record and the block chain digital identity of the target item to the block chain for evidence storing.
In some examples, the node device may obtain the intelligent contract from a contract address corresponding to the intelligent contract, and then execute the presence logic of the intelligent contract in a virtual Environment (EVM) mounted by the node device to implement the evidence storing process.
In this example, since the verification process can be implemented by the intelligent contract, the verification logic code can be guaranteed to be auditable, traceable and not to be tampered, and the credibility of the real logistics digital verification is further improved.
In some embodiments, the blockchain digital identity is stored in a storage space corresponding to the intelligent contract in a blockchain book, and when the correspondence between the circulation record and the blockchain digital identity of the target item is issued to the blockchain for storage, a target blockchain digital identity corresponding to the circulation record may be determined from among a plurality of blockchain digital identities stored in the storage space, and the circulation record and the target blockchain digital identity are stored in the storage space in an associated manner.
In some examples, the storage space includes storage subspaces respectively corresponding to the generated block chain digital identities. When the circulation record and the target blockchain digital identity are stored in the storage space in an associated manner, the circulation record and the target blockchain digital identity may be stored in the storage space in an associated manner in a storage sub-space corresponding to the target blockchain digital identity.
In block chains, data is typically stored in the form of merkel (Merkle) trees or mpt (Merkle Patricia tree) trees. Taking the MPT tree as an example, after the blockchain digital identity is generated by the intelligent contract, a storage subspace of a preset size corresponding to the blockchain digital identity may be allocated in a storage space corresponding to the intelligent contract in the blockchain ledger. The storage subspace may then be assigned a number. The memory subspaces can then be linked into the MPT tree based on the numbers (the process of linking into the MPT tree can be referred to related art and is not described in detail here).
In this case, when the circulation record and the target blockchain digital identity are stored in the storage space in association with each other in the storage subspace corresponding to the target blockchain digital identity, a corresponding node may be found in the MPT tree according to a number corresponding to the storage subspace corresponding to the target blockchain digital identity. And then storing the storage record into the storage subspace to finish the associated storage.
In this example, since the storage sub-space may be allocated to the blockchain digital identity in advance, and the circulation record may be stored in the corresponding storage sub-space, the circulation record of the target item may be stored in a centralized manner, which facilitates the extraction of the subsequent circulation record.
In some examples, the circulation record includes timestamp information corresponding to a time when the sensing device senses the target item, and after the circulation record and the target blockchain digital identity are stored in the storage space in a storage sub-space corresponding to the target blockchain digital identity in an associated manner, it may be further determined whether the number of circulation records stored in the storage sub-space in association with the target blockchain digital identity exceeds a preset number. If so, organizing the circulation records into a circulation record data chain corresponding to the target object based on the time sequence indicated by the timestamp information in the circulation records.
The circulation record data chain is formed based on the time sequence indicated by the timestamp information in the circulation records, so that the circulation record data chain can record the circulation process of the target object according to the time sequence, and the circulation process of the target object is visually indicated.
In some examples, a linked list may be pre-allocated in the storage subspace. When the circulation record is stored, the circulation record can be stored according to the storage certificate sequence of the circulation record to form a circulation record data chain.
In order to enable the user to visually observe the circulation process of the object, in some examples, the circulation record data chain of the object may be constructed based on the stored correspondence relationship between the circulation record and the blockchain digital identity of the object. And then constructing a circulation process schematic diagram corresponding to the target object based on the circulation record data chain and displaying the circulation process schematic diagram to a user.
In some examples, all circulation records corresponding to the article may be sent to a management party, and the management party generates a flow record data chain based on the time sequence indicated by the timestamp information in the circulation records and outputs and displays the flow record data chain to a user.
In some examples, if the storage subspace is a circulation record stored in the form of a circulation record data chain, the circulation record data chain may be directly sent to a display device to show a circulation process represented by the circulation record data chain to a user. In some examples, the circulation process of the article may be displayed in a circulation path manner or a map manner when the circulation process of the article is displayed to the user.
In the above example, since the article circulation process can be visually displayed to the user, the article circulation management of the user can be facilitated, and the user experience is improved.
In some examples, the item circulation manager may be assisted in cross-checking the target item circulation record.
The cross check specifically refers to a check between a circulation record of the target item on the blockchain for storage of the certificate and a circulation record of the circulation document representation associated with the target item. The circulation document is a circulation document which is opened in the circulation process of the article. For example, when the target item is delivered from the warehouse, the warehouse-out personnel can open a circulation document for proving that the target item is delivered from the warehouse, and the circulation document is delivered to the management party for storage. In some examples, the circulation document may also be stored in the block chain (the specific storage process is not described in detail here).
When the manager needs to perform cross-checking on the target object, a cross-checking request may be initiated to the node device. The cross-check request may include a blockchain digital identity corresponding to the target item.
At this time, the node device may receive a cross-check request initiated by the administrator, and after receiving the request, obtain a circulation record corresponding to the target item in response to the cross-check request. For example, a circulation record associated with the blockchain digital identity of the target item may be obtained from the blockchain.
Then, the obtained circulation record may be sent to a manager of the target item, so that the manager may cross-check the circulation record of the target item on the blockchain and the circulation record represented by the circulation document associated with the target item based on the obtained circulation record.
For example, the manager may match a circulation link through which the target object passes and time information of passing through the circulation link, which are recorded in a circulation record represented by the circulation document, with the circulation link through which the target object passes and time information of passing through the circulation link, which are recorded in a circulation record of the block chain deposit document; if the two are matched, the cross check is passed; otherwise, the cross check is not passed.
In this example, after receiving the cross-check request from the management side, the flow record data required for cross-checking can be provided to the management side, so that the management side can be assisted in cross-checking.
In some examples, automatic cross-checking of items may be achieved through smart contracts. The intelligent contracts described above may be used for cross-checking.
The node equipment can periodically construct cross check transactions so as to periodically trigger the intelligent contract to complete automatic cross check.
After receiving the cross-check transaction for the target article, the node device may call, in response to the cross-check transaction, a check logic included in the intelligent contract, obtain a circulation receipt associated with the target article, and complete the cross-check based on a circulation record represented by the circulation receipt and a circulation record managed by the target article and stored in the block chain.
When the cross-checking is performed, the circulation link through which the target object passes and the time information of passing through the circulation link, which are recorded in the circulation record represented by the circulation document, can be matched with the circulation link through which the target object passes and the time information of passing through the circulation link, which are recorded in the circulation record of the block chain certificate; if the two are matched, the cross check is passed; the anti-regularization determination does not pass the cross-check described above.
In some examples, during the cross-validation, a circulation document uploading event may be initiated for a holder of the circulation document when the intelligent contract is run, so that the holder may upload the circulation document. After receiving the circulation document, the node device may analyze the circulation document to obtain a circulation link through which the target item represented by the circulation document passes and time information of passing through the circulation link. The node device may then complete the matching based on the parsed information.
In some examples, after the cross-checking is completed, the cross-checking result may be sent to the management party, so as to facilitate management of circulation of the article by the management party. In some examples, if the verification result is failed, the verified difference may be notified to the administrator in a form such as an alarm so that the administrator may directly take the next action with respect to the difference.
In the above example, the intelligent contract may automatically perform cross check, so as to help a management party to manage article circulation and improve the timeliness of circulation management.
In some examples, the intelligent contracts described above may also be used for inventory.
The node device may periodically establish an item inventory transaction to periodically trigger the intelligent contract to complete the item inventory.
After receiving the item inventory transaction for the target item, the node device may invoke inventory logic included in the intelligent contract in response to the item inventory transaction, and determine a target circulation link in which the target item is currently located based on a circulation record corresponding to the target item;
acquiring a block chain digital identity in the electronic tag sensed by sensing equipment deployed in the target circulation link at the current moment;
determining whether the acquired block chain digital identity comprises a target block chain digital identity bound by the target object; if yes, determining that the inventory is successful; it is determined that the inventory failed. In some examples, items that are not in the current due circulation link may be determined to be circulation-abnormal items.
In some examples, after the completion of the inventory of the article, the inventory result may be sent to the management party, so as to facilitate the management party to manage the circulation of the article. In some examples, if the checking result is failure, the node device may notify the management party of the circulation abnormal item in a form such as an alarm so that the management party may directly take the next action with respect to the circulation abnormal item.
In the above example, the intelligent contract may perform article checking, so as to help a management party to manage article circulation and improve the timeliness of circulation management.
The following description will be made by taking a scenario of managing distribution of goods in a bonded area as an example.
The article is an artwork as an example, the sensing device is an IOT device, the electronic tag is an RFID tag, and the third-party trusted device includes a device (hereinafter referred to as a tag device) used by an electronic tag manufacturer.
Referring to fig. 3, fig. 3 is a schematic view of a scene shown in the present application.
As shown in fig. 3, the block chain may include an administrator node device and a manager node device. The block chain can be pre-deployed with intelligent contracts used for block chain digital identity generation, circulation recording and storage, cross validation and article checking.
The administrator node device may be connected to a plurality of IOT devices deployed in each circulation link, so as to obtain digital identity information sensed by each IOT device. The administrator node device may construct a circulation record based on the acquired digital identity information, and call an intelligent contract to complete the storage of the circulation record.
The management side node equipment can call the intelligent contract to complete the tasks of block chain digital identity generation, circulation recording and storage, cross validation, article checking and the like.
Please refer to fig. 4, fig. 4 is a schematic diagram of a circulation link in a bonded area according to the present application.
As shown in fig. 4, the bonded area may include distribution links such as warehousing, delivery, hand-off, shelving, purchasing and inspection. Wherein. IOT equipment is deployed in each circulation link in advance. The warehousing link is provided with an IOT device A (hereinafter referred to as a device A), the ex-warehousing link is provided with an IOT device B (hereinafter referred to as a device B), and by analogy, the inspection link is provided with an IOT device F (hereinafter referred to as a device F).
Taking the artwork as an example, warehousing means storing the artwork into a warehouse. The binding of the RFID tag to the artwork is typically done prior to the artwork being placed in the bin.
And the step of taking out of the warehouse refers to taking the artwork out of the warehouse.
Hand-over refers to handing the artwork to a salesperson.
Putting on shelf means to put the artwork on a shelf.
The purchasing means that the buyer takes the artwork to a purchasing area for purchasing.
The checking means that the artwork is checked for purchase, and if the checking is successful, the circulation management of the artwork is ended.
Please refer to fig. 5, fig. 5 is a schematic diagram illustrating a certificate storing process according to the present application.
An administrator can initiate a block chain digital identity construction request through a client or a small program, an administrator node device can respond to the request to construct an intelligent contract calling transaction and call a generation logic of an intelligent contract, a step 51 is executed in a block chain, and a block chain digital identity corresponding to the artwork is generated in a trusted execution environment carried by the node device according to current time information, block height information and category information corresponding to the artwork. And then encrypting the generated digital identities of the block chains based on a preset encryption key.
And then, the administrator node device may divide a storage subspace of a preset size for the block chain digital identity in the storage space corresponding to the intelligent contract, so as to store the circulation record of the artwork.
After the blockchain digital identity is generated, step 52 may be performed to send the encrypted blockchain digital identity to a third-party trusted device corresponding to the tag manufacturer.
The third-party trusted device may perform step 53, and further generate an electronic tag based on the decrypted plurality of blockchain digital identities after decrypting the plurality of blockchain digital identities based on the decryption key corresponding to the encryption key.
Before the artwork is stored in the bonded box, step 54 may be performed, in which the worker attaches the produced electronic tag to the package of the artwork to complete the binding of the electronic tag (i.e., the blockchain digital identity) to the artwork.
And after binding is completed, the evidence of the circulation record can be stored in the block chain when the artwork circulates in the bonded area.
After binding is completed, the artwork can enter a bonded bin for storage through the warehousing link shown in fig. 4. In the above process, the apparatus a deployed in the warehousing may perform step 55 to sense the digital identity of the blockchain in the electronic tag bound to the artwork.
Device a may then send the above-mentioned information regarding the digital identity and the current time of day (hereinafter referred to as sensed information) to the summarizing device.
The summarizing device may execute step 56, after responding to the sensing information, query a circulation link where the device a is located, and then generate a circulation record corresponding to the artwork according to the circulation link where the device a is located and time information of the artwork passing through the circulation link.
The summarizing device may then perform step 57 to construct an intelligent contract invocation transaction and invoke the evidence storage logic of the intelligent contract to store the circulation record in the storage subspace allocated for the blockchain digital identity of the artwork. In this example, the circulation record data chain of the work of art may be stored in the storage subspace in a chain according to the time information carried in the circulation record, that is, in the storage subspace.
Thus, the flow of uploading the circulation records in the warehousing link is completed. It can be understood that the circulation records corresponding to the artwork can be stored in other circulation links of the artwork.
In the above scheme, on one hand, the method binds an electronic tag to a target article, where the electronic tag may include a block chain digital identity generated by an intelligent contract, so that a circulation record of the target article may be formed for sensing information of the electronic tag by a sensing device when the target article passes through the sensing device, and trusted data is provided for implementing real-logistics trusted digital storage; on the other hand, after receiving the certificate storage request for the target article, the corresponding relation between the circulation record and the block chain digital identity of the target article can be issued to the block chain for certificate storage, so that the credible and digital certificate storage of the physical logistics is realized.
The node device may generate a flow path diagram corresponding to the work of art based on the flow record data link of the work of art, and display the flow path diagram to a management side through a display device. The flow path diagram can represent when and what flow path the artwork is routed through. Therefore, the management party can conveniently carry out article circulation management, and experience of the management party is improved.
In practical situations, it is common to have a circulation document associated with the artwork after it has traveled through a certain circulation link. For example, when the works of art are put into a warehouse, the warehouse has a warehousing document opened by a warehousing personnel. Therefore, it is common for the art to have a circulation document associated with it to record the circulation of the art. The circulation documents are generally collected to the article circulation record management party for centralized storage.
Generally, an article circulation record manager needs to perform cross check between circulation records of the target article certified on the blockchain and circulation records of circulation documents associated with the target article.
At this time, the management party can initiate a cross check request through the client or the applet, and the management party node device can respond to the request, construct an intelligent contract call transaction, and call a check logic of the intelligent contract.
In the process of executing the verification logic, the node device may construct a circulation document uploading event for the manager, and send the event to the manager so that the manager uploads the circulation document for the artwork.
After receiving the circulation document, the node device may analyze the circulation document to obtain a circulation link through which the target item represented by the circulation document passes and time information of passing through the circulation link. Then, the node device may match a circulation link through which the target object passes and time information of passing through the circulation link, which are recorded in a circulation record represented by the circulation document, with the circulation link through which the target object passes and the time information of passing through the circulation link, which are recorded in a circulation record of the block chain deposit document; if the two are matched, the cross check is passed; the anti-regularization determination does not pass the cross-check described above.
If the verification result is not passed, the verified difference can be notified to the manager in a form of alarm, so that the manager can directly take the next action for the difference. Therefore, the intelligent contract can automatically execute cross check, so that a management party is helped to realize management of article circulation, and the timeliness of circulation management is improved.
In practical application, the management party has an item inventory requirement. For example, when the artwork is on a shelf link, the manager can judge whether the artwork is on the shelf every day.
The management node device can periodically construct an item inventory transaction to periodically trigger the intelligent contract to complete the item inventory.
If the checking result is failure, the node device may notify the abnormal circulation object to the manager in a form such as an alarm so that the manager may directly perform the next action with respect to the abnormal circulation object. Therefore, the intelligent contracts can perform article checking, so that management of article circulation is realized by a management party, and the timeliness of circulation management is improved.
Corresponding to any embodiment, the application also provides a device for storing the article circulation records. The device is applied to block chain link point equipment, and intelligent contracts used for generating block chain digital identities are deployed in the block chains.
Referring to fig. 6, fig. 6 is a schematic structural view of a storage device for article circulation records according to the present application.
As shown in fig. 6, the apparatus 60 includes:
a receiving module 61, which receives a certificate storage request of circulation records of the target object; wherein, the target object is bound with an electronic tag; the certificate storage request comprises: a circulation record generated based on the block chain digital identity of the target object sensed by the sensing equipment from the electronic tag bound with the target object; the blockchain digital identity comprises a digital identity generated by the intelligent contract;
and the card storage module 62 responds to the card storage request, and issues the correspondence between the circulation record and the block chain digital identity of the target article to the block chain for card storage.
In some of the illustrated embodiments, the apparatus 60 further comprises:
the generating module 63, in response to the intelligent contract invoking transaction sent by the administrator of the target item, executes the generating logic in the intelligent contract to generate a plurality of blockchain digital identities, so that the third-party trusted device further generates an electronic tag based on the generated blockchain digital identities.
In some embodiments shown, the node device is hosted by a trusted execution environment;
the generating module 63 includes:
responding to an intelligent contract call transaction sent by a target article manager, executing contract codes corresponding to generation logics in the intelligent contract in the trusted execution environment, generating a plurality of block chain digital identities, and encrypting the generated block chain digital identities based on a preset encryption key, so that after a third-party trusted device decrypts the block chain digital identities based on a decryption key corresponding to the encryption key, an electronic tag is further generated based on the decrypted block chain digital identities.
In some embodiments shown, the intelligent contracts are also used for the verification of circulation records; the certificate storage module 62 includes:
and responding to the certificate storage request, and calling the certificate storage logic included by the intelligent contract so as to issue the corresponding relation between the circulation record and the block chain digital identity of the target article to the block chain for certificate storage.
In some embodiments shown, the blockchain digital identity is stored in a storage space in the blockchain ledger corresponding to the intelligent contract;
the certificate storage module 62 includes:
and determining a target block chain digital identity corresponding to the circulation record from a plurality of block chain digital identities stored in the storage space, and storing the circulation record and the target block chain digital identity in the storage space in an associated manner.
In some embodiments shown, the storage space includes storage subspaces respectively corresponding to the generated plurality of blockchain digital identities;
the certificate storage module 62 includes:
and storing the circulation record and the target block chain digital identity in the storage space and in a storage subspace corresponding to the target block chain digital identity in an associated manner.
In some illustrative embodiments, the flow record includes time stamp information corresponding to the time the sensing device sensed the target item; the above apparatus 60 further comprises:
and the organizing module is used for organizing the circulation records into a circulation record data chain corresponding to the target object based on the time sequence indicated by the timestamp information in the circulation records if the circulation records are stored in the storage subspace in association with the target block chain digital identity.
In some of the illustrated embodiments, the apparatus 60 further comprises:
the display module is used for constructing a circulation record data chain of the target object based on the stored corresponding relation between the circulation record and the block chain digital identity of the target object;
and constructing a circulation process schematic diagram corresponding to the target object based on the circulation record data chain and displaying the circulation process schematic diagram to a user.
In some of the illustrated embodiments, the apparatus 60 further comprises:
the first cross validation module receives a cross check request initiated by a manager of a target object;
responding to the cross checking request, and acquiring a circulation record corresponding to the target object;
and sending the acquired circulation record to a management party of the target article, so that the management party performs cross check on the circulation record of the target article on the block chain certificate and the circulation record of the circulation document characterization associated with the target article based on the acquired circulation record.
In some of the illustrated embodiments, the intelligent contracts described above are used to perform cross-checking; the above apparatus 60 further comprises:
the second cross validation module receives a cross check transaction aiming at the target object; wherein the cross check comprises a check between a circulation record of the target item on the block chain for storage and a circulation record represented by a circulation document associated with the target item;
and responding to the cross-checking transaction, calling a checking logic included in the intelligent contract, acquiring a circulation document associated with the target article, and finishing the cross-checking based on a circulation record represented by the circulation document and a circulation record managed by the target article and stored in the block chain.
In some illustrated embodiments, the circulation record represented by the circulation document and the circulation record of the block chain deposit document both include a circulation link through which the target item passes and time information of passing through the circulation link;
the second cross validation module includes:
matching the circulation link and the time information of the circulation link passed by the target object, which are recorded by the circulation record represented by the circulation document, with the circulation link and the time information of the circulation link passed by the target object, which are recorded by the circulation record of the block chain deposit document;
if the two match, the cross-check is passed.
In some illustrated embodiments, the intelligent contracts are used to perform inventory; the above apparatus 60 further comprises:
an inventory module that receives an item inventory transaction for the target item;
and in response to the article checking transaction, calling checking logic included in the intelligent contract to determine a target circulation link in which the target article is currently located based on a circulation record corresponding to the target article, acquiring a block chain digital identity in the electronic tag, which is sensed by sensing equipment deployed in the target circulation link at the current moment, and determining that checking is successful when the acquired block chain digital identity includes a target block chain digital identity bound to the target article.
In some illustrative embodiments, the target item comprises bonded goods within a bonded area; and/or, the bonded goods comprise high-value bonded goods or artwork.
In some illustrative embodiments, the sensing device comprises an IOT device; and/or, the electronic tag comprises an RFID tag.
The embodiment of the evidence storing device for the circulation records of the target object, which is shown in the application, can be applied to electronic equipment. Accordingly, the present application discloses an electronic device, where the electronic device is deployed in a blockchain, and an intelligent contract for generating a blockchain digital identity is deployed in the blockchain, and the electronic device may include: a processor.
A memory for storing processor-executable instructions.
The processor is configured to call the executable instructions stored in the memory to implement the evidence storing method of the circulation record of the target item as shown in any one of the embodiments.
Referring to fig. 7, fig. 7 is a schematic diagram of a hardware structure of an electronic device shown in the present application.
As shown in fig. 7, the electronic device may include a processor for executing instructions, a network interface for performing network connection, a memory for storing operation data for the processor, and a nonvolatile memory for storing instructions corresponding to the storage device.
The embodiment of the evidence storing device can be implemented by software, or by hardware or a combination of hardware and software. Taking a software implementation as an example, as a logical device, the device is formed by reading, by a processor of the electronic device where the device is located, a corresponding computer program instruction in the nonvolatile memory into the memory for operation. In terms of hardware, in addition to the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 7, the electronic device in which the apparatus is located in the embodiment may also include other hardware according to the actual function of the electronic device, which is not described again.
It is understood that, in order to increase the processing speed, the corresponding instruction of the evidence storing device may also be directly stored in the memory, which is not limited herein.
The present application provides a computer-readable storage medium, which is applied to a node device in a blockchain, where an intelligent contract for generating a blockchain digital identity is deployed in the blockchain, and the storage medium stores a computer program, where the computer program is configured to execute the method for storing a circulation record of a target item shown in any of the above embodiments.
One skilled in the art will recognize that one or more embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present application may take the form of a computer program product (which may include, but is not limited to, disk storage, CD-ROM, optical storage, and the like) embodied as described above in one or more computer-usable storage media having computer-usable program code embodied therein.
"and/or" in this application means having at least one of the two, for example, "a and/or B" may include three schemes: A. b, and "A and B".
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the data processing apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to part of the description of the method embodiment.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the acts or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Embodiments of the subject matter and functional operations described in this application may be implemented in the following: digital electronic circuitry, tangibly embodied computer software or firmware, computer hardware that may include the structures disclosed in this application and their structural equivalents, or combinations of one or more of them. Embodiments of the subject matter described in this application can be implemented as one or more computer programs, i.e., one or more modules encoded in tangible, non-transitory program carriers that execute on or control the operation of data processing apparatus. Alternatively or additionally, the program instructions may be encoded in an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus for execution by the data processing apparatus. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
The processes and logic flows described in this application can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output. The processes and logic flows described above can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit).
Computers suitable for executing computer programs may include, for example, general and/or special purpose microprocessors, or any other type of central processing unit. Generally, a central processing unit will receive instructions and data from a read-only memory and/or a random access memory. The basic components of a computer may include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks. However, a computer does not necessarily have such a device. Moreover, a computer may be embedded in another device, e.g., a mobile telephone, a Personal Digital Assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device such as a Universal Serial Bus (USB) flash drive, to name a few.
Computer-readable media suitable for storing computer program instructions and data can include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disk or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
Although this application contains many specific implementation details, these should not be construed as limiting the scope of any disclosure or of what may be claimed, but rather as merely describing features of particular disclosed embodiments. Certain features that are described in this application in the context of separate embodiments can also be implemented in combination in a single embodiment. In other instances, features described in connection with one embodiment may be implemented as discrete components or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Further, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous.
While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.

Claims (16)

1. A method for storing evidence of goods circulation records is applied to node equipment in a block chain, and intelligent contracts used for generating block chain digital identities are deployed in the block chain; the method comprises the following steps:
receiving a certificate storage request aiming at the circulation record of the target object; wherein the target item comprises bonded goods within a bonded area; the target object is bound with an electronic tag; the certificate storage request comprises: sensing the block chain digital identity of the target object from the electronic tag bound to the target object based on sensing equipment of each circulation link pre-deployed in a bonded area, and generating circulation records of the circulation link where the sensing equipment is located; the blockchain digital identity comprises a digital identity generated by the smart contract; the electronic tag comprises an electronic tag which is further generated by a third-party trusted device based on the generated blockchain digital identity;
responding to the certificate storage request, and issuing the corresponding relation between the circulation record and the block chain digital identity of the target article to the block chain for certificate storage;
receiving a cross-check transaction for the target item; wherein the cross-checking comprises checking between a circulation record of the target item on the block chain for storage of the certificate and a circulation record of a circulation document representation associated with the target item;
and responding to the cross-checking transaction, calling a checking logic included in the intelligent contract, acquiring a circulation document associated with the target article, and finishing the cross-checking based on a circulation record represented by the circulation document and a circulation record managed by the target article and stored in the block chain.
2. The method of claim 1, further comprising:
and responding to a smart contract call transaction sent by a manager of the target item, executing generation logic in the smart contract, and generating a plurality of blockchain digital identities so that a third-party trusted device further generates an electronic tag based on the generated blockchain digital identities.
3. The method of claim 2, the node device hosting a trusted execution environment;
the generating logic in the intelligent contract is executed in response to the intelligent contract invoking transaction sent by the manager of the target article, and a plurality of blockchain digital identities are generated, so that the third-party trusted device further generates the electronic tag based on the generated blockchain digital identities, and the method comprises the following steps:
responding to an intelligent contract call transaction sent by a target article manager, executing contract codes corresponding to generation logics in the intelligent contract in the trusted execution environment, generating a plurality of block chain digital identities, and encrypting the generated block chain digital identities based on a preset encryption key, so that after a third-party trusted device decrypts the block chain digital identities based on a decryption key corresponding to the encryption key, an electronic tag is further generated based on the decrypted block chain digital identities.
4. The method of claim 1, the smart contract further for the credentialing of circulation records;
the issuing, in response to the card storage request, the correspondence between the circulation record and the block chain digital identity of the target item to the block chain for card storage includes:
and responding to the evidence storing request, and calling evidence storing logic included by the intelligent contract to issue the corresponding relation between the circulation record and the block chain digital identity of the target article to the block chain for evidence storing.
5. The method of claim 4, the blockchain digital identity stored in a memory space in a blockchain ledger that corresponds to the intelligent contract;
the issuing the corresponding relation between the circulation record and the block chain digital identity of the target article to the block chain for storing the certificate comprises:
and determining a target block chain digital identity corresponding to the circulation record from a plurality of block chain digital identities stored in the storage space, and storing the circulation record and the target block chain digital identity in the storage space in an associated manner.
6. The method of claim 5, the storage space comprising storage subspaces respectively corresponding to the generated blockchain digital identities;
the associating and storing the circulation record and the target blockchain digital identity in the storage space comprises:
and storing the circulation record and the target block chain digital identity in the storage space and in a storage subspace corresponding to the target block chain digital identity in an associated manner.
7. The method of claim 6, wherein the flow record includes timestamp information corresponding to a time at which the sensing device sensed the target item;
after the circulation record and the target blockchain digital identity are stored in the storage space and in a storage subspace corresponding to the target blockchain digital identity in an associated manner, the method further includes:
and if a plurality of circulation records are stored in the storage subspace and are associated with the target block chain digital identity, organizing the plurality of circulation records into a circulation record data chain corresponding to the target article based on the time sequence indicated by the timestamp information in the plurality of circulation records.
8. The method of claim 1, further comprising:
constructing a circulation record data chain of the target object based on the stored correspondence between the circulation record and the block chain digital identity of the target object;
and constructing a circulation process schematic diagram corresponding to the target article based on the circulation record data chain and displaying the circulation process schematic diagram to a user.
9. The method of claim 1, further comprising:
receiving a cross check request initiated by a manager of a target object;
responding to the cross checking request, and acquiring a circulation record corresponding to the target article;
and sending the acquired circulation record to a manager of the target article, so that the manager performs cross check on the circulation record of the target article on the block chain certificate and the circulation record represented by the circulation bill associated with the target article based on the acquired circulation record.
10. The method according to claim 1, wherein the circulation record represented by the circulation document and the circulation record of the block chain deposit document both include a circulation link through which the target item passes and time information of passing through the circulation link;
the completing the cross check based on the circulation record represented by the circulation document and the circulation record of the target article management stored in the block chain includes:
matching the circulation link passed by the target object and the time information passed by the circulation link, which are recorded by the circulation record represented by the circulation document, with the circulation link passed by the target object and the time information passed by the circulation link, which are recorded by the circulation record of the block chain deposit document;
and if the two are matched, the cross check is passed.
11. The method of claim 1, the smart contract being for conducting an inventory of items; the method further comprises the following steps:
receiving an item inventory transaction for the target item;
and responding to the article checking transaction, calling checking logic included in the intelligent contract, determining a target circulation link where the target article is located at present based on a circulation record corresponding to the target article, acquiring a block chain digital identity in an electronic tag sensed by sensing equipment deployed in the target circulation link at the present moment, and determining that checking is successful when the acquired block chain digital identity includes the target block chain digital identity bound to the target article.
12. The method of any one of claims 1 to 11, wherein the bonded goods comprise high value bonded goods or artwork.
13. The method of claim 1, the sensing device comprising an IOT device; and/or, the electronic tag comprises an RFID tag.
14. A evidence storage device for goods circulation records is applied to node equipment in a block chain, and intelligent contracts used for generating block chain digital identities are deployed in the block chain; the device comprises:
the receiving module is used for receiving a certificate storage request aiming at the circulation record of the target object; wherein the target item comprises bonded goods within a bonded area; the target object is bound with an electronic tag; the certificate storage request comprises: sensing the block chain digital identity of the target object from the electronic tag bound to the target object based on sensing equipment of each circulation link pre-deployed in a bonded area, and generating circulation records of the circulation link where the sensing equipment is located; the blockchain digital identity comprises a digital identity generated by the smart contract; the electronic tag comprises an electronic tag which is further generated by a third-party trusted device based on the generated blockchain digital identity;
the certificate storage module responds to the certificate storage request and issues the corresponding relation between the circulation record and the block chain digital identity of the target article to the block chain for certificate storage;
a second cross-validation module to receive a cross-check transaction for the target item; wherein the cross-checking comprises checking between a circulation record of the target item on the block chain for storage of the certificate and a circulation record of a circulation document representation associated with the target item;
and responding to the cross-checking transaction, calling a checking logic included in the intelligent contract, acquiring a circulation document associated with the target article, and finishing the cross-checking based on a circulation record represented by the circulation document and a circulation record managed by the target article and stored in the block chain.
15. An electronic device deployed in a blockchain in which smart contracts for generating blockchain digital identities are deployed, the electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements, by executing the executable instructions:
receiving a certificate storage request aiming at the circulation record of the target object; wherein the target item comprises bonded goods within a bonded area; the target object is bound with an electronic tag; the certificate storage request comprises: sensing the block chain digital identity of the target object from the electronic tag bound to the target object based on sensing equipment of each circulation link pre-deployed in a bonded area, and generating circulation records of the circulation link where the sensing equipment is located; the blockchain digital identity comprises a digital identity generated by the smart contract; the electronic tag comprises an electronic tag which is further generated by a third-party trusted device based on the generated blockchain digital identity;
responding to the certificate storage request, and issuing the corresponding relation between the circulation record and the block chain digital identity of the target article to the block chain for certificate storage;
receiving a cross-check transaction for the target item; wherein the cross-checking comprises checking between a circulation record of the target item on the block chain for storage of the certificate and a circulation record of a circulation document representation associated with the target item;
and responding to the cross-checking transaction, calling a checking logic included in the intelligent contract, acquiring a circulation document associated with the target article, and finishing the cross-checking based on a circulation record represented by the circulation document and a circulation record managed by the target article and stored in the block chain.
16. A computer-readable storage medium for use with a node device in a blockchain in which intelligent contracts are deployed for generating blockchain digital identities, the storage medium storing a computer program for performing:
receiving a certificate storage request aiming at the circulation record of the target object; wherein the target item comprises bonded goods within a bonded area; the target object is bound with an electronic tag; the certificate storage request comprises: sensing the block chain digital identity of the target object from the electronic tag bound to the target object based on sensing equipment of each circulation link pre-deployed in a bonded area, and generating circulation records of the circulation link where the sensing equipment is located; the blockchain digital identity comprises a digital identity generated by the smart contract; the electronic tag comprises an electronic tag which is further generated by a third-party trusted device based on the generated blockchain digital identity;
responding to the certificate storage request, and issuing the corresponding relation between the circulation record and the block chain digital identity of the target article to the block chain for certificate storage;
receiving a cross-check transaction for the target item; wherein the cross-checking comprises checking between a circulation record of the target item on the block chain for storage of the certificate and a circulation record of a circulation document representation associated with the target item;
and responding to the cross-checking transaction, calling a checking logic included in the intelligent contract, acquiring a circulation document associated with the target article, and finishing the cross-checking based on a circulation record represented by the circulation document and a circulation record managed by the target article and stored in the block chain.
CN202011378949.7A 2020-12-01 2020-12-01 Method, device, equipment and storage medium for storing article circulation records Active CN112199446B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011378949.7A CN112199446B (en) 2020-12-01 2020-12-01 Method, device, equipment and storage medium for storing article circulation records
CN202110826740.0A CN113612741B (en) 2020-12-01 2020-12-01 Method, device, equipment and storage medium for storing certificate of article circulation record

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011378949.7A CN112199446B (en) 2020-12-01 2020-12-01 Method, device, equipment and storage medium for storing article circulation records

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110826740.0A Division CN113612741B (en) 2020-12-01 2020-12-01 Method, device, equipment and storage medium for storing certificate of article circulation record

Publications (2)

Publication Number Publication Date
CN112199446A CN112199446A (en) 2021-01-08
CN112199446B true CN112199446B (en) 2021-05-28

Family

ID=74033710

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202011378949.7A Active CN112199446B (en) 2020-12-01 2020-12-01 Method, device, equipment and storage medium for storing article circulation records
CN202110826740.0A Active CN113612741B (en) 2020-12-01 2020-12-01 Method, device, equipment and storage medium for storing certificate of article circulation record

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202110826740.0A Active CN113612741B (en) 2020-12-01 2020-12-01 Method, device, equipment and storage medium for storing certificate of article circulation record

Country Status (1)

Country Link
CN (2) CN112199446B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113327165A (en) 2021-06-07 2021-08-31 支付宝(杭州)信息技术有限公司 Transaction method based on block chain
CN113627959B (en) * 2021-09-29 2022-08-19 支付宝(杭州)信息技术有限公司 Method and device for generating digital identity of geographic marking product
CN114202325B (en) * 2021-12-16 2023-06-06 北京天德科技有限公司 NFR issuing intelligent contract and operation method thereof

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110766550A (en) * 2019-09-05 2020-02-07 阿里巴巴集团控股有限公司 Asset query method and device based on block chain and electronic equipment

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3324355B1 (en) * 2015-07-13 2020-08-26 Nippon Telegraph and Telephone Corporation Contract agreement method, agreement verification method, contract agreement system, agreement verification device, contract agreement device, contract agreement program and agreement verification program
CN109003093A (en) * 2017-11-24 2018-12-14 北京京东尚科信息技术有限公司 The method, apparatus and system traced to the source for commodity
CN108876380B (en) * 2018-08-07 2021-03-23 创新先进技术有限公司 Transaction method and system based on centralized settlement and block chain deposit certificate
CN109615383B (en) * 2018-10-26 2021-03-16 创新先进技术有限公司 Data storage and acquisition method and device based on block chain
CN109377228A (en) * 2018-11-21 2019-02-22 北京小米移动软件有限公司 A kind of commodity circulation information based on block chain deposits card method and system
US11861544B2 (en) * 2018-12-21 2024-01-02 Motogo, Llc System and method for conditional delivery of a transport container
CN109981673B (en) * 2019-04-04 2021-10-08 上海人行道网络信息技术有限公司 Block chain-based data evidence storage method, device, equipment and storage medium
CN110097376A (en) * 2019-04-12 2019-08-06 阿里巴巴集团控股有限公司 Commodity source tracing method, device, equipment and storage medium
CN110163753A (en) * 2019-04-23 2019-08-23 阿里巴巴集团控股有限公司 Houseclearing based on block chain deposits card, application method and device
CN110443612B (en) * 2019-07-31 2020-12-22 创新先进技术有限公司 Block chain-based reimbursement expense segmentation method and device and electronic equipment
CN110796449B (en) * 2019-10-28 2023-01-20 网易(杭州)网络有限公司 Transaction processing method, system, medium and computing device
CN111506652B (en) * 2020-04-15 2021-07-23 支付宝(杭州)信息技术有限公司 Traffic accident handling method and device based on block chain and electronic equipment
CN111626733A (en) * 2020-05-21 2020-09-04 链博(成都)科技有限公司 Supply chain financial service system based on block chain
CN111641631B (en) * 2020-05-28 2022-07-12 深圳壹账通智能科技有限公司 Bin bill verification method and system based on block chain bin bill platform
CN111935075A (en) * 2020-06-23 2020-11-13 浪潮云信息技术股份公司 Block chain-based digital identity signing and issuing method, equipment and medium
CN111475521A (en) * 2020-06-24 2020-07-31 支付宝(杭州)信息技术有限公司 Cargo management method and device based on block chain and electronic equipment
CN111985007A (en) * 2020-10-19 2020-11-24 支付宝(杭州)信息技术有限公司 Contract signing and executing method and device based on block chain

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110766550A (en) * 2019-09-05 2020-02-07 阿里巴巴集团控股有限公司 Asset query method and device based on block chain and electronic equipment

Also Published As

Publication number Publication date
CN113612741B (en) 2023-08-08
CN112199446A (en) 2021-01-08
CN113612741A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
CN112199446B (en) Method, device, equipment and storage medium for storing article circulation records
CN111681017B (en) Goods batch true checking method and device based on block chain and electronic equipment
CN111914023B (en) Bill management method and device based on blockchain and electronic equipment
CN111026789B (en) Block chain-based electronic bill query method and device and electronic equipment
CN111539731A (en) Block chain-based federal learning method and device and electronic equipment
CN112200571B (en) Resource distribution method and device based on block chain and electronic equipment
CN110458631B (en) Bill number distribution method and device based on block chain and electronic equipment
CN112101938B (en) Digital seal using method and device based on block chain and electronic equipment
CN112200567B (en) Resource management method and device based on block chain and electronic equipment
CN112200569B (en) Digital seal using method and device based on block chain and electronic equipment
CN111475521A (en) Cargo management method and device based on block chain and electronic equipment
CN111818095B (en) Tax refunding method and device based on block chain and electronic equipment
CN112200568B (en) Block chain based account creation method and device and electronic equipment
CN112766854B (en) Block chain-based digital commodity transaction method and device
CN113221191B (en) Block chain-based data evidence storage method, device, equipment and storage medium
CN112767163A (en) Block chain-based digital commodity transaction method and device
CN112200572A (en) Resource distribution method and device based on block chain and electronic equipment
CN112883109A (en) Block chain-based digital commodity transaction method and device
CN110443612B (en) Block chain-based reimbursement expense segmentation method and device and electronic equipment
CN110070365B (en) Commodity evidence storing method and device based on block chain and electronic equipment
CN113849191B (en) Intelligent contract deployment method, system, device and storage medium
CN113536384B (en) Block chain-based private data mapping method, block chain-based private data mapping device, block chain-based private data mapping medium and electronic equipment
CN117957528A (en) Method and system for parallel processing of intelligent contracts in licensed blockchain
CN114925405A (en) Block chain-based digital seal verification method and device and electronic equipment
CN115203747A (en) Data account creation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40044686

Country of ref document: HK