CN115983997A - Block chain-based collection management method, block chain node and system - Google Patents

Block chain-based collection management method, block chain node and system Download PDF

Info

Publication number
CN115983997A
CN115983997A CN202211734670.7A CN202211734670A CN115983997A CN 115983997 A CN115983997 A CN 115983997A CN 202211734670 A CN202211734670 A CN 202211734670A CN 115983997 A CN115983997 A CN 115983997A
Authority
CN
China
Prior art keywords
transaction
collection
account
user
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211734670.7A
Other languages
Chinese (zh)
Inventor
宋杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ant Blockchain Technology Shanghai Co Ltd
Original Assignee
Ant Blockchain Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ant Blockchain Technology Shanghai Co Ltd filed Critical Ant Blockchain Technology Shanghai Co Ltd
Priority to CN202211734670.7A priority Critical patent/CN115983997A/en
Publication of CN115983997A publication Critical patent/CN115983997A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W90/00Enabling technologies or technologies with a potential or indirect contribution to greenhouse gas [GHG] emissions mitigation

Abstract

A collection management method based on a block chain, a block chain node and a system are provided. The method performed by the block link point comprises: receiving a second transaction initiated by the collection detection mechanism after the target collection is detected, wherein the second transaction is used for calling an intelligent contract and comprises a first account registered by a first user in the blockchain system and a detection result of the target collection, and the target collection is held by the first user; newly adding on-chain data of digital resources corresponding to the target collection in the contract state of the intelligent contract according to the second transaction, wherein the on-chain data of the digital resources comprises a collection identification, a detection result and a first account of the target collection; receiving a first transaction initiated by a first account when a first user transfers a target collection to a second user, wherein the first transaction is used for calling an intelligent contract and comprises a collection identifier and a second account registered by the second user in a blockchain system; and adding a second account in the data on the digital resource chain according to the first transaction.

Description

