Digital collection information processing method and system and storage medium
By generating transactions on the blockchain application server, the digital collection server uploads the transaction to the chain, and uses the off-chain data acquisition node to obtain consensus data to update the metadata of the digital collection, solving the problem of updating data sources outside the blockchain and realizing Ensure timely updating and accuracy of digital collection information.
Patent Information
- Application Number
- CN202310334630.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-09-24
AI Technical Summary
Existing technology cannot update the metadata of digital collections through data sources other than the blockchain, resulting in the inability of digital collection information to reflect changes in the status of the subject matter in a timely manner.
A new transaction of metadata is generated through the blockchain application server, and the digital collection server performs the transaction on-chain. The digital collection contract server sends a request to the off-chain data acquisition node, and the off-chain data acquisition node calls the off-chain data source to obtain the data and perform consensus. The consensus data is added to the metadata of the digital collection, and the updated results are sent to the blockchain application server.
It realizes the update of digital collection metadata through data sources outside the blockchain, ensuring the accuracy and credibility of digital collection information, expanding the business scenarios of digital collections, and meeting user needs.
Smart Images

Figure CN118691271A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a method, system and storage medium for processing digital collection information. Background Art
[0002] At present, with the widespread deployment of various decentralized applications on the blockchain and the increasing activities of off-chain users on the blockchain, digital collections are widely used on the blockchain. Digital collections refer to unique digital certificates generated using blockchain technology for specific works and artworks. Each digital collection has a unique subject matter, such as digital artworks, special game items, rare card collections, or any other unique digital or physical resources.
[0003] In the related art, a digital collection will have corresponding metadata, which can be used to describe the information of the subject matter corresponding to the digital collection. However, in actual use, the relevant information of the subject matter may change with the change of its state. Therefore, when the relevant information of the subject matter corresponding to the digital collection changes, the metadata of the digital collection should also change accordingly. However, when the relevant information of the change in the subject matter comes from a data source outside the blockchain, the solution in the related art cannot update the metadata of the corresponding digital collection through the data source outside the blockchain. Therefore, how to update the metadata of the corresponding digital collection through a data source outside the blockchain is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0005] Embodiments of the present invention provide a method, system and storage medium for processing digital collection information, which can update the metadata of digital collections through data sources other than blockchain.
[0006] In one aspect, an embodiment of the present invention provides a method for processing digital collection information, comprising the following steps:
[0007] When a trigger event for updating the metadata of a digital collection is detected, the blockchain application server generates a metadata addition transaction for the digital collection and sends the metadata addition transaction to the digital collection server;
[0008] The digital collection server uploads the metadata newly added transaction to the chain;
[0009] The digital collection contract server adds a new transaction based on the metadata after the transaction is uploaded to the chain, and sends an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server;
[0010] The multiple off-chain data acquisition nodes call the off-chain data source server to acquire the off-chain data according to the off-chain data request event, and reach a consensus on the off-chain data. When a consensus on the off-chain data is reached, each of the off-chain data acquisition nodes sends the off-chain data to the digital collection contract server through the off-chain data acquisition contract server;
[0011] The digital collection contract server adds the off-chain data to the metadata of the digital collection, obtains the transaction result of the metadata new addition transaction, and sends the transaction result to the digital collection server;
[0012] The digital collection server obtains an update result of the metadata of the digital collection according to the transaction result, and sends the update result to the blockchain application server.
[0013] On the other hand, an embodiment of the present invention further provides a digital collection information processing system, including a blockchain application server, a digital collection server, a digital collection contract server, an off-chain data acquisition contract server, and a plurality of off-chain data acquisition nodes;
[0014] The blockchain application server is used to generate a metadata new transaction for the digital collection when a triggering event for updating the metadata of the digital collection is detected, and send the metadata new transaction to the digital collection server;
[0015] The digital collection server is used to upload the metadata new transaction to the blockchain;
[0016] The digital collection contract server is used to send an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server according to the metadata newly added transaction after the transaction is on-chain;
[0017] The off-chain data acquisition node is used to call the off-chain data source server to obtain the off-chain data according to the off-chain data request event, and reach a consensus on the off-chain data. When a consensus on the off-chain data is reached, the off-chain data is sent to the digital collection contract server through the off-chain data acquisition contract server;
[0018] The digital collection contract server is further used to add the off-chain data to the metadata of the digital collection, obtain the transaction result of the metadata new addition transaction, and send the transaction result to the digital collection server;
[0019] The digital collection server is further used to obtain an update result of the metadata of the digital collection according to the transaction result, and send the update result to the blockchain application server.
[0020] Optionally, the off-chain data acquisition node is further used to:
[0021] Parsing the off-chain data request event to obtain the off-chain request data type;
[0022] According to the off-chain request data type, an off-chain data source server is called to obtain off-chain data.
[0023] Optionally, the off-chain data acquisition node is further used to send the off-chain data to the off-chain data acquisition contract server;
[0024] The off-chain data acquisition contract server is also used to aggregate all the off-chain data to obtain aggregated off-chain data, and send the aggregated off-chain data to the digital collection contract server.
[0025] Optionally, the digital collection contract server is further used to:
[0026] Verifying the address of the blockchain application server and the owner information of the digital collection;
[0027] When the address of the blockchain application server is verified and the ownership information of the digital collection is verified, a new transaction is added based on the metadata after the transaction is uploaded to the chain, and an off-chain data request event is issued to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server.
[0028] Optionally, the digital collection contract server is further used to:
[0029] Obtaining the server address of the blockchain application server and the issuer address of the digital collection;
[0030] When the server address and the issuer address are consistent, it is determined that the address verification of the blockchain application server has passed.
[0031] Optionally, the digital collection contract server is further used to:
[0032] Obtaining the owner address of the digital collection stored in the blockchain application server;
[0033] Acquire the owner information of the digital collection, and verify whether the owner information includes the owner address;
[0034] When it is determined that the owner information includes the owner address, it is determined that the owner information of the digital collection is verified.
[0035] Optionally, the digital collection server is further used for:
[0036] Signing the metadata new transaction to obtain a signed metadata new transaction;
[0037] The signed metadata newly added transaction is put on the chain.
[0038] Optionally, the digital collection server is further used for:
[0039] Acquire key information of the blockchain application server according to the key escrow type of the blockchain application server;
[0040] The metadata new transaction is signed according to the key information to obtain a signed metadata new transaction.
[0041] Optionally, the digital collection server is further used for:
[0042] Authenticating the blockchain application server;
[0043] When the blockchain application server is authenticated, the key information of the blockchain application server is obtained according to the key escrow type of the blockchain application server.
[0044] Optionally, the transaction result includes identification information of the digital collectible; and the digital collectible server is further used to:
[0045] Obtaining identification information of the digital collection in the transaction result;
[0046] Acquire metadata of the digital collection stored locally according to the identification information;
[0047] The metadata of the digital collection stored locally is updated according to the transaction result to obtain an update result of the metadata of the digital collection.
[0048] Optionally, the blockchain application server is further used to:
[0049] Obtaining identification information of the digital collection;
[0050] A metadata new transaction for the digital collection is generated according to the identification information.
[0051] On the other hand, an embodiment of the present invention further provides a digital collection information processing system, including:
[0052] Multiple processors;
[0053] a plurality of memories for storing computer executable programs;
[0054] When the computer executable program is executed by a plurality of the processors, the digital collection information processing method as described above is implemented.
[0055] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program executable by a processor. When the computer program executable by the processor is executed by the processor, it is used to implement the digital collection information processing method as described above.
[0056] On the other hand, an embodiment of the present invention further provides a computer program product, including a computer program or computer instructions, wherein the computer program or the computer instructions are stored in a computer-readable storage medium, and the processor of the digital collection information processing system reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, so that the digital collection information processing system executes the digital collection information processing method as described above.
[0057] The embodiments of the present invention include at least the following beneficial effects: when a triggering event for updating the metadata of a digital collection is detected, the blockchain application server generates a new metadata transaction for the digital collection, and uploads the new metadata transaction to the blockchain through the digital collection server; after completing the transaction upload of the new metadata transaction, the digital collection contract server sends an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server according to the new metadata transaction, so that the multiple off-chain data acquisition nodes can call the off-chain data source server to obtain off-chain data according to the off-chain data request event, and reach a consensus on the off-chain data; when a consensus on the off-chain data is reached, each off-chain data acquisition node sends the off-chain data to the digital collection contract server through the off-chain data acquisition contract server; since the off-chain data received by the digital collection contract server passes through multiple chains The consensus processing of the external data acquisition node is carried out, so the off-chain data received by the digital collection contract server is credible, thereby realizing the credible collection of off-chain data; after receiving the off-chain data sent by the off-chain data acquisition contract server, the digital collection contract server adds the off-chain data to the metadata of the digital collection, obtains the transaction result of the metadata new transaction, and sends the transaction result to the digital collection server, so that the digital collection server can obtain the update result of the metadata of the digital collection according to the transaction result and send the update result to the blockchain application server; since the digital collection contract server can add credible off-chain data to the metadata of the digital collection, it can achieve the purpose of updating the metadata of the digital collection through data sources outside the blockchain, thereby expanding the business scenarios of the digital collection and meeting the user's use needs for the digital collection.
[0058] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0060] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention;
[0061] Figure 2 is a schematic diagram of an application scenario provided by an embodiment of the present invention;
[0062] Figure 3 is a schematic diagram of another implementation environment provided by an embodiment of the present invention;
[0063] Figure 4 is a schematic diagram of another application scenario provided by an embodiment of the present invention;
[0064] Figure 5 is a flow chart of a method for processing digital collection information provided by an embodiment of the present invention;
[0065] Figure 6 It is a schematic diagram of the off-chain data acquisition node reaching consensus on off-chain data provided by an embodiment of the present invention;
[0066] Figure 7 It is a schematic diagram of the interaction between the digital collection contract server, the off-chain data acquisition contract server and the off-chain data acquisition node provided by an embodiment of the present invention;
[0067] Figure 8 is a flowchart of the steps of a method for processing digital collection information provided by a specific example of the present invention;
[0068] Fig. 9 It is a flowchart of a method for processing digital collection information provided by a specific example of the present invention;
[0069] Fig.10 is a schematic diagram of a digital collection information processing system provided by an embodiment of the present invention;
[0070] Fig.11 It is a schematic diagram of another digital collection information processing system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0071] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. The described embodiments should not be regarded as limiting the present invention, and all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0072] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0073] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0074] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.
[0075] 1) Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer and application service layer. Blockchain can include public chain, alliance chain and private chain. Among them, public chain refers to a blockchain that anyone can enter the blockchain network at any time to read data, send data or compete for accounting; alliance chain refers to a blockchain jointly managed by several organizations or institutions; private chain refers to a blockchain with certain centralized control. The write right of the private chain account book is controlled by a certain organization or institution, and the access and use of data are strictly managed by permissions.
[0076] 2) Digital collections refer to unique digital certificates generated using blockchain technology for specific works or artworks. Each digital collection has a unique subject matter, such as digital artworks, special game items, rare card collections, or any other unique digital or physical resources. Digital collections can be used to prove ownership of things.
[0077] 3) Metadata is data that describes information resources or data objects, or is structured data used to provide information about a certain resource. It can be used to support functions such as indicating storage location, historical data, resource search, file records, etc.
[0078] 4) Off-chain data acquisition contract refers to a smart contract that can support writing data outside the blockchain into the blockchain.
[0079] 5) Off-chain data acquisition nodes refer to nodes outside the blockchain that are used to write data outside the blockchain into the blockchain. They are trusted entities. Off-chain data acquisition nodes can obtain the information required by the off-chain data acquisition contract and review the information. When the information is reviewed, the information is summarized and passed to the off-chain data acquisition contract, so that the off-chain data acquisition contract does not need to directly access information outside the blockchain, thereby improving the execution efficiency and accuracy of the off-chain data acquisition contract for transactions.
[0080] After the corresponding digital collection is minted for the subject matter in the blockchain, the digital collection will have metadata for describing the subject matter, wherein the metadata of the digital collection will change with the change of the relevant information of the subject matter. For example, assuming that the subject matter is a car, after the car is repaired, the relevant information of the car will change, that is, the maintenance record information of the car will change from no maintenance record to maintenance record. At this time, the metadata of the digital collection corresponding to the car should also change accordingly, so that the metadata of the digital collection can accurately describe the current maintenance record information of the car. However, in most cases, the relevant information of the change of the subject matter comes from a data source outside the blockchain, that is, the information that triggers the change of the metadata of the digital collection comes from a data source outside the blockchain, such as the maintenance record information of the car, weather data, etc., all of which need to be obtained from a data source outside the blockchain. However, in the current related technology, it is impossible to update the metadata of the corresponding digital collection through a data source outside the blockchain.
[0081] In order to update the metadata of digital collections through data sources outside the blockchain, embodiments of the present invention provide a digital collection information processing method, a digital collection information processing system, a computer-readable storage medium, and a computer program product. When a trigger event for updating the metadata of a digital collection is detected, the blockchain application server generates a new metadata transaction for the digital collection, and the new metadata transaction is uploaded to the chain through the digital collection server; after completing the transaction upload of the new metadata transaction, the digital collection contract server sends an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server according to the new metadata transaction, so that the multiple off-chain data acquisition nodes can call the off-chain data source server to obtain off-chain data according to the off-chain data request event, and reach a consensus on the off-chain data; when a consensus on the off-chain data is reached, each off-chain data acquisition node sends a request to the digital collection contract server through the off-chain data acquisition contract server. The off-chain data is sent by the digital collection contract server; since the off-chain data received by the digital collection contract server has undergone consensus processing by multiple off-chain data acquisition nodes, the off-chain data received by the digital collection contract server is credible, thereby realizing credible collection of off-chain data; after receiving the off-chain data sent by the off-chain data acquisition contract server, the digital collection contract server adds the off-chain data to the metadata of the digital collection, obtains the transaction result of the metadata new transaction, and sends the transaction result to the digital collection server, so that the digital collection server can obtain the update result of the metadata of the digital collection according to the transaction result and send the update result to the blockchain application server; since the digital collection contract server can add credible off-chain data to the metadata of the digital collection, it can achieve the purpose of updating the metadata of the digital collection through data sources outside the blockchain, thereby expanding the business scenarios of the digital collection and meeting the user's use needs for the digital collection.
[0082] Figure 1 Schematic diagram of an implementation environment provided by an embodiment of the present invention. Figure 1 The implementation environment may include a first blockchain application terminal 101, a first blockchain application server 102, a first digital collection server 103, a first digital collection contract server 104, a first off-chain data acquisition contract server 105 and multiple first off-chain data acquisition nodes 106. The first blockchain application terminal 101, the first blockchain application server 102, the first digital collection server 103, the first digital collection contract server 104 and the first off-chain data acquisition contract server 105 may be directly or indirectly connected to each other through wired or wireless communication. The first off-chain data acquisition contract server 105 and each first off-chain data acquisition node 106 may be directly or indirectly connected to each other through wired or wireless communication.
[0083] The first blockchain application terminal 101 may include but is not limited to a smart phone, a computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc. Optionally, the first blockchain application terminal 101 may be installed with a blockchain application client, through which the user's digital collections and their metadata may be viewed.
[0084] The first blockchain application server 102, the first digital collection server 103, the first digital collection contract server 104 and the first off-chain data acquisition contract server 105 can all be independent physical servers, or server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Among them, the first blockchain application server 102 is a background server corresponding to the blockchain application client in the first blockchain application terminal 101; the first digital collection server 103 is a server for recording the user's virtual resources; the first digital collection contract server 104 and the first off-chain data acquisition contract server 105 are both servers for executing smart contracts in the blockchain.
[0085] The first off-chain data acquisition node 106 can be various terminals or devices that can acquire information, for example, various electronic sensors, Internet of Things devices, robots or other information reading devices, etc., which are not specifically limited here.
[0086] Reference Figure 2As shown, in an application scenario, it is assumed that the first blockchain application terminal 101 is a smart phone, and the first blockchain application terminal 101 is installed with a blockchain application client. In response to a trigger event for updating the metadata of a digital collection triggered by a user participating in an activity related to a digital collection in the blockchain application client, the first blockchain application server 102 obtains the identification information of the digital collection in the local database according to the trigger event, and then generates a metadata addition transaction of the digital collection according to the identification information of the digital collection, and sends the metadata addition transaction to the first digital collection server 103. In response to receiving the metadata addition transaction, the first digital collection server 103 conducts a transaction on the metadata addition transaction; wherein, when the first digital collection server 103 conducts a transaction on the metadata addition transaction on the chain, it can first authenticate the first blockchain application server 102, and then obtain its key information according to the key escrow type of the first blockchain application server 102 through the authentication of the first blockchain application server 102, and then sign the metadata addition transaction according to the key information to obtain the signed metadata addition transaction, and then conduct a transaction on the signed metadata addition transaction on the chain. In response to the first digital collection server 103 completing the transaction chaining of the metadata added transaction, the first digital collection contract server 104 issues an off-chain data request event to multiple first off-chain data acquisition nodes 106 through the first off-chain data acquisition contract server 105 according to the metadata added transaction after the transaction is chained; wherein, when the first digital collection contract server 104 issues an off-chain data request event to multiple first off-chain data acquisition nodes 106 through the first off-chain data acquisition contract server 105, it can first verify the address of the first blockchain application server 102 and the owner information of the digital collection. When the address verification of the first blockchain application server 102 and the owner information of the digital collection are passed, an off-chain data request event is issued to multiple first off-chain data acquisition nodes 106 through the first off-chain data acquisition contract server 105 according to the metadata added transaction after the transaction is chained. In response to receiving an off-chain data request event, these first off-chain data acquisition nodes 106 all call the off-chain data source server to obtain off-chain data according to the off-chain data request event, and reach a consensus on the off-chain data. When these first off-chain data acquisition nodes 106 reach a consensus on the off-chain data, each first off-chain data acquisition node 106 sends the off-chain data to the first digital collection contract server 104 through the first off-chain data acquisition contract server 105; wherein, when the first off-chain data acquisition node 106 calls the off-chain data source server to obtain off-chain data, it can first parse the off-chain data request event to obtain the off-chain request data type, and then call the off-chain data source server to obtain the off-chain data according to the off-chain request data type.In response to receiving the off-chain data, the first digital collection contract server 104 adds the off-chain data to the metadata of the digital collection, obtains the transaction result of the metadata addition transaction, and sends the transaction result to the first digital collection server 103. In response to receiving the transaction result, the first digital collection server 103 obtains the update result of the metadata of the digital collection according to the transaction result, and sends the update result to the first blockchain application server 102; wherein, when the first digital collection server 103 obtains the update result of the metadata of the digital collection according to the transaction result, it can first obtain the identification information of the digital collection in the transaction result, and then obtain the metadata of the digital collection stored locally according to the identification information, and then update the metadata of the digital collection stored locally according to the transaction result to obtain the update result of the metadata of the digital collection. In response to receiving the update result, the first blockchain application server 102 displays the updated metadata of the digital collection through the blockchain application client of the first blockchain application terminal 101 according to the update result.
[0087] Figure 3 Schematic diagram of another implementation environment provided by an embodiment of the present invention. Figure 3 The implementation environment may include a second blockchain application terminal 301, a second blockchain application server 302, a database server 303, a second digital collection server 304, a second digital collection contract server 305, a second off-chain data acquisition contract server 306 and multiple second off-chain data acquisition nodes 307. The second blockchain application terminal 301, the second blockchain application server 302, the second digital collection server 304, the second digital collection contract server 305 and the second off-chain data acquisition contract server 306 can be directly or indirectly connected to each other through wired or wireless communication. The second off-chain data acquisition contract server 306 and each second off-chain data acquisition node 307 can be directly or indirectly connected through wired or wireless communication. The second blockchain application server 302 and the database 303 can be directly or indirectly connected through wired or wireless communication.
[0088] The second blockchain application terminal 301 may include but is not limited to a smart phone, a computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc. Optionally, the second blockchain application terminal 301 may be installed with a blockchain application client, through which the user's digital collections and their metadata may be viewed.
[0089] The second blockchain application server 302, the database server 303, the second digital collection server 304, the second digital collection contract server 305 and the second off-chain data acquisition contract server 306 can all be independent physical servers, or server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN networks, and big data and artificial intelligence platforms. Among them, the second blockchain application server 302 is a background server corresponding to the blockchain application client in the second blockchain application terminal 301; the second digital collection server 304 is a server for recording the user's virtual resources; the second digital collection contract server 305 and the second off-chain data acquisition contract server 306 are both servers for executing smart contracts in the blockchain; the database server 303 can be a server for storing the identification information of digital collections.
[0090] The second off-chain data acquisition node 307 can be various terminals or devices that can acquire information, for example, various electronic sensors, Internet of Things devices, robots or other information reading devices, etc., which are not specifically limited here.
[0091] Reference Figure 4As shown, in another application scenario, it is assumed that the second blockchain application terminal 301 is a smart phone, and the second blockchain application terminal 301 is installed with a blockchain application client. In response to a trigger event for updating the metadata of the digital collection triggered by the user participating in an activity related to the digital collection in the blockchain application client, the second blockchain application server 302 sends an identification acquisition request to the database server 303 according to the trigger event. In response to receiving the identification acquisition request, the database server 303 obtains the identification information of the digital collection according to the identification acquisition request, and sends the identification information of the digital collection to the second blockchain application server 302. In response to receiving the identification information of the digital collection, the second blockchain application server 302 generates a metadata addition transaction of the digital collection according to the identification information of the digital collection, and sends the metadata addition transaction to the second digital collection server 304. In response to receiving the metadata addition transaction, the second digital collection server 304 puts the metadata addition transaction on the chain; wherein, when the second digital collection server 304 puts the metadata addition transaction on the chain, it can first authenticate the second blockchain application server 302, and when the second blockchain application server 302 is authenticated, its key information is obtained according to the key custody type of the second blockchain application server 302, and then the metadata addition transaction is signed according to the key information to obtain the signed metadata addition transaction, and then the signed metadata addition transaction is put on the chain. In response to the second digital collection server 304 completing the transaction chaining of the metadata added transaction, the second digital collection contract server 305 issues an off-chain data request event to multiple second off-chain data acquisition nodes 307 through the second off-chain data acquisition contract server 306 according to the metadata added transaction after the transaction is chained; wherein, when the second digital collection contract server 305 issues an off-chain data request event to multiple second off-chain data acquisition nodes 307 through the second off-chain data acquisition contract server 306, it can first verify the address of the second blockchain application server 302 and the owner information of the digital collection. When the address verification of the second blockchain application server 302 and the owner information of the digital collection are passed, the off-chain data request event is issued to multiple second off-chain data acquisition nodes 307 through the second off-chain data acquisition contract server 306 according to the metadata added transaction after the transaction is chained.In response to receiving the off-chain data request event, the second off-chain data acquisition nodes 307 all call the off-chain data source server to obtain the off-chain data according to the off-chain data request event, and reach a consensus on the off-chain data. When the second off-chain data acquisition nodes 307 reach a consensus on the off-chain data, each second off-chain data acquisition node 307 sends the off-chain data to the second digital collection contract server 305 through the second off-chain data acquisition contract server 306; wherein, when the second off-chain data acquisition node 307 calls the off-chain data source server to obtain the off-chain data, it can first parse the off-chain data request event to obtain the off-chain request data type, and then call the off-chain data source server to obtain the off-chain data according to the off-chain request data type. In response to receiving the off-chain data, the second digital collection contract server 305 adds the off-chain data to the metadata of the digital collection, obtains the transaction result of the metadata new transaction, and sends the transaction result to the second digital collection server 304. In response to receiving the transaction result, the second digital collection server 304 obtains the update result of the metadata of the digital collection according to the transaction result, and sends the update result to the second blockchain application server 302; wherein, when the second digital collection server 304 obtains the update result of the metadata of the digital collection according to the transaction result, it can first obtain the identification information of the digital collection in the transaction result, and then obtain the metadata of the digital collection stored locally according to the identification information, and then update the metadata of the digital collection stored locally according to the transaction result to obtain the update result of the metadata of the digital collection. In response to receiving the update result, the second blockchain application server 302 displays the updated metadata of the digital collection through the blockchain application client of the second blockchain application terminal 301 according to the update result.
[0092] It should be noted that in various specific embodiments of the present invention, when it comes to the need to perform relevant processing based on the attribute information or attribute information set of the target object (such as a user, etc.) and other data related to the characteristics of the target object, the permission or consent of the target object will be obtained first, and the collection, use and processing of these data will comply with the relevant laws, regulations and standards of the relevant countries and regions. In addition, when the embodiment of the present invention needs to obtain the attribute information of the target object, it will obtain the separate permission or separate consent of the target object through a pop-up window or jump to a confirmation page, and after clearly obtaining the separate permission or separate consent of the target object, it will obtain the relevant data of the target object necessary for the normal operation of the embodiment of the present invention.
[0093] Figure 5 1 is a flowchart of a method for processing digital collection information provided by an embodiment of the present invention. Figure 5 The digital collection information processing method includes but is not limited to steps 510 to 560.
[0094] Step 510: When a triggering event for updating the metadata of the digital collection is detected, the blockchain application server generates a new metadata transaction for the digital collection and sends the new metadata transaction to the digital collection server.
[0095] In one embodiment, when the blockchain application server detects a triggering event for updating the metadata of a digital collection, it indicates that the relevant information of the subject matter corresponding to the digital collection has changed, and therefore the metadata of the digital collection needs to be updated accordingly. Therefore, when the blockchain application server detects a triggering event for updating the metadata of the digital collection, it can generate a new metadata transaction for the digital collection, and then send the new metadata transaction to the digital collection server, so that the digital collection server can upload the new metadata transaction to the chain in subsequent steps to trigger the acquisition of off-chain data related to the metadata of the digital collection.
[0096] In one embodiment, the trigger event for updating the metadata of the digital collection may be triggered when the off-chain information of the subject matter corresponding to the digital collection changes, wherein the off-chain information of the subject matter may change based on the activities in which the user participates, or may change based on the external environment related to the subject matter, or may change based on other information related to the subject matter, which is not specifically limited here. For example, assuming that the subject matter is a game character, when the user continues to use the game character to play the game and obtains the level of the game character, the trigger event for updating the metadata of the digital collection corresponding to the game character may be triggered; for another example, assuming that the subject matter is a certificate of completion of a certain subject course, when the user obtains enough credits in the subject course and completes the course, the trigger event for updating the metadata of the digital collection corresponding to the certificate of completion of the subject course may be triggered; for another example, assuming that the subject matter is a virtual avatar that changes with the weather, when the weather change is detected, the trigger event for updating the metadata of the digital collection corresponding to the virtual avatar may be triggered. It should be noted that, in addition to the above-mentioned application scenarios, triggering events for updating the metadata of the corresponding digital collections can also be triggered by various other application scenarios, such as signing in, completing tasks to receive prizes, accumulating study hours, etc., which are not specifically limited here. Since the triggering event for updating the metadata of the corresponding digital collection can be triggered when the off-chain information of the subject matter corresponding to the digital collection changes, and the metadata addition transaction of the corresponding digital collection can be generated according to the triggering event, the subsequent steps can achieve the acquisition of off-chain data related to the metadata of the digital collection according to the metadata addition transaction, thereby achieving the purpose of updating the metadata of the digital collection through data sources outside the blockchain.
[0097] In one embodiment, when the blockchain application server generates a metadata addition transaction for a digital collection, it may first obtain the identification information (e.g., tokenId) of the digital collection, and then generate the metadata addition transaction for the digital collection based on the identification information, wherein the metadata addition transaction includes the identification information. Since the metadata addition transaction includes the identification information of the digital collection, when the subsequent step obtains the corresponding off-chain data based on the metadata addition transaction, the off-chain data may be accurately added to the metadata of the corresponding digital collection based on the identification information in the metadata addition transaction, thereby improving the accuracy of updating the metadata. In addition, when the blockchain application server obtains the identification information of the digital collection, it may obtain the identification information of the digital collection based on the triggering event. For example, when the triggering event carries the identification information of the digital collection, the triggering event may be parsed to obtain the identification information of the digital collection. Since the identification information of the digital collection is carried in the triggering event, the identification information of the digital collection may be directly obtained in the triggering event, thereby avoiding the time spent on obtaining the identification information by other means, thereby improving the processing efficiency. For another example, when the trigger event does not carry the identification information of the digital collection, the identification information of the digital collection can be obtained in the local storage space according to the trigger event, or the identification information of the digital collection can be obtained through the database server, which is not specifically limited here. Since the trigger event does not carry the identification information of the digital collection, the risk of information leakage due to the interception of the trigger event can be reduced.
[0098] Step 520: The digital collection server uploads the metadata new transaction to the chain.
[0099] In one embodiment, after the digital collection server receives the metadata addition transaction sent by the blockchain application server, the digital collection server can upload the metadata addition transaction to the chain, so that in the subsequent steps, the digital collection contract server can trigger the acquisition of off-chain data related to the metadata of the digital collection based on the metadata addition transaction, and then update the metadata of the digital collection using the off-chain data.
[0100] In one embodiment, when the digital collection server puts the metadata new transaction on the chain, it can first sign the metadata new transaction to obtain the signed metadata new transaction, and then put the signed metadata new transaction on the chain. By first signing the metadata new transaction and then putting the signed metadata new transaction on the chain, the data security of the metadata new transaction on the chain can be improved. Among them, when the digital collection server signs the metadata new transaction, it can first obtain the key information of the blockchain application server according to the key escrow type of the blockchain application server, and then sign the metadata new transaction according to the key information to obtain the signed metadata new transaction. It should be noted that the key escrow type can include the key escrow mode and the public key upload mode. The key escrow mode means that the access key pair of the digital collection server and the transaction key pair of the blockchain application server are generated and hosted by the blockchain service network, and the participating parties only need to download and use them from the blockchain service network. The public key upload mode means that the access key pair of the digital collection server and the transaction key pair of the blockchain application server are generated locally by the participants. When these key information are needed, the access public key of the digital collection server can be uploaded through the blockchain service network, and the transaction public key of the blockchain application server can be uploaded through the city node gateway interface to generate the transaction certificate of the blockchain application server. Therefore, for different key hosting types, the digital collection server can obtain the key information of the blockchain application server in different ways. For example, when the key hosting type of the blockchain application server is the key hosting mode, the digital collection server can actively download the key information of the blockchain application server from the blockchain service network; when the key hosting type of the blockchain application server is the public key upload mode, the digital collection server will pre-save the key information of the blockchain application server, and when the key information of the blockchain application server needs to be used, the key information of the blockchain application server will be called from the local storage space.
[0101] In one embodiment, when the digital collection server signs the metadata new transaction according to the key information to obtain the signed metadata new transaction and puts the signed metadata new transaction on the chain, the digital collection server can first generate a blank candidate block and add the metadata new transaction to the candidate block, and then sign the metadata new transaction in the candidate block according to the key information to obtain the target block. At this time, the target block contains the signed metadata new transaction, and then broadcasts the target block in the blockchain network, so that the participating nodes in the blockchain network perform consensus processing on the target block. When the participating nodes in the blockchain network reach a consensus on the target block, the digital collection server adds the target block to the blockchain to achieve the transaction chain of the signed metadata new transaction.
[0102] In one embodiment, when the digital collection server obtains the key information of the blockchain application server according to the key escrow type of the blockchain application server, it can first authenticate the blockchain application server to determine whether the blockchain application server has the authority to conduct transactions on the chain for the metadata new transaction. When the blockchain application server is authenticated, it means that the blockchain application server has the authority to conduct transactions on the chain for the metadata new transaction. Therefore, the digital collection server can obtain the key information of the blockchain application server according to the key escrow type of the blockchain application server, so that the key information can be used to sign the metadata new transaction and conduct transactions on the chain for the signed metadata new transaction. When the blockchain application server is not authenticated, it means that the blockchain application server does not have the authority to conduct transactions on the chain for the metadata new transaction. Therefore, the digital collection server will not conduct transactions on the chain for the metadata new transaction. Since the blockchain application server will be authenticated before the metadata new transaction is conducted on the chain, and the metadata new transaction will be signed and executed on the chain only after the authentication of the blockchain application server is passed, the legitimacy of the blockchain application server conducting transactions on the chain for the metadata new transaction can be guaranteed, thereby improving the security of the subsequent update of the metadata of the digital collection. Among them, when the blockchain application server sends the metadata new transaction to the digital collection server, it will also send a request key to the digital collection server. When the digital collection server receives the request key, the digital collection server can authenticate the blockchain application server through the request key. For example, the request key can be compared with the pre-stored authentication key. If there is an authentication key that matches the request key, it can be considered that the authentication of the blockchain application server has passed. If there is no authentication key that matches the request key, it can be considered that the authentication of the blockchain application server has not passed. Since the blockchain application server can send the request key at the same time when sending the metadata new transaction to the digital collection server, the convenience of the digital collection server to authenticate the blockchain application server can be improved.
[0103] Step 530: The digital collection contract server adds a new transaction based on the metadata after the transaction is uploaded to the chain, and issues an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server.
[0104] In one embodiment, after the digital collection server completes the transaction of adding metadata to the chain, the metadata transaction will be connected to the blockchain. At this time, the digital collection contract server on the blockchain can execute the metadata transaction after the transaction is on the chain. Since the content of the metadata transaction is to update the metadata, the digital collection contract server can issue an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server according to the content of the metadata transaction, so that each off-chain data acquisition node can obtain trusted off-chain data, so as to use the trusted off-chain data to update the metadata of the digital collection.
[0105] In one embodiment, when the digital collection contract server executes a metadata addition transaction and issues an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server, the digital collection contract server can first verify the legitimacy of the metadata addition transaction, and when the legitimacy verification is passed, it can then issue an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server. For example, the digital collection contract server may first verify the address of the blockchain application server and the owner information of the digital collection. If both the address verification of the blockchain application server and the verification of the owner information of the digital collection are passed, it means that the legitimacy verification of the metadata new transaction has been passed. Therefore, the digital collection contract server may issue an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server based on the metadata new transaction; if only the address verification of the blockchain application server is passed, but the verification of the owner information of the digital collection is not passed, it means that the metadata new transaction may be at risk of being maliciously modified. Therefore, it can be considered that the legitimacy verification of the metadata new transaction has not been passed. Therefore, the digital collection contract server may not issue an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server, and may issue a reminder message to the digital collection server to indicate that the metadata new transaction may be maliciously modified; if the address verification of the blockchain application server is not passed However, if the verification of the owner information of the digital collection can be passed, it means that the metadata new transaction may not be a legal transaction generated by the blockchain application server. In order to ensure the information security on the blockchain, it can be considered that the legality verification of the metadata new transaction has not been passed, so the digital collection contract server can send an off-chain data request event to multiple off-chain data acquisition nodes without going through the off-chain data acquisition contract server, and can send a reminder message to the blockchain application server to indicate that the metadata new transaction may not be a legal transaction generated by the blockchain application server; if neither the address verification of the blockchain application server nor the verification of the owner information of the digital collection can be passed, it means that the metadata new transaction may be malicious transaction information, so it will be considered that the legality verification of the metadata new transaction has not been passed, so the digital collection contract server will not send an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server, and will send a reminder message to the blockchain application server to indicate that the metadata new transaction may be malicious transaction information.Since the digital collection contract server will first verify the address of the blockchain application server and the owner information of the digital collection when executing the metadata addition transaction, and then send an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server when determining that the metadata addition transaction is legal, it can avoid the metadata of the digital collection from being maliciously updated, thereby protecting the metadata of the digital collection. In one embodiment, when the legality verification of the metadata addition transaction is passed, the digital collection contract server can call the off-chain data acquisition contract server in the blockchain and send an off-chain data acquisition request to the off-chain data acquisition contract server; after receiving the off-chain data acquisition request sent by the digital collection contract server, the off-chain data acquisition contract server can send an off-chain data request event to multiple off-chain data acquisition nodes according to the off-chain data acquisition request, so that each off-chain data acquisition node can obtain off-chain data that meets the requirements of the metadata addition transaction according to the off-chain data request event.
[0106] In one embodiment, when the digital collection contract server verifies the address of the blockchain application server, it can first obtain the server address of the blockchain application server, and obtain the address of the issuer of the digital collection in the blockchain, and then compare the server address of the blockchain application server with the address of the issuer of the digital collection. When the server address and the address of the issuer are consistent, it means that the blockchain application server is the issuer of the digital collection, and the blockchain application server has the authority to initiate the update of the metadata of the digital collection. Therefore, the digital collection contract server can determine that the address verification of the blockchain application server has passed. By comparing the consistency of the server address of the blockchain application server and the address of the issuer of the digital collection, it can be accurately determined whether the blockchain application server has the authority to initiate the update of the metadata of the digital collection, thereby ensuring the legitimacy of the update of the metadata of the digital collection, and then ensuring the information security of the digital collection.
[0107] In one embodiment, when verifying the owner information of the digital collection, the digital collection contract server may first obtain the owner address of the digital collection stored in the blockchain application server, and obtain the owner information of the digital collection in the blockchain, and then verify whether the owner information includes the owner address. When it is determined that the owner information includes the owner address, it means that the digital collection belongs to the user recorded in the blockchain application server, that is, the blockchain application server has the authority to initiate the update of the metadata of the digital collection. Therefore, the digital collection contract server can determine that the verification of the owner information of the digital collection has passed. By determining whether the owner information of the digital collection includes the owner address of the digital collection stored in the blockchain application server, it can be accurately determined whether the blockchain application server has the authority to initiate the update of the metadata of the digital collection, thereby ensuring the legitimacy of the update of the metadata of the digital collection, and further ensuring the information security of the digital collection. For example, assume that the owner addresses of different digital collections saved by the blockchain application server include address A, address B and address C, where address A is the address information of user A who owns digital collection A, address B is the address information of user B who owns digital collection B, and address C is the address information of user C who owns digital collection C. After obtaining the owner addresses of the digital collections saved by the blockchain application server (including address A, address B and address C) and the owner information of the digital collections, assume that the owner address information included in the owner information of the digital collection is address B, that is, the owner information of the digital collection includes the owner address saved by the blockchain application server, so it can be determined that the digital collection belongs to user B recorded in the blockchain application server, so it can be determined that the verification of the owner information of the digital collection has passed.
[0108] Step 540: Multiple off-chain data acquisition nodes call the off-chain data source server to obtain off-chain data according to the off-chain data request event, and reach a consensus on the off-chain data. When a consensus on the off-chain data is reached, each off-chain data acquisition node sends the off-chain data to the digital collection contract server through the off-chain data acquisition contract server.
[0109] In one embodiment, after each off-chain data acquisition node receives an off-chain data request event sent by an off-chain data acquisition contract server, these off-chain data acquisition nodes can call an off-chain data source server to obtain off-chain data according to the off-chain data request event, and then reach a consensus on the off-chain data. When these off-chain data acquisition nodes reach a consensus on the off-chain data, each off-chain data acquisition node can send the off-chain data to the digital collection contract server through the off-chain data acquisition contract server, so that in the subsequent steps, the digital collection contract server can add the off-chain data to the metadata of the digital collection, thereby realizing the update of the metadata of the digital collection. Since these off-chain data acquisition nodes are decentralized nodes, and the off-chain data sent to the digital collection contract server is sent after the consensus processing of these off-chain data acquisition nodes, the off-chain data sent to the digital collection contract server is credible data, so that the credible collection of off-chain data can be realized, and the purpose of being able to update the metadata of the digital collection through a data source outside the blockchain is achieved.
[0110] In one embodiment, the off-chain data source server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN networks, and big data and artificial intelligence platforms. Among them, for different digital collections, the off-chain data source server will also be different. For example, assuming that the digital collection to be updated is a digital collection corresponding to a game character, then the off-chain data source server may be a running server of the game where the game character is located; for another example, assuming that the digital collection to be updated is a digital collection corresponding to a certificate of completion of a certain subject course, then the off-chain data source server may be a backend server of an educational institution (such as a school, etc.) that conducts the subject course; for another example, assuming that the digital collection to be updated is a digital collection corresponding to a virtual avatar that changes with the weather, then the off-chain data source server may be a backend server of a weather research institution.
[0111] In one embodiment, when the off-chain data acquisition node calls the off-chain data source server to acquire the off-chain data according to the off-chain data request event, the off-chain data acquisition node may first parse the off-chain data request event to obtain the off-chain request data type, and then call the corresponding off-chain data source server to acquire the corresponding off-chain data according to the parsed off-chain request data type. For example, assuming that the off-chain request data type obtained by the off-chain data acquisition node after parsing the off-chain data request event is a game data type, then the off-chain data acquisition node may call the corresponding game running server according to the game data type to acquire the corresponding off-chain game data; assuming that the off-chain request data type obtained by the off-chain data acquisition node after parsing the off-chain data request event is a credit data type, then the off-chain data acquisition node may call the corresponding education institution backend server according to the credit data type to acquire the corresponding off-chain credit data; assuming that the off-chain request data type obtained by the off-chain data acquisition node after parsing the off-chain data request event is a weather data type, then the off-chain data acquisition node may call the corresponding weather research institution backend server according to the weather data type to acquire the corresponding off-chain weather data. Since the off-chain data acquisition node first parses the off-chain data request event to obtain the expected off-chain request data type, and then obtains the corresponding off-chain data based on the off-chain request data type, the accuracy of the obtained off-chain data can be improved, thereby avoiding the impact on digital collections due to obtaining data that does not meet the requirements.
[0112] In one embodiment, after each off-chain data acquisition node calls the off-chain data source server to obtain the corresponding off-chain data, it will first reach a consensus on the off-chain data. Only when these off-chain data acquisition nodes reach a consensus on the off-chain data will they send the off-chain data to the digital collection contract server through the off-chain data acquisition contract server. Figure 6 As shown, Figure 6 This is a schematic diagram of the off-chain data acquisition nodes reaching consensus on off-chain data. Figure 6In the example, it is assumed that there are 4 off-chain data acquisition nodes. When any one of the 4 off-chain data acquisition nodes acquires off-chain data, the off-chain data acquisition node that acquires the off-chain data will conduct consensus communication on the off-chain data among the 4 off-chain data acquisition nodes. Only when more than half of the 4 off-chain data acquisition nodes (for example, any 3 or all 4 of them) reach a consensus on the off-chain data, the off-chain data acquisition node that acquires the off-chain data will send the off-chain data to the digital collection contract server through the off-chain data acquisition contract server, ensuring that the off-chain data received by the digital collection contract server is credible, thereby improving the security of updating the metadata of the digital collection. It should be noted that when the off-chain data acquisition node reaches a consensus on the off-chain data, the off-chain data acquisition node that acquires the off-chain data will first package the off-chain data into a block, and then send the block to each off-chain data acquisition node for consensus. When each off-chain data acquisition node reaches a consensus on the block, it will verify the random number in the block header and all transaction information in the block body (i.e., the off-chain data). Each off-chain data acquisition node will first verify the random number in the block header. If it passes the verification, it will then verify all transaction information in the block body (i.e., the off-chain data). When all transaction information in the block body (i.e., the off-chain data) passes the verification, it can be considered that each off-chain data acquisition node has accepted the block, i.e., a consensus on the off-chain data has been reached.
[0113] In one embodiment, after reaching a consensus on the off-chain data, when each off-chain data acquisition node sends the off-chain data to the digital collection contract server through the off-chain data acquisition contract server, each off-chain data acquisition node may first send the off-chain data to the off-chain data acquisition contract server. After the off-chain data acquisition contract server receives the off-chain data, the off-chain data acquisition contract server aggregates all the off-chain data to obtain aggregated off-chain data, and then sends the aggregated off-chain data to the digital collection contract server. Among them, when the off-chain data acquisition contract server aggregates all the off-chain data, it may be at least one of aggregating or deduplicating all the off-chain data. When the off-chain data acquired by each off-chain data acquisition node from the off-chain data source server are different, the off-chain data acquisition contract server may only aggregate these off-chain data to obtain aggregated off-chain data. For example, assuming that there are three off-chain data acquisition nodes, and the off-chain data acquired by these three off-chain data acquisition nodes are off-chain data A, off-chain data B, and off-chain data C, respectively, and the off-chain data A, off-chain data B, and off-chain data C are different, then the off-chain data acquisition contract server can only aggregate these off-chain data to obtain an off-chain data set including off-chain data A, off-chain data B, and off-chain data C, and this off-chain data set is the aggregated off-chain data. When the off-chain data acquired by each off-chain data acquisition node from the off-chain data source server are the same, the off-chain data acquisition contract server can only deduplicate these off-chain data to obtain the aggregated off-chain data. For example, assuming that the number of off-chain data acquisition nodes is 3, and the off-chain data acquired by these three off-chain data acquisition nodes are off-chain data A, off-chain data B, and off-chain data C, and the off-chain data A, off-chain data B, and off-chain data C are the same, then the off-chain data acquisition contract server can only deduplicate these off-chain data, and the aggregated off-chain data is off-chain data A. When the off-chain data acquired by each off-chain data acquisition node from the off-chain data source server are partially the same, the off-chain data acquisition contract server can aggregate and deduplicate these off-chain data to obtain the aggregated off-chain data. For example, assuming that the number of off-chain data acquisition nodes is 3, and the off-chain data acquired by these three off-chain data acquisition nodes are off-chain data B, off-chain data B, and off-chain data C, and the off-chain data B and off-chain data C are not the same, then the off-chain data acquisition contract server can aggregate and deduplicate these off-chain data to obtain an off-chain data set including off-chain data B and off-chain data C, and the off-chain data set is the aggregated off-chain data.Since the off-chain data acquisition contract server first aggregates all off-chain data and then sends the aggregated off-chain data to the digital collection contract server, it can streamline the off-chain data and avoid duplicate off-chain data affecting the subsequent digital collection contract server's update of the digital collection's metadata, thereby improving the efficiency of the subsequent digital collection contract server's update of the digital collection's metadata.
[0114] The following example illustrates the interaction between the digital collection contract server, the off-chain data acquisition contract server, and the off-chain data acquisition node. Figure 7 As shown, after the digital collection server uploads the metadata new transaction to the chain, the digital collection contract server will execute the metadata new transaction and send an off-chain data acquisition request to the off-chain data acquisition contract server according to the content of the metadata new transaction; after receiving the off-chain data acquisition request, the off-chain data acquisition contract server will send an off-chain data request event to each off-chain data acquisition node according to the off-chain data acquisition request; when receiving the off-chain data request event, each off-chain data acquisition node will call its internal core function to parse the off-chain data request event to obtain the off-chain request data type, and then call the corresponding data acquisition interface according to the parsed off-chain request data type, and request off-chain data from the corresponding external application programming interface (i.e., the data interface of the off-chain data source server) through the data acquisition interface; at this time , the off-chain data source server will respond to the request of the off-chain data acquisition node and send the corresponding off-chain data to the off-chain data acquisition node through its external application programming interface; when receiving the off-chain data, each off-chain data acquisition node will initiate a consensus request for the off-chain data, and other off-chain data acquisition nodes will perform consensus processing on the off-chain data. When a consensus on the off-chain data is reached, each off-chain data acquisition node will send the consensus off-chain data to the off-chain data acquisition contract server; when receiving the off-chain data from each off-chain data acquisition node, the off-chain data acquisition contract server will first aggregate all the off-chain data to obtain the aggregated off-chain data, and then send the aggregated off-chain data to the digital collection contract server, completing the interaction between the digital collection contract server, the off-chain data acquisition contract server and the off-chain data acquisition node. Since the off-chain data acquisition node is a decentralized node, and the off-chain data sent by the off-chain data acquisition contract server to the digital collection contract server is sent only after consensus processing by the off-chain data acquisition node, the off-chain data sent to the digital collection contract server is all credible data, thereby achieving credible collection of off-chain data, which is conducive to the subsequent steps to achieve the purpose of updating the metadata of digital collections through data sources outside the blockchain.
[0115] Step 550: The digital collection contract server adds the off-chain data to the metadata of the digital collection, obtains the transaction result of the metadata addition transaction, and sends the transaction result to the digital collection server.
[0116] In one embodiment, after the digital collection contract server receives the off-chain data sent by the off-chain data acquisition contract server, since the off-chain data is acquired based on the metadata addition transaction and the off-chain data is trusted data obtained through consensus of multiple off-chain data acquisition nodes, the digital collection contract server can add the off-chain data to the metadata of the digital collection to update the metadata of the digital collection, thereby achieving the purpose of updating the metadata of the digital collection through a data source outside the blockchain; in addition, after adding the off-chain data to the metadata of the digital collection, the digital collection contract server can also obtain the transaction result of the metadata addition transaction, and then send the transaction result to the digital collection server, so as to inform the digital collection server of the transaction result of executing the metadata addition transaction.
[0117] Step 560: The digital collection server obtains the update result of the metadata of the digital collection according to the transaction result, and sends the update result to the blockchain application server.
[0118] In one embodiment, since the transaction result only indicates the execution status of the blockchain's new metadata transaction, and the update result of the digital collection's metadata cannot be directly obtained based on the transaction result, after the digital collection server receives the transaction result sent by the digital collection contract server, it can first obtain the update result of the digital collection's metadata based on the transaction result, and then send the update result to the blockchain application server to complete the information feedback of the triggering event, thereby realizing the update of the digital collection's metadata.
[0119] In one embodiment, when the digital collection server obtains the update result of the metadata of the digital collection according to the transaction result, the content of the transaction result can be obtained first, and then the update result of the metadata of the digital collection can be obtained according to the content of the transaction result. For example, assuming that the content of the transaction result is that the off-chain data is successfully added to the metadata of the digital collection, the update result of successfully updating the metadata of the digital collection can be obtained; if the content of the transaction result is that the off-chain data is not successfully added to the metadata of the digital collection, the update result of not successfully updating the metadata of the digital collection can be obtained.
[0120] In one embodiment, since the digital collection server is not a contract server in the blockchain, and the transaction result indicates the execution of the metadata addition transaction by the blockchain, rather than the execution of the metadata addition transaction by the digital collection server, there may be data asynchronization in the digital collection server, which may affect the accuracy of the user's query on the metadata of the digital collection. In order to solve this problem, when the transaction result includes the identification information of the digital collection (such as tokenId), when the digital collection server obtains the update result of the metadata of the digital collection according to the transaction result, it can first obtain the identification information of the digital collection in the transaction result, and then obtain the metadata of the digital collection stored locally according to the identification information, and then update the metadata of the digital collection stored locally according to the transaction result to obtain the update result of the metadata of the digital collection, which can not only achieve data synchronization between the digital collection server and the blockchain, but also help improve the accuracy of the user's query on the metadata of the digital collection through the digital collection server.
[0121] In one embodiment, after the blockchain application server receives the update result of the metadata of the digital collection sent by the digital collection server, the blockchain application server can send the update result to the user's blockchain application terminal, so that the blockchain application terminal can display the update result, thereby facilitating the user to query the updated digital collection.
[0122] In this embodiment, through the digital collection information processing method including the previous steps 510 to 560, when a trigger event for updating the metadata of the digital collection is detected, the blockchain application server first generates a metadata new transaction for the digital collection, and then uploads the metadata new transaction to the chain through the digital collection server; after completing the transaction chain for the metadata new transaction, the digital collection contract server sends an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server according to the metadata new transaction, so that the multiple off-chain data acquisition nodes can call the off-chain data source server to obtain off-chain data according to the off-chain data request event, and reach a consensus on the off-chain data; when a consensus on the off-chain data is reached, each off-chain data acquisition node sends the off-chain data to the digital collection contract server through the off-chain data acquisition contract server; since the off-chain data received by the digital collection contract server is processed by multiple off-chain data acquisitions, The consensus processing of the nodes is taken, so the off-chain data received by the digital collection contract server is credible, so that the credible collection of off-chain data can be realized; after receiving the off-chain data sent by the off-chain data acquisition contract server, the digital collection contract server adds the off-chain data to the metadata of the digital collection, obtains the transaction result of the metadata new transaction, and sends the transaction result to the digital collection server, so that the digital collection server can obtain the update result of the metadata of the digital collection according to the transaction result and send the update result to the blockchain application server; because the digital collection contract server can add credible off-chain data to the metadata of the digital collection, it can achieve the purpose of updating the metadata of the digital collection through the data source outside the blockchain, so that the business scenario of the digital collection can be expanded, so that the credible data source outside the chain can participate in the dynamic change process of the digital collection, and meet the user's use needs for the digital collection. In addition, the digital collection information processing method of this embodiment is also compatible with the existing digital collection contract protocol, so the application scenario of the digital collection can be further expanded.
[0123] The following is a detailed description of the steps of the digital collection information processing method according to an embodiment of the present invention using a specific example.
[0124] Reference Figure 8 As shown, Figure 8 This is a flowchart of the steps of the digital collection information processing method provided as a specific example. Figure 8 In the method for processing digital collection information, the method may include but is not limited to steps 801 to 812.
[0125] Step 801: When a triggering event for updating the metadata of a digital collection is detected, the blockchain application server obtains the identification information of the digital collection, generates a new metadata transaction for the digital collection based on the identification information, and sends the new metadata transaction to the digital collection server.
[0126] In this step, the trigger event for updating the metadata of the digital collection can be triggered when the off-chain information of the subject matter corresponding to the digital collection changes, wherein the off-chain information of the subject matter can change based on the activities in which the user participates, or can change based on the external environment related to the subject matter, or can change based on other information related to the subject matter, which is not specifically limited here. Since the trigger event for updating the metadata of the corresponding digital collection can be triggered when the off-chain information of the subject matter corresponding to the digital collection changes, and the corresponding digital collection metadata addition transaction can be generated according to the trigger event, the subsequent steps can achieve the acquisition of off-chain data related to the metadata of the digital collection according to the metadata addition transaction, thereby achieving the purpose of updating the metadata of the digital collection through a data source outside the blockchain.
[0127] Step 802: The digital collection server authenticates the blockchain application server. If the authentication of the blockchain application server is passed, execute step 803; if the authentication of the blockchain application server is not passed, execute step 804.
[0128] Step 803: The digital collection server obtains the key information of the blockchain application server according to the key hosting type of the blockchain application server, signs the metadata new transaction according to the key information to obtain the signed metadata new transaction, and puts the signed metadata new transaction on the chain, and then executes step 805.
[0129] In this step, when the blockchain application server is authenticated, it means that the blockchain application server has the authority to conduct transactions on the chain for the metadata addition transaction. Therefore, the digital collection server can obtain the key information of the blockchain application server according to the key escrow type of the blockchain application server, and then sign the metadata addition transaction according to the key information to obtain the signed metadata addition transaction, and then conduct transactions on the chain for the signed metadata addition transaction. Since the blockchain application server will be authenticated before the metadata addition transaction is conducted on the chain, and the metadata addition transaction is signed and executed on the chain only after the blockchain application server is authenticated, the legitimacy of the blockchain application server conducting transactions on the chain for the metadata addition transaction can be guaranteed, thereby improving the security of the subsequent update of the metadata of the digital collection.
[0130] Step 804: The digital collection server does not upload the metadata new transaction to the chain.
[0131] In this step, if the blockchain application server fails to pass the authentication, it means that the blockchain application server does not have the authority to upload the metadata new transaction to the chain. Therefore, the digital collection server may not upload the metadata new transaction to the chain, thereby ensuring the legitimacy of the metadata new transaction to the chain.
[0132] Step 805: The digital collection contract server verifies the address of the blockchain application server and the owner information of the digital collection. If the address verification of the blockchain application server and the owner information of the digital collection pass, execute step 806; if either the address verification of the blockchain application server or the owner information of the digital collection fails, execute step 807.
[0133] Step 806: The digital collection contract server adds a new transaction based on the metadata after the transaction is uploaded to the chain, and issues an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server, and then executes step 808.
[0134] In this step, when the address of the blockchain application server is verified and the owner information of the digital collection is verified, it means that the legality verification of the metadata new transaction has been passed. Therefore, the digital collection contract server can issue an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server according to the metadata new transaction. Since the digital collection contract server will first verify the address of the blockchain application server and the owner information of the digital collection when executing the metadata new transaction, and then issue an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server when determining that the metadata new transaction is legal, it can avoid malicious updates of the metadata of the digital collection, thereby protecting the metadata of the digital collection.
[0135] Step 807: The digital collection contract server does not request off-chain data from the off-chain data acquisition contract server.
[0136] In this step, if either the address verification of the blockchain application server or the verification of the owner information of the digital collection fails, it means that the legitimacy verification of the new metadata transaction fails. Therefore, the digital collection contract server may not request off-chain data from the off-chain data acquisition contract server, thereby avoiding the problem of malicious updates of the metadata of the digital collection.
[0137] Step 808: Each off-chain data acquisition node parses the off-chain data request event to obtain the off-chain request data type, calls the off-chain data source server to obtain the off-chain data according to the off-chain request data type, and reaches a consensus on the off-chain data. When a consensus on the off-chain data is reached, each off-chain data acquisition node sends the off-chain data to the off-chain data acquisition contract server.
[0138] In this step, each off-chain data acquisition node is a decentralized node. Since the off-chain data sent to the digital collection contract server is sent after consensus processing by these decentralized off-chain data acquisition nodes, the off-chain data sent to the digital collection contract server is credible data, so that the credible collection of off-chain data can be achieved, and the purpose of updating the metadata of the digital collection through data sources outside the blockchain can be achieved. In addition, since the off-chain data acquisition node first parses the off-chain data request event to obtain the desired off-chain request data type, and then obtains the corresponding off-chain data according to the off-chain request data type, the accuracy of the obtained off-chain data can be improved, thereby avoiding the impact on the digital collection due to the acquisition of data that does not meet the requirements.
[0139] Step 809: The off-chain data acquisition contract server aggregates all off-chain data to obtain aggregated off-chain data, and sends the aggregated off-chain data to the digital collection contract server.
[0140] Since the off-chain data acquisition contract server first aggregates all off-chain data and then sends the aggregated off-chain data to the digital collection contract server, it can streamline the off-chain data and avoid duplicate off-chain data affecting the subsequent digital collection contract server's update of the digital collection's metadata, thereby improving the efficiency of the subsequent digital collection contract server's update of the digital collection's metadata.
[0141] Step 810: The digital collection contract server adds the off-chain data to the metadata of the digital collection, obtains the transaction result of the metadata addition transaction, and sends the transaction result to the digital collection server.
[0142] In this step, after the digital collection contract server receives the off-chain data sent by the off-chain data acquisition contract server, since the off-chain data is obtained based on the metadata new transaction, and the off-chain data is trusted data obtained through consensus of multiple off-chain data acquisition nodes, the digital collection contract server can add the off-chain data to the metadata of the digital collection to update the metadata of the digital collection, thereby achieving the purpose of updating the metadata of the digital collection through a data source outside the blockchain.
[0143] Step 811: The digital collection server obtains the identification information of the digital collection in the transaction result, obtains the metadata of the digital collection stored locally based on the identification information, and updates the metadata of the digital collection stored locally based on the transaction result to obtain an update result for the metadata of the digital collection.
[0144] In this step, when the transaction result includes the identification information of the digital collection (such as tokenId), the digital collection server obtains the metadata of the digital collection stored locally based on the identification information in the transaction result, and then updates the metadata of the digital collection stored locally based on the transaction result to obtain the updated result of the metadata of the digital collection. This can not only achieve data synchronization between the digital collection server and the blockchain, but also help to improve the accuracy of users' query of the metadata of the digital collection through the digital collection server.
[0145] Step 812: The digital collection server sends the update result to the blockchain application server.
[0146] In this step, after obtaining the update result of the metadata of the digital collection, the digital collection server can complete the information feedback of the triggering event by sending the update result to the blockchain application server, thereby realizing the update of the metadata of the digital collection.
[0147] Through the digital collection information processing method of the above steps 801 to 812, not only can the trusted collection of off-chain data be achieved, but also the digital collection contract server can add trusted off-chain data to the metadata of the digital collection, thereby achieving the purpose of updating the metadata of the digital collection through data sources outside the blockchain, and further expanding the business scenarios of the digital collection, so that the trusted data sources outside the chain can participate in the dynamic change process of the digital collection, thereby meeting the user's use needs for the digital collection.
[0148] Reference Fig. 9 As shown, Fig. 9 This is a flowchart of a method for processing digital collection information provided by a specific example. Fig. 9In the example, suppose that a user participates in an activity in the business party's application. At this time, the business party's backend server (i.e., blockchain application server) can send a request to the digital collection server to query the detailed information of the digital collection owned by the user in the business party, and then render and display the queried digital collection in the user's blockchain application client (i.e., the business party's application). When the user continues to participate in the activity and obtains the qualification recognition of the business party for a certain digital collection (for example, in the game scenario, the user continues to use the game character associated with a certain digital collection to participate in the game and obtains the level of the game character), the business party will believe that the user has met the conditions for updating the metadata of the digital collection outside the chain, so the blockchain application client can initiate a metadata write request for the digital collection. When the business party's backend server detects the metadata write request, that is, detects a trigger event for updating the metadata of the digital collection, the business party's backend server can obtain the identification information of the digital collection, and generate a metadata addition transaction for the digital collection based on the identification information, and then send the metadata addition transaction to the digital collection server. When the digital collection server receives the metadata new transaction, the digital collection server first authenticates the backend server of the business party. When the authentication is passed, the digital collection server obtains the key information of the backend server of the business party according to the key escrow type of the backend server of the business party, and then signs the metadata new transaction according to the key information to obtain the signed metadata new transaction, and then the signed metadata new transaction is put on the chain. When the transaction of the metadata new transaction is completed on the chain, the digital collection contract server in the blockchain verifies the address of the backend server of the business party and verifies the owner information of the digital collection. When the address verification of the blockchain application server and the owner information of the digital collection are passed, the digital collection contract server sends an off-chain data acquisition request to the off-chain data acquisition contract server according to the metadata new transaction after the transaction is put on the chain. When receiving the off-chain data acquisition request, the off-chain data acquisition contract server sends an off-chain data request event to multiple off-chain data acquisition nodes. When receiving the off-chain data request event, each off-chain data acquisition node calls the corresponding off-chain data source server according to the off-chain data request event to obtain the corresponding off-chain data. After obtaining the off-chain data from the off-chain data source server, these off-chain data acquisition nodes first reach a consensus on the off-chain data. When a consensus is reached on the off-chain data, the off-chain data that has reached a consensus is sent to the off-chain data acquisition contract server. When receiving the off-chain data from each off-chain data acquisition node, the off-chain data acquisition contract server first aggregates all the off-chain data to obtain the aggregated off-chain data, and then sends the aggregated off-chain data to the digital collection contract server, and calls the digital collection contract server to add the off-chain data to the metadata of the digital collection.When receiving the aggregated off-chain data, the digital collection contract server adds the aggregated off-chain data to the metadata of the digital collection, obtains the transaction result of the metadata addition transaction, and then sends the transaction result to the digital collection server. When receiving the transaction result, the digital collection server updates the metadata of the digital collection stored in the local database according to the transaction result, obtains the update result of the metadata of the digital collection, and then sends the update result to the backend server of the business party. When receiving the update result, the backend server of the business party updates the metadata of the digital collection displayed in the blockchain application client according to the update result. At this time, the blockchain application client will render and display the digital collection after the metadata is updated. In addition, after completing the update of the metadata of the digital collection, the user can aggregate and query all the digital collections he owns on the blockchain through the lightweight blockchain application, and the lightweight blockchain application can also synchronously display the update result of the metadata of the digital collection. It should be noted that a lightweight blockchain application refers to an application that can access the blockchain without downloading and installing.
[0149] The following are some practical examples to illustrate the application scenarios of the embodiments of the present invention.
[0150] It should be noted that the digital collection information processing method provided in the embodiment of the present invention can be applied to different application scenarios such as game applications and educational applications. The following description will be given using game application scenarios and educational application scenarios as examples.
[0151] Scene 1
[0152] The digital collection information processing method provided by the embodiment of the present invention can be applied to game application scenarios. For example, assuming that a user plays a game through a blockchain application client, and continues to use a game character associated with a digital collection to participate in the game and obtains a level upgrade of the game character, in this case, the blockchain application client will send a trigger event to the blockchain application server of the game manufacturer that operates the game to update the metadata of the digital collection. When the trigger event is detected, the blockchain application server first obtains the identification information of the digital collection, and then generates a metadata addition transaction for the digital collection based on the identification information of the digital collection, and sends the metadata addition transaction to the digital collection server. When the metadata addition transaction is received, the digital collection server conducts a transaction chain for the metadata addition transaction. When the transaction chain for the metadata addition transaction is completed, the digital collection contract server sends an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server based on the metadata addition transaction after the transaction is chained. When receiving an off-chain data request event, each off-chain data acquisition node calls the game manufacturer's backend data server to obtain the corresponding off-chain game data according to the off-chain data request event, and reaches a consensus on the obtained off-chain game data. When these off-chain data acquisition nodes reach a consensus on the off-chain game data, each off-chain data acquisition node sends the off-chain game data reached after consensus to the digital collection contract server through the off-chain data acquisition contract server. When receiving the off-chain game data from the off-chain data acquisition contract server, the digital collection contract server adds the off-chain game data to the metadata of the digital collection, obtains the transaction result of the metadata new transaction, and then sends the transaction result to the digital collection server. When receiving the transaction result, the digital collection server obtains the update result of the metadata of the digital collection according to the transaction result, and then sends the update result to the blockchain application server. When receiving the update result, the blockchain application server displays the updated metadata of the digital collection through the blockchain application client according to the update result.
[0153] Scene 2
[0154] The digital collection information processing method provided by the embodiment of the present invention can also be applied to educational application scenarios. For example, assuming that a user studies a certain subject course through a blockchain application client and obtains enough credits in the subject course to be able to complete the course, in this case, the blockchain application client will send a trigger event to the blockchain application server of the educational institution that conducts the subject course to update the metadata of the digital collection. When the trigger event is detected, the blockchain application server first obtains the identification information of the digital collection, and then generates a metadata addition transaction of the digital collection based on the identification information of the digital collection, and sends the metadata addition transaction to the digital collection server. When the metadata addition transaction is received, the digital collection server conducts a transaction chain for the metadata addition transaction. When the transaction chain for the metadata addition transaction is completed, the digital collection contract server sends an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server based on the metadata addition transaction after the transaction is chained. When receiving an off-chain data request event, each off-chain data acquisition node calls the background data server of the educational institution to obtain the corresponding off-chain credit data according to the off-chain data request event, and reaches a consensus on the obtained off-chain credit data. When these off-chain data acquisition nodes reach a consensus on the off-chain credit data, each off-chain data acquisition node sends the off-chain credit data reached after consensus to the digital collection contract server through the off-chain data acquisition contract server. When receiving the off-chain credit data from the off-chain data acquisition contract server, the digital collection contract server adds the off-chain credit data to the metadata of the digital collection, obtains the transaction result of the metadata new transaction, and then sends the transaction result to the digital collection server. When receiving the transaction result, the digital collection server obtains the update result of the metadata of the digital collection according to the transaction result, and then sends the update result to the blockchain application server. When receiving the update result, the blockchain application server displays the updated metadata of the digital collection through the blockchain application client according to the update result.
[0155] It is to be understood that, although the steps in the above-mentioned various flow charts are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in the present embodiment, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flow charts can include a plurality of steps or a plurality of stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of the steps or stages in other steps or other steps.
[0156] Reference Fig.10The embodiment of the present invention further discloses a digital collection information processing system. The digital collection information processing system 1000 can implement the digital collection information processing method in the previous embodiment. The digital collection information processing system 1000 includes a blockchain application server 1010, a digital collection server 1020, a digital collection contract server 1030, an off-chain data acquisition contract server 1040 and a plurality of off-chain data acquisition nodes 1050;
[0157] The blockchain application server 1010 is used to generate a metadata addition transaction of the digital collection when a trigger event of updating the metadata of the digital collection is detected, and send the metadata addition transaction to the digital collection server 1020;
[0158] The digital collection server 1020 is used to upload the metadata new transaction to the blockchain;
[0159] The digital collection contract server 1030 is used to add a new transaction based on the metadata after the transaction is uploaded to the chain, and to send an off-chain data request event to multiple off-chain data acquisition nodes 1050 through the off-chain data acquisition contract server 1040;
[0160] The off-chain data acquisition node 1050 is used to call the off-chain data source server to obtain the off-chain data according to the off-chain data request event, and reach a consensus on the off-chain data. When a consensus on the off-chain data is reached, the off-chain data is sent to the digital collection contract server 1030 through the off-chain data acquisition contract server 1040;
[0161] The digital collection contract server 1030 is also used to add the off-chain data to the metadata of the digital collection, obtain the transaction result of the metadata addition transaction, and send the transaction result to the digital collection server 1020;
[0162] The digital collection server 1020 is also used to obtain the update result of the metadata of the digital collection according to the transaction result, and send the update result to the blockchain application server 1010.
[0163] In one embodiment, the off-chain data acquisition node 1050 is further used to:
[0164] Parse the off-chain data request event to obtain the off-chain request data type;
[0165] Call the off-chain data source server to obtain off-chain data according to the off-chain request data type.
[0166] In one embodiment, the off-chain data acquisition node 1050 is also used to send off-chain data to the off-chain data acquisition contract server 1040;
[0167] The off-chain data acquisition contract server 1040 is also used to aggregate all off-chain data to obtain aggregated off-chain data, and send the aggregated off-chain data to the digital collection contract server 1030.
[0168] In one embodiment, the digital collection contract server 1030 is further configured to:
[0169] Verify the address of the blockchain application server 1010 and the ownership information of the digital collection;
[0170] When the address of the blockchain application server 1010 is verified, and the ownership information of the digital collection is verified, a new transaction is added based on the metadata after the transaction is uploaded to the chain, and an off-chain data request event is issued to multiple off-chain data acquisition nodes 1050 through the off-chain data acquisition contract server 1040.
[0171] In one embodiment, the digital collection contract server 1030 is further configured to:
[0172] Obtain the server address of the blockchain application server 1010 and the issuer address of the digital collection;
[0173] When the server address and the issuer address are consistent, it is determined that the address verification of the blockchain application server 1010 has passed.
[0174] In one embodiment, the digital collection contract server 1030 is further configured to:
[0175] Obtain the owner address of the digital collection stored in the blockchain application server 1010;
[0176] Obtain the owner information of the digital collection and verify whether the owner information includes the owner address;
[0177] When it is determined that the owner information includes the owner address, it is determined that the owner information of the digital collection is verified.
[0178] In one embodiment, the digital collection server 1020 is further configured to:
[0179] Sign the metadata addition transaction to obtain the signed metadata addition transaction;
[0180] The signed metadata-added transaction is put on the chain.
[0181] In one embodiment, the digital collection server 1020 is further configured to:
[0182] Obtain key information of the blockchain application server 1010 according to the key escrow type of the blockchain application server 1010;
[0183] The metadata addition transaction is signed according to the key information to obtain the signed metadata addition transaction.
[0184] In one embodiment, the digital collection server 1020 is further configured to:
[0185] Authenticate the blockchain application server 1010;
[0186] When the blockchain application server 1010 is authenticated, the key information of the blockchain application server 1010 is obtained according to the key hosting type of the blockchain application server 1010.
[0187] In one embodiment, the transaction result includes identification information of the digital collection; the digital collection server 1020 is further configured to:
[0188] Obtaining identification information of digital collections in transaction results;
[0189] Obtain metadata of digital collections stored locally according to identification information;
[0190] The metadata of the digital collection stored locally is updated according to the transaction result to obtain an update result of the metadata of the digital collection.
[0191] In one embodiment, the blockchain application server 1010 is further used to:
[0192] Obtain identification information of digital collections;
[0193] Generate new transactions for metadata of digital collections based on identification information.
[0194] It should be noted that, since the digital collection information processing system 1000 of this embodiment can implement the digital collection information processing method of the previous embodiment, the digital collection information processing system 1000 of this embodiment and the digital collection information processing method of the previous embodiment have the same technical principles and the same beneficial effects, and in order to avoid duplication of content, they will not be repeated here.
[0195] Reference Fig.11 The embodiment of the present invention further discloses a digital collection information processing system, the digital collection information processing system 1100 comprising:
[0196] A plurality of processors 1101;
[0197] A plurality of memories 1102 for storing computer executable programs;
[0198] When the computer executable program is executed by multiple processors 1101, the digital collection information processing method as described above is implemented.
[0199] The embodiment of the present invention further discloses a computer-readable storage medium, in which a computer program executable by a processor is stored. When the computer program executable by the processor is executed by the processor, it is used to implement the digital collection information processing method as described above.
[0200] An embodiment of the present invention also discloses a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. The processor of the digital collection information processing system reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the digital collection information processing system executes the digital collection information processing method as described above.
[0201] The terms "first", "second", "third", "fourth", etc. (if any) in the description of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0202] It should be understood that in the present invention, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can represent: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0203] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0204] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0205] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0206] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0207] The step numbers in the above method embodiment are only provided for the convenience of explanation and description, and no limitation is imposed on the order of the steps. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
Claims
1. A method for processing digital collection information, It is characterized in that The following steps are involved: When a trigger event for updating the metadata of a digital collection is detected, the blockchain application server generates a metadata addition transaction for the digital collection and sends the metadata addition transaction to the digital collection server; The digital collection server uploads the metadata newly added transaction to the chain; The digital collection contract server adds a new transaction based on the metadata after the transaction is uploaded to the chain, and sends an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server; The multiple off-chain data acquisition nodes call the off-chain data source server to acquire the off-chain data according to the off-chain data request event, and reach a consensus on the off-chain data. When a consensus on the off-chain data is reached, each of the off-chain data acquisition nodes sends the off-chain data to the digital collection contract server through the off-chain data acquisition contract server; The digital collection contract server adds the off-chain data to the metadata of the digital collection, obtains the transaction result of the metadata new addition transaction, and sends the transaction result to the digital collection server; The digital collection server obtains an update result of the metadata of the digital collection according to the transaction result, and sends the update result to the blockchain application server.
2. The method for processing digital collection information according to claim 1, It is characterized in that The multiple off-chain data acquisition nodes call the off-chain data source server to acquire the off-chain data according to the off-chain data request event, including: Each of the off-chain data acquisition nodes parses the off-chain data request event to obtain the off-chain request data type; Each of the off-chain data acquisition nodes calls an off-chain data source server to acquire off-chain data according to the off-chain request data type.
3. The digital collection information processing method according to claim 1, It is characterized in that Each of the off-chain data acquisition nodes sends the off-chain data to the digital collection contract server through the off-chain data acquisition contract server, including: Each of the off-chain data acquisition nodes sends the off-chain data to the off-chain data acquisition contract server; The off-chain data acquisition contract server aggregates all the off-chain data to obtain aggregated off-chain data; The off-chain data acquisition contract server sends the aggregated off-chain data to the digital collection contract server.
4. The method for processing digital collection information according to claim 1, It is characterized in that The digital collection contract server sends an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server according to the metadata newly added transaction after the transaction is on-chain, including: The digital collection contract server verifies the address of the blockchain application server and verifies the owner information of the digital collection; When the address of the blockchain application server is verified and the owner information of the digital collection is verified, the digital collection contract server sends an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server based on the metadata newly added transaction after the transaction is uploaded to the chain.
5. The method for processing digital collection information according to claim 4, It is characterized in that The digital collection contract server performs address verification on the blockchain application server, including: The digital collection contract server obtains the server address of the blockchain application server and the address of the issuer of the digital collection; When the server address is consistent with the issuer address, the digital collection contract server determines that the address verification of the blockchain application server has been passed.
6. The method for processing digital collection information according to claim 4, It is characterized in that The digital collection contract server verifies the owner information of the digital collection, including: The digital collection contract server obtains the owner address of the digital collection stored by the blockchain application server; The digital collection contract server obtains the owner information of the digital collection and verifies whether the owner information includes the owner address; When it is determined that the owner information includes the owner address, the digital collection contract server determines that the verification of the owner information of the digital collection is passed.
7. The method for processing digital collection information according to claim 1, It is characterized in that The digital collection server performs a transaction on-chain for the metadata new transaction, including: The digital collection server signs the metadata new transaction to obtain the signed metadata new transaction; The digital collection server uploads the signed metadata newly added transaction to the chain.
8. The method for processing digital collection information according to claim 7, It is characterized in that The digital collection server signs the metadata new transaction to obtain the signed metadata new transaction, including: The digital collection server obtains the key information of the blockchain application server according to the key escrow type of the blockchain application server; The digital collection server signs the metadata new transaction according to the key information to obtain the signed metadata new transaction.
9. The method for processing digital collection information according to claim 8, It is characterized in that The digital collection server obtains the key information of the blockchain application server according to the key escrow type of the blockchain application server, including: The digital collection server authenticates the blockchain application server; When the blockchain application server is authenticated, the digital collection server obtains the key information of the blockchain application server according to the key hosting type of the blockchain application server.
10. The digital collection information processing method according to claim 1, It is characterized in that The transaction result includes identification information of the digital collectible; The digital collection server obtains an update result of the metadata of the digital collection according to the transaction result, including: The digital collection server obtains identification information of the digital collection from the transaction result; The digital collection server obtains metadata of the digital collection stored locally according to the identification information; The digital collection server updates the metadata of the digital collection stored locally according to the transaction result to obtain an update result of the metadata of the digital collection.
11. The method for processing digital collection information according to claim 1, It is characterized in that The blockchain application server generates a metadata addition transaction for the digital collection, including: The blockchain application server obtains identification information of the digital collection; The blockchain application server generates a metadata new transaction for the digital collection based on the identification information.
12. A digital collection information processing system, It is characterized in that It includes blockchain application server, digital collection server, digital collection contract server, off-chain data acquisition contract server and multiple off-chain data acquisition nodes; The blockchain application server is used to generate a metadata new transaction for the digital collection when a triggering event for updating the metadata of the digital collection is detected, and send the metadata new transaction to the digital collection server; The digital collection server is used to upload the metadata new transaction to the blockchain; The digital collection contract server is used to send an off-chain data request event to multiple off-chain data acquisition nodes through the off-chain data acquisition contract server according to the metadata newly added transaction after the transaction is on-chain; The off-chain data acquisition node is used to call the off-chain data source server to obtain the off-chain data according to the off-chain data request event, and reach a consensus on the off-chain data. When a consensus on the off-chain data is reached, the off-chain data is sent to the digital collection contract server through the off-chain data acquisition contract server; The digital collection contract server is further used to add the off-chain data to the metadata of the digital collection, obtain the transaction result of the metadata new addition transaction, and send the transaction result to the digital collection server; The digital collection server is further used to obtain an update result of the metadata of the digital collection according to the transaction result, and send the update result to the blockchain application server.
13. A digital collection information processing system, It is characterized in that include: Multiple processors; a plurality of memories for storing computer executable programs; When the computer executable program is executed by a plurality of the processors, the digital collection information processing method according to any one of claims 1 to 11 is implemented.
14. A computer-readable storage medium, It is characterized in that A computer program executable by a processor is stored therein, and when the computer program executable by the processor is executed by the processor, it is used to implement the digital collection information processing method as described in any one of claims 1 to 11.
15. A computer program product comprising a computer program or computer instructions, It is characterized in that The computer program or the computer instructions are stored in a computer-readable storage medium, and the processor of the digital collection information processing system reads the computer program or the computer instructions from the computer-readable storage medium. The processor executes the computer program or the computer instructions, so that the digital collection information processing system executes the digital collection information processing method as described in any one of claims 1 to 11.