Block chain based collection management method, block chain node and system
Technical Field
The embodiment of the specification belongs to the technical field of block chains, and particularly relates to a collection management method based on a block chain, a block chain node and a system.
Background
A block chain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. In the block chain system, data blocks are combined into a chain data structure in a sequential connection mode according to a time sequence, and a distributed account book which is not falsifiable and counterfeitable is ensured in a cryptographic mode. Because the blockchain has the characteristics of decentralization, information non-tampering, autonomy and the like, the blockchain is also paid more and more attention and is applied by people.
Disclosure of Invention
The invention aims to provide a collection management method based on a block chain, a block chain node and a system.
In a first aspect, a collection management method based on a blockchain is provided, and is executed by blockchain link points in a blockchain system, and intelligent contracts are deployed in the blockchain system. The method comprises the following steps: receiving a second transaction initiated by the collection detection mechanism after the target collection is detected, wherein the second transaction is used for calling an intelligent contract and comprises a first account registered by a first user in the blockchain system and a detection result of the target collection, and the target collection is held by the first user; according to the second transaction, newly adding chain data of digital resources corresponding to the target collection in the contract state of the intelligent contract, wherein the chain data of the digital resources comprise a collection identification, a detection result and a first account of the target collection; receiving a first transaction initiated by a first account when a first user transfers a target collection to a second user, wherein the first transaction is used for calling an intelligent contract and comprises a collection identifier and a second account registered by the second user in a blockchain system; and adding a second account in the data on the digital resource chain according to the first transaction.
In a second aspect, there is provided a blockchain point in a blockchain system, in which an intelligent contract is deployed, the blockchain point comprising: the transaction receiving unit is used for receiving a second transaction initiated by the Tibetan detection mechanism after the target Tibetan is detected, the second transaction is used for calling an intelligent contract, the second transaction comprises a first account of a first user registered in the blockchain system and a detection result of the target Tibetan, and the target Tibetan is held by the first user; the transaction execution unit is used for newly adding data on a digital resource chain corresponding to the target collection in the contract state of the intelligent contract according to the second transaction, wherein the data on the digital resource chain comprises the collection identification, the detection result and the first account of the target collection; the transaction receiving unit is also used for receiving a first transaction initiated by a first account when a first user transfers a target collection to a second user, the first transaction is used for calling an intelligent contract, and the first transaction comprises a collection identifier and a second account registered in the blockchain system by the second user; and the transaction execution unit is also used for adding a second account in the data on the digital resource chain according to the first transaction.
In a third aspect, a collection management system based on a blockchain is provided, where the collection management system includes a first device, a second device, and a blockchain system, and an intelligent contract is deployed in the blockchain system. Wherein: the second equipment is used for sending a second transaction to the blockchain system after the Tibetan detection structure finishes detecting the target Tibetan, the second transaction is used for calling an intelligent contract, the second transaction comprises a first account registered in the blockchain system by the first user and a detection result of the target Tibetan, and the target Tibetan is held by the first user; the block chain system is used for newly adding chain data of digital resources corresponding to the target collection in the contract state of the intelligent contract according to the second transaction, and the chain data of the digital resources comprise a collection identification, a detection result and a first account of the target collection; the system comprises a first device and a second device, wherein the first device is used for sending a first transaction to a blockchain system through a first account when a first user transfers a target collection to a second user, the first transaction is used for calling an intelligent contract, and the first transaction comprises a collection identifier and a second account registered by the second user in the blockchain system; and the block chain system is also used for newly adding a second account in the chain data of the digital resources corresponding to the target collection according to the first transaction.
In a fourth aspect, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed in a computer, causes the computer to carry out the method of the first aspect.
In a fifth aspect, a computing device is provided, comprising a memory and a processor, wherein the memory stores executable code, and the processor executes the executable code to implement the method of the first aspect.
In the technical scheme provided by the embodiment of the present specification, an intelligent contract is deployed in a blockchain system, a collection detection mechanism can initiate a second transaction for invoking the intelligent contract after detecting a target collection, the second transaction includes a first account registered by a first user in the blockchain system and a detection result of the target collection, the target collection is held by the first user, so that a blockchain node can add new on-chain data of a digital resource corresponding to the target collection in a contract state of the intelligent contract according to the second transaction, and the on-chain data of the digital resource includes a collection identifier, a detection result and a first account of the target collection. When a first user transfers a target collection to a second user, the first user can send a first transaction for calling the intelligent contract to the blockchain system through a first account, wherein the first transaction comprises a collection identification of the target collection and a second account registered in the blockchain system by the second user, so that the blockchain system adds the second account in the chain data of the digital resources corresponding to the target collection according to the first transaction. Therefore, when the target collection is transferred between the first user and the second user, the first account and the second account of the first user and the second user which are respectively registered in the blockchain system are recorded in the data on the chain of the digital resource corresponding to the target collection, so that the source tracing of the target collection is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments in the present specification, the drawings required to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present specification, and it is obvious for those skilled in the art that other drawings may be obtained according to these drawings without inventive labor.
FIG. 1 illustrates a block chain architecture in one embodiment;
fig. 2 is a schematic diagram of a collection management system based on a blockchain provided in an embodiment of the present disclosure;
fig. 3 is a flowchart of a method for managing collections based on blockchains in an embodiment of the present disclosure;
fig. 4 is a second flowchart of a collection management method based on a block chain according to an embodiment of the present specification;
fig. 5 is a third flowchart of a method for managing collections based on blockchains in an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a blockchain link point in a blockchain system provided in an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
The collection is more and more popular with users due to the cultural and technical value of the collection. The collection transaction can be typically conducted through a centralized collection transaction marketplace, brick and mortar store, or e-commerce platform. In addition, a user holding the collection can request the collection detection mechanism to detect the collection, and the collection detection mechanism packages the collection and provides a detection result of the collection; during the transaction of the collection, the user holding the collection may provide the user purchasing the collection with the packaged collection and the detection of the collection. For the transacted collections, tracing to the collections may be needed due to the question of doubt about the genuineness of the collections or the question of the legality of the collection sources, however, the source tracing to the collections is substantially difficult to support by the existing collection transaction mode.
In view of the above problems, embodiments of the present specification provide a method, a blockchain node, and a system for managing collections based on blockchains. The block chain system is provided with an intelligent contract, the contract state of the intelligent contract comprises data on a chain of digital resources corresponding to the target collection, the target collection is held by a first user, and the data on the chain of the digital resources comprises a collection identification of the target collection and a first account of the first user registered in the block chain system. When a first user transfers a target collection to a second user, the first user can send a first transaction for calling an intelligent contract to the blockchain system through a first account, wherein the first transaction comprises a collection identification of the target collection and a second account registered in the blockchain system by the second user, so that the blockchain system adds the second account in the data on the chain of the digital resources corresponding to the target collection according to the first transaction. Therefore, when the target collection is transferred between the first user and the second user, the first account and the second account of the first user and the second user which are respectively registered in the blockchain system are recorded in the data on the chain of the digital resource corresponding to the target collection, so that the source tracing of the target collection is facilitated.
FIG. 1 illustrates a block chain architecture diagram in one embodiment. In the blockchain architecture diagram shown in fig. 1, the blockchain system 100 includes N nodes, which are schematically shown as nodes 1-8 in fig. 1. The connecting lines between the nodes schematically represent P2P (Peer to Peer) connections, which may be, for example, TCP connections or the like, for transmitting data between the nodes. The nodes may have a full ledger stored on them, i.e. the status of all blocks and all accounts. Wherein each node in the blockchain can generate the same state in the blockchain by performing the same transaction, and each node in the blockchain can store the same state database.
A transaction in the blockchain domain may refer to a unit of task that is performed in the blockchain and recorded in the blockchain. The transaction typically includes a send field (From), a receive field (To), and a Data field (Data). Where the transaction is a transfer transaction, the From field indicates the address of the account From which the transaction was initiated (i.e., from which a transfer task To another account was initiated), the To field indicates the address of the account From which the transaction was received (i.e., from which a transfer was received), and the Data field includes the transfer amount.
The block chain may provide the functionality of an intelligent contract. An intelligent contract on a blockchain is a contract that can be executed on a blockchain system triggered by a transaction. An intelligent contract may be defined in the form of code. Calling the intelligent contract in the block chain is to initiate a transaction pointing to the intelligent contract address, so that each node in the block chain runs the intelligent contract code in a distributed mode.
In the scenario of contract deployment, for example, bob sends a transaction containing information to create an intelligent contract (i.e., a deployment contract) into the blockchain as shown in fig. 1, the data field of the transaction includes the code (e.g., bytecode or machine code) of the contract to be created, and the to field of the transaction is null to indicate that the transaction is for contract deployment. After the agreement is achieved among the nodes through a consensus mechanism, a contract address 0x6f8ae93 \ 8230of a contract is determined, each node adds a contract account corresponding to the contract address of the intelligent contract in a state database, allocates state storage corresponding to the contract account, stores contract codes, and stores hash values of the contract codes in the state storage of the contract, so that the contract is successfully created.
In the scenario of invoking a contract, for example, bob sends a transaction for invoking an intelligent contract into the blockchain as shown in fig. 1, where the from field of the transaction is the address of the account of the transaction initiator (i.e., bob), and the to field is the above-mentioned "0x6f8ae93 \8230", i.e., the address of the intelligent contract being invoked, and the data field of the transaction includes the method and parameters for invoking the intelligent contract. After the transaction is identified in the blockchain, each node in the blockchain can execute the transaction respectively, so that the contract is executed respectively, and the state database is updated based on the execution of the contract.
In the block chain system, a digital resource may be generated based on Non-homogeneous Tokens (NFT) technology, and the digital resource is usually characterized by irreplaceability, limitation, and the like and is not divisible. Different block chains may use different NFT protocol standards to generate the digital resource. The mainstream protocol standards include ERC721, ERC1155, ERC998, and the like. Where ERC721 is the most common NFT protocol standard, under the ERC721 standard, each generated digital resource has a unique identifier, and different digital resources are not replaceable with each other.
Fig. 2 is a schematic diagram of a collection management system based on a blockchain provided in an embodiment of the present disclosure. Referring to fig. 2, the collection management system may include a blockchain system 100 and a number of user devices connected to the blockchain system 100, including, for example, a device 201 held by user A1, a device 202 held by user A2, and a device 203 held by a collection detection agency; in addition, the collection management system may further include a service platform 300 connected to the device 201 and the device 202. The intelligent contract C1 can be deployed in the blockchain system and is used for supporting management of digital resources corresponding to the target collection.
The technical solution provided in the embodiment of the present specification is described in detail below with reference to the collection management system shown in fig. 2.
Fig. 3 is a flowchart of a method for managing collections based on blockchains in an embodiment of the present disclosure. The creation of the digital resource P corresponding to the target collection in the blockchain system can be accomplished by the method, which can include, but is not limited to, some or all of the following steps S31 and S35, as shown in fig. 3.
In step S31, after the collection detection mechanism finishes detecting the target collection, the device 203 sends a transaction Tx1 for invoking the smart contract C1 to the blockchain system 100 through the account a3 registered in the blockchain system 100 by the collection detection mechanism, where the transaction Tx1 includes the detection result of the target collection and the account A1 registered in the blockchain system 100 by the user A1 holding the target collection.
Transaction Tx1 is used to request the creation of digital resource P corresponding to the target collection in blockchain system 100. The from field of the transaction Tx1 is, for example, the account a3, the to field is, for example, the contract address of the smart contract C1, and the data field includes, for example, the detection result of the target collection, the account a1, and the function identification of the function that the transaction Tx1 is expected to call. In one possible embodiment, the data field of the transaction Tx1 may further include a collection identifier assigned to the target collection by the collection detection mechanism.
The detection result of the target collection may include, but is not limited to, one or more of the following items of information: image information, collection type, age information, producer, place of production, and collection grade. The image information can be 2D image information or 3D image information of the target collection collected/manufactured by the collection detection mechanism.
And step S33, adding chain data of a digital resource P corresponding to the target collection in the contract state of the intelligent contract C1 by the block link point according to the transaction Tx1, wherein the chain data of the digital resource P comprises a collection identification, a detection result and an account a1 of the target collection.
The block chain node may correspondingly execute a corresponding function in the intelligent contract C1 based on the function identifier included in the data field in the transaction Tx1, so as to add new data on the chain of the digital resource P corresponding to the target collection in the contract state of the intelligent contract C1, and complete the creation of the digital resource P corresponding to the target collection in the block chain system. In a possible implementation, the on-chain data of the digital resource P may include a home account field, and a plurality of subfields arranged in sequence may be reserved in the home account field, where the account a1 is written into the 1 st field of the plurality of subfields, and the values of the other subfields may be Null (Null).
In the case that the data field in the transaction Tx1 does not include the collection identification of the target collection, the blockchain node may further calculate the collection identification of the target collection through the execution of the corresponding function in the smart contract C1, for example, calculate the collection identification of the target collection based on the transaction Tx1, and more specifically, for example, calculate the hash value of the transaction Tx1 as the collection identification of the target collection.
Correspondingly, when the collection identifier of the target collection is generated by the block link point, the block link point may also complete the following step S35 of sending the collection identifier of the target collection to the device 203 based on the execution of the corresponding transaction Tx 1.
The collection detection mechanism can also encapsulate the target collection and provide the user A1 holding the target collection with the collection identifier of the target collection and the returned encapsulated target collection, so that the user can perform specific operations on the digital resource P corresponding to the target collection based on the collection identifier of the target collection, such as querying the data on the chain of the digital resource P and adding the home account of the digital resource P. The collection identifier of the collection of the target collection may be provided to the user A1 in a plain text, or the collection detection mechanism may further make a tag, such as a two-dimensional code or a Radio Frequency Identification (RFID) tag, storing the collection identifier of the target collection, provide the tag to the user A1, and attach the tag to the outside of the packaged target collection.
The foregoing describes, by way of example, the process of creating a digital resource corresponding to a target collection in a blockchain system, however it is to be understood that creating a digital resource corresponding to a target digital resource in a blockchain system may also be accomplished in other ways, such as by the device 201 sending a transaction to the blockchain system via account a1 requesting creation of a digital resource corresponding to a target collection in a blockchain system, and/or a detection result that a target collection may not be included in a digital resource corresponding to a target collection.
When a digital resource corresponding to a target collection has been created in the block chain system, for example, when the contract state of the intelligent contract C1 includes linked data of the digital resource P corresponding to the target collection, it is also possible to complete querying the linked data of the digital resource P according to the self requirement of the user A1 and to complete displaying the target collection to other users through a corresponding digital exhibition hall based on the linked data of the digital resource P by using part or all of the following steps S41 to S45 as shown in fig. 4.
In step S41, the device 201 sends a transaction Tx2 for invoking the smart contract C1 to the blockchain system 100 through the account A1 registered by the user A1 in the blockchain system 100, where the transaction Tx2 includes at least the collection identifier of the target collection.
Transaction Tx2 is used to request a query for the on-chain data of digital resource P corresponding to the target collection in blockchain system 100. The from field of the transaction Tx2 is, for example, the account a1, the to field is, for example, the contract address of the smart contract C1, and the data field includes, for example, the collection identification of the target collection and the function identification of the function that the transaction Tx2 is expected to call. User A1 may generate transaction Tx2 using device 201 and send transaction Tx2 to blockchain system 100, for example, by entering the collection identification of the target collection into device 201. Alternatively, the user may identify the tag storing the collection identification of the target collection by the device 201, so that the device 201 can obtain the collection identification of the target collection, and then generate transaction Tx2 by the device 201 and send transaction Tx2 to the blockchain system.
In step S43, the block link node sends the data on the chain of the digital resource P to the device 201 according to the transaction Tx2.
The block chain node may, for example, correspondingly execute a corresponding function in the intelligent contract C1 based on the function identifier included in the data field in the transaction Tx2, so as to implement querying, in the contract state of the intelligent contract C1, on-chain data of the digital resource P corresponding to the target collection based on the collection identifier of the target collection included in the data field in the transaction Tx2, and further determining whether the account a1 for initiating the transaction Tx2 is included in the digital resource P, and if so, sending, to the device 201, the on-chain data of the digital resource P corresponding to the target collection.
When the on-chain data of the digital resource P includes an attribution account field, and the attribution account field includes a plurality of subfields arranged in sequence, for a transaction Tx2 for requesting to query the digital resource P corresponding to the target collection, the block link node may further determine, through execution of a corresponding function in the intelligent contract C1, whether an account recorded in the last 1 non-empty subfield of the plurality of subfields arranged in sequence is an account for initiating the transaction Tx2, and if so, it indicates that the account requesting to query the on-chain data of the digital resource P is an account registered in the block chain system by the user currently holding the target collection, and at this time, the on-chain data of the digital resource P may be allowed to be returned to the device sending the transaction Tx2; if otherwise, it is stated that the account requesting the inquiry for the data on the chain of digital resource P is not the account registered in the blockchain system by the user currently holding the target collection, the data on the chain of digital resource P may not be returned to the device sending transaction Tx2.
The user A1 may directly present the data on the chain of the digital resource P to other users, e.g. the user A2, via the device 201. When the data on the chain of the digital resource P includes the detection result of the target collection, other users, such as the user A2, can know the related information of the target collection through the data on the chain of the digital resource P without directly visiting the target collection.
In one possible implementation, a digital exhibition hall may be provided to a user through a corresponding service platform 300, which service platform 300 may be maintained by a collection detection facility or other participant, and a single digital exhibition hall may consist of a single or multiple pages, for example. Correspondingly, the device 201 may further perform the following step S45 based on the digital exhibition hall provided by the service platform, and add the on-chain data of the digital resource P in the digital exhibition hall provided by the service platform 300.
The digital exhibition hall provided by the service platform 300 may be bound to the user, for example, i.e. the service platform 300 may provide the user A1 with the digital exhibition hall belonging to the user A1, for example, so that the user A1 may add the on-chain data of the digital resource P to the digital exhibition hall belonging to the user A1 through the device 201. Alternatively, the digital exhibition hall provided by the service platform 300 may be open to all users, i.e., the service platform 300 allows any user to add to the digital exhibition hall the on-chain data of the digital resource corresponding to the collection that the user holds. In this way, for other users, such as the user A2, to access the digital exhibition hall provided by the service platform 300 through the device 202, such as the digital exhibition hall belonging to the user A1 and to which the on-chain data of the digital resource P has been added, the user A1 knows the relevant information of the target collection held by the user A1.
When a digital resource corresponding to a target collection is created in the blockchain system, for example, when the contract state of the smart contract C1 includes data on the chain of the digital resource P corresponding to the target collection, the data on the chain of the digital resource P corresponding to the target collection may be updated when the user A1 holding the target collection transfers/sells the target collection to the user A2 through the following steps S51 and S53 as shown in fig. 5.
In step S51, when the user A1 transfers the target collection to the user A2, the device 201 sends a transaction Tx3 for invoking the smart contract C1 to the blockchain system 100 through the account A1 registered by the user A1 in the blockchain system 100, where the transaction Tx3 includes the collection identifier of the target collection and the account A2 registered by the user A2 in the blockchain system.
Transaction Tx3 is used to request an update of the on-chain data of digital resource P corresponding to the target collection in the blockchain system. The from field of the transaction Tx2 is, for example, the account a1, the to field is, for example, the contract address of the smart contract C1, and the data field includes, for example, the collection identification of the target collection, the account a2, and the function identification of the function that the transaction Tx3 is expected to call. The user A1 may input the collection identification and account a2 of the target collection into the device 201, and then generate transaction Tx3 using the device 201 and send transaction Tx2 to the blockchain system; alternatively, the user may identify the tag storing the collection identification of the target collection through the device 201, so that the device 201 obtains the collection identification of the target collection and inputs the account a2 into the device 201, thereby generating a transaction Tx3 and transmitting the transaction Tx3 to the blockchain system.
In step S53, the blockchain node adds an account A2 registered in the blockchain system 100 by the user A2 to the data on the chain of the digital resource P corresponding to the target collection according to the transaction Tx3.
The block chain node may, for example, correspondingly execute a corresponding function in the intelligent contract C1 based on the function identifier included in the data field in the transaction Tx3, so as to implement that, based on the collection identifier of the target collection included in the data field in the transaction Tx3, the data on the chain of the digital resource P corresponding to the target collection is queried in the contract state of the intelligent contract C1, and then determine whether the account a1 initiating the transaction Tx3 is included in the digital resource P, if so, add an account a2 in the data on the chain of the digital resource P.
In the case that the on-chain data of the digital resource P includes the home account field, and the home account field includes a plurality of subfields arranged in sequence, for the transaction Tx3 for requesting to update the on-chain data of the digital resource P corresponding to the target collection, the block link node may further perform, through execution of a corresponding function in the intelligent contract C1, a determination of whether an account recorded in the last 1 non-empty subfield of the plurality of subfields arranged in sequence is an account for initiating the transaction Tx3, and if so, it indicates that the account requesting to update the on-chain data of the digital resource P is an account registered in the block chain system by the user currently holding the target collection, and at this time, it may allow the 1 st non-empty subfield of the plurality of subfields arranged in sequence to record an account (for example, account a 2) located in the data field of the transaction Tx 3; if the account requesting to update the data on the chain of digital resource P is not the account registered in the blockchain system by the user currently holding the target collection, updating the data on the chain of digital resource P may not be performed.
Similarly, when the block chain system finishes adding the account A2 to the data on the chain of the digital resource P, it indicates that the user A2 currently holding the account A2 holds the target collection corresponding to the digital resource P. When the user A2 transfers/sells the target collection to another user, for example, the user A3, the recording of the account A3 in the data on the chain of the digital resource P, specifically, the recording of the account A3 in the sub-field whose 1 st is empty among the plurality of sub-fields arranged in sequence, may be accomplished through a process similar to the foregoing steps S41 and S43.
Through the process of updating the data on the chain of the digital resource P corresponding to the target collection, which is described in the foregoing exemplary description, when the user currently holding the target collection transfers/sells the target collection to the user currently purchasing the target collection, the user account for selling the target collection and the user account for purchasing the target collection are recorded at the same time, which is beneficial to tracing the source of the target collection through the account recorded in the data on the chain of the digital resource P corresponding to the target collection when the actual business requirement is met.
The block chain link point in the block chain system is provided, and the contract state of the intelligent contract comprises on-chain data of a digital resource corresponding to a target collection, wherein the target collection is held by a first user, and the on-chain data of the digital resource comprises a collection identifier of the target collection and a first account registered by the first user in the block chain system. As shown in fig. 6, the blockchain node includes: a transaction receiving unit 61, configured to receive a first transaction initiated through the first account when the first user transfers the target collection to a second user, where the first transaction is used to invoke the intelligent contract, and the first transaction includes the collection identifier and a second account registered by the second user in the blockchain system; and a transaction executing unit 63, configured to add the second account to the data in the chain of the digital resource according to the first transaction.
In a possible implementation manner, the transaction receiving unit 61 is further configured to receive a second transaction initiated by the collection detection mechanism after the detection on the target collection is completed, where the second transaction is used to invoke the smart contract, and the second transaction includes the detection results of the first account and the target collection; the transaction execution unit 63 is further configured to add new data on the chain of the digital resource in the contract state of the intelligent contract according to the second transaction, where the data on the chain of the digital resource includes the collection identifier of the target collection, the detection result, and the first account.
In a possible embodiment, the detection result includes one or more of the following items of information: image information, collection type, age information, producer, place of production, and collection grade.
In one possible embodiment, the second transaction further includes the collection identification.
In a possible implementation, the transaction execution unit 63 is further configured to generate the collection identifier according to the second transaction.
In a possible implementation, the transaction receiving unit 61 is further configured to receive, from the first device, a third transaction initiated through the first account, where the third transaction is used to invoke the smart contract, and the third transaction includes the collection identifier; the transaction executing unit 63 is further configured to send the data on the chain of the digital resource to the first device according to the third transaction.
The method comprises the steps of configuring a block chain system, wherein the block chain system is provided with an intelligent contract, the contract state of the intelligent contract comprises on-chain data of a digital resource corresponding to a target collection, the target collection is held by a first user, and the on-chain data of the digital resource comprises a collection identification of the target collection and a first account of the first user registered in the block chain system. Wherein: the first device is used for sending a first transaction to the blockchain system through the first account when the target collection is transferred from the first user to a second user, wherein the first transaction is used for invoking the intelligent contract, and the first transaction comprises the collection identification and a second account registered in the blockchain system by the second user; and the block chain system is used for adding the second account in the data on the chain of the digital resource according to the first transaction.
In a possible implementation manner, the collection management system further includes a second device, configured to send a second transaction to the blockchain system after the collection detection mechanism completes detection of the target collection, where the second transaction is used to invoke the smart contract, and the second transaction includes the first account and a detection result of the target collection; the block chain system is further configured to add new on-chain data of the digital resource in a contract state of the intelligent contract according to the second transaction, where the on-chain data of the digital resource includes the collection identifier of the target collection, the detection result, and the first account.
In a possible embodiment, the detection result includes one or more of the following items of information: image information, collection type, age information, producer, place of production, and collection grade.
In one possible embodiment, the second transaction further comprises the collection identification;
in one possible implementation, the blockchain system is further configured to generate the collection identification based on the second transaction.
In a possible implementation, the first device is further configured to send a third transaction to the blockchain system through the first account, where the third transaction is used to invoke the smart contract, and the third transaction includes the collection identifier; the blockchain system is further configured to send the on-chain data of the digital resource to the first device according to the third transaction.
In a possible implementation manner, the collection management system further comprises a service platform; the first device is further configured to add the data on the chain of the digital resource in a digital exhibition hall provided by the service platform.
Embodiments of the present description also provide a computer-readable storage medium having stored thereon a computer program, which, when executed in a computer, causes the computer to perform the method of fig. 3-5, performed by the apparatus 201, the apparatus 203, or the block link point.
Embodiments of the present disclosure also provide a computing device, which includes a memory and a processor, where the memory stores executable code, and the processor executes the executable code to implement the method executed by the device 201, the device 203, or the block link point in fig. 3 to 5.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as ABEL (Advanced Boolean Expression Language), AHDL (alternate Hardware Description Language), traffic, CUPL (core universal Programming Language), HDCal, jhddl (Java Hardware Description Language), lava, lola, HDL, PALASM, rhyd (Hardware Description Language), and vhigh-Language (Hardware Description Language), which is currently used in most popular applications. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium that stores computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be conceived to be both a software module implementing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a server system. Of course, this application does not exclude that with future developments in computer technology, the computer implementing the functionality of the above described embodiments may be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device or a combination of any of these devices.
Although one or more embodiments of the present description provide method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or end product executes, it may execute sequentially or in parallel (e.g., parallel processors or multi-threaded environments, or even distributed data processing environments) according to the method shown in the embodiment or the figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded. For example, the use of the terms first, second, etc. are used to denote names, but not to denote any particular order.
For convenience of description, the above devices are described as being divided into various modules by functions, which are described separately. Of course, when implementing one or more of the present description, the functions of each module may be implemented in one or more software and/or hardware, or the modules implementing the same functions may be implemented by a combination of a plurality of sub-modules or sub-units, etc. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage, graphene storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
One skilled in the art will appreciate that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In the present specification, the schematic representation of the above terms is not necessarily required
The same embodiment or example must be addressed. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any 5 or more embodiments or examples. In addition, those skilled in the art will not be able to contradict each other
The various embodiments or examples and features of the various embodiments or examples described in this specification can be combined and combined.
The above description is merely exemplary of one or more embodiments of the present disclosure and is not intended to limit the scope of one or more embodiments of the present disclosure. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art
And (4) melting. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims 0.

Claims (15)

1. A collection management method based on a blockchain is executed by blockchain link points in a blockchain system, intelligent contracts are deployed in the blockchain system, and the method comprises the following steps:
receiving a second transaction initiated by a collection detection mechanism after the detection of a target collection is finished, wherein the second transaction is used for calling the intelligent contract, the second transaction comprises a first account registered in the blockchain system by a first user and a detection result of the target collection, and the target collection is held by the first user;
according to the second transaction, newly adding data on a digital resource chain corresponding to the target collection in the contract state of the intelligent contract, wherein the data on the digital resource chain comprises the collection identification of the target collection, the detection result and the first account;
receiving a first transaction initiated by the first user through the first account when the target collection is transferred to a second user, wherein the first transaction is used for invoking the intelligent contract and comprises the collection identification and a second account registered by the second user in the blockchain system;
and adding the second account in the data on the digital resource chain according to the first transaction.
2. The method of claim 1, the detection results comprising one or more of the following items of information: image information, collection type, age information, producer, production place and collection grade.
3. The method of claim 1, further comprising the collection identification in the second transaction;
alternatively, the method further comprises: and generating the collection identification according to the second transaction.
4. The method of any of claims 1-3, further comprising:
receiving a third transaction initiated through the first account from the first device, the third transaction being used to invoke the smart contract, the third transaction including the collection identification;
transmitting the on-chain data of the digital resource to the first device according to the third transaction.
5. A blockchain node in a blockchain system having intelligent contracts deployed therein, the blockchain node comprising:
the transaction receiving unit is used for receiving a second transaction initiated by a collection detection mechanism after the detection of a target collection is completed, the second transaction is used for calling the intelligent contract, the second transaction comprises a first account registered in the blockchain system by a first user and a detection result of the target collection, and the target collection is held by the first user;
the transaction execution unit is used for newly adding data on a digital resource chain corresponding to the target collection in the contract state of the intelligent contract according to the second transaction, wherein the data on the digital resource chain comprises the collection identification of the target collection, the detection result and the first account;
the transaction receiving unit is further configured to receive a first transaction initiated through the first account when the first user transfers the target collection to a second user, where the first transaction is used to invoke the smart contract, and the first transaction includes the collection identifier and a second account registered by the second user in the blockchain system;
the transaction execution unit is further configured to add the second account to the data on the chain of digital resources according to the first transaction.
6. The blockchain node of claim 5, the detection result including one or more of the following information: image information, collection type, age information, producer, place of production, and collection grade.
7. The blockchain node of claim 5, further including the collection identification in the second transaction;
or, the transaction execution unit is further configured to generate the collection identifier according to the second transaction.
8. The blockchain node of any one of claims 5-7, wherein,
the transaction receiving unit is further configured to receive a third transaction initiated through the first account from the first device, where the third transaction is used to invoke the smart contract, and the third transaction includes the collection identifier;
the transaction execution unit is further configured to send the on-chain data of the digital resource to the first device according to the third transaction.
9. A collection management system based on a blockchain comprises a first device, a second device and a blockchain system, wherein an intelligent contract is deployed in the blockchain system, and the blockchain system comprises:
the second device is used for sending a second transaction to the blockchain system after the collection detection mechanism finishes detecting the target collection, the second transaction is used for calling the intelligent contract, the second transaction comprises a first account registered in the blockchain system by a first user and a detection result of the target collection, and the target collection is held by the first user;
the block chain system is used for newly adding data on a chain of digital resources corresponding to the target collection in the contract state of the intelligent contract according to the second transaction, wherein the data on the chain of the digital resources comprises a collection identifier of the target collection, the detection result and the first account;
the first device is used for sending a first transaction to the blockchain system through the first account when the target collection is transferred from the first user to a second user, wherein the first transaction is used for invoking the intelligent contract, and the first transaction comprises the collection identification and a second account registered in the blockchain system by the second user;
and the blockchain system is also used for adding the second account in the data on the digital resource chain according to the first transaction.
10. The collection management system of claim 9, wherein the detection results comprise one or more of the following items of information: image information, collection type, age information, producer, place of production, and collection grade.
11. The collection management system of claim 9, further comprising the collection identification in the second transaction;
or, the blockchain system is further configured to generate the collection identifier according to the second transaction.
12. The collection management system of any of claims 9-11, wherein:
the first device is further configured to send a third transaction to the blockchain system through the first account, where the third transaction is used to invoke the smart contract, and the third transaction includes the collection identifier;
the blockchain system is further configured to send the on-chain data of the digital resource to the first device according to the third transaction.
13. The collection management system of claim 12, further comprising a business platform; the first device is further configured to add the data on the chain of the digital resource in a digital exhibition hall provided by the service platform.
14. A computer-readable storage medium having stored thereon a computer program which, when executed in a computing device, performs the method of any of claims 1-4.
15. A computing device comprising a memory having executable code stored therein and a processor that, when executing the executable code, implements the method of any of claims 1-4.
CN202211734670.7A 2022-12-30 2022-12-30 Block chain-based collection management method, block chain node and system Pending CN115983997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211734670.7A CN115983997A (en) 2022-12-30 2022-12-30 Block chain-based collection management method, block chain node and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211734670.7A CN115983997A (en) 2022-12-30 2022-12-30 Block chain-based collection management method, block chain node and system

Publications (1)

Publication Number Publication Date
CN115983997A true CN115983997A (en) 2023-04-18

Family

ID=85975722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211734670.7A Pending CN115983997A (en) 2022-12-30 2022-12-30 Block chain-based collection management method, block chain node and system

Country Status (1)

Country Link
CN (1) CN115983997A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116484326A (en) * 2023-06-12 2023-07-25 深圳市旭子科技有限公司 Multi-account access authority management method and related device based on NFT

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116484326A (en) * 2023-06-12 2023-07-25 深圳市旭子科技有限公司 Multi-account access authority management method and related device based on NFT
CN116484326B (en) * 2023-06-12 2024-01-26 深圳市旭子科技有限公司 Multi-account access authority management method and related device based on NFT

Similar Documents

Publication Publication Date Title
CN110992038B (en) Transaction processing method, device and equipment
CN111340631A (en) Asset transfer method, device, equipment and system
CN109669709A (en) A kind of data migration method and data mover system of the upgrading of block chain
CN113221192B (en) Block chain-based digital asset processing method and device
CN113495797B (en) Message queue and consumer dynamic creation method and system
CN114529417A (en) Method for executing transaction, block chain, main node and slave node
CN114547203A (en) Method for executing transaction, block chain, main node and slave node
CN111461623A (en) Block chain-based warehouse bill creating method, device and equipment
CN115983997A (en) Block chain-based collection management method, block chain node and system
US20120159515A1 (en) Sharing object representations
CN114936092A (en) Method for executing transaction in block chain and main node of block chain
CN114936094A (en) Method for executing transaction in block chain, master node and slave node of block chain
CN114708093A (en) Block chain-based digital resource processing method and device
CN115860884A (en) Method and device for processing digital resources in block chain system
CN109857450A (en) A kind of verification service orchestration method and device
CN115098483A (en) Pre-execution cache data cleaning method and block link point
US8260782B2 (en) Data element categorization in a service-oriented architecture
CN114358936A (en) Intelligent contract operation method based on micro-service block chain
CN114968422A (en) Method and device for automatically executing contracts based on variable state
CN115098114A (en) Block chain-based distributed application deployment method and device
CN114785800A (en) Cross-link communication method and device
CN115731040A (en) Block chain-based collection management method, block chain node and system
CN114782016A (en) Creditor data processing method and device based on intelligent contract and block chain system
CN111047415B (en) Clothing accessory order processing method, system, electronic equipment and storage medium
CN113949637A (en) Intelligent distribution and deployment method and device for switch resources

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination