Digital entity processing method and apparatus, device, medium, and program product
By generating and signing entity operation credentials, the security and traceability issues of digital entity operations are solved, safe and reliable operation records of digital entities are achieved, and management and supervision capabilities are improved.
Patent Information
- Application Number
- PCT/CN2023/094699
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-07-29
- Filing Date
- 2023-05-17
- Publication Date
- 2024-09-12
AI Technical Summary
Existing technologies fail to effectively solve the security and traceability issues of digital entities when performing operations. Operators can directly perform operations on digital entities without a background recording mechanism.
Generate entity operation vouchers by obtaining the digital identification and operation information of the target object, and only sign and execute the operation after the target object confirms it, ensuring the recording and traceability of the operation.
It improves the security of digital entities and the traceability of operations, ensures the identity verification and operation records of target objects, and enhances the management and supervision capabilities of digital entities.
Smart Images

Figure CN2023094699_12092024_PF_FP_ABST
Abstract
Description
A digital entity processing method, device, equipment, medium and program product
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on July 29, 2022, with application number 2022109138257 and application name “A method, device, equipment, medium and program product for processing digital products”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to digital entity processing technology. Background Art
[0003] A digital entity is a digital entity that is uniquely identified based on blockchain technology. Compared with actual entities, digital entities have the advantages of being easy to carry, disseminate, and permanently preserve.
[0004] Currently, operations such as minting, publishing, or transferring digital entities are supported to achieve their minting and circulation. However, these operations are performed without considering issues such as the security of the digital entity and the traceability of the operation. Operators can directly perform operations on digital entities (such as transferring digital entities) without any relevant operation recording mechanism in the background. Therefore, improving security and traceability has become a pressing issue.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a method, apparatus, device, medium, and program product for processing digital entities, which can improve the security of digital entities and the traceability of related operations.
[0007] In one aspect, an embodiment of the present application provides a method for processing a digital entity, which is performed by an electronic device. The method includes:
[0008] When an operation request initiated by a target object on a digital entity is obtained, a digital identifier of the target object is obtained, and the operation request carries operation information of a target operation requested by the target object to be performed on the digital entity;
[0009] Generate an entity operation credential based on the digital identifier of the target object and the operation information; the entity operation credential is used to indicate the target operation requested to be performed on the digital entity, and is used to indicate that the requester of the target operation is the target object;
[0010] If the target object confirms to perform the target operation on the digital entity, then obtaining declaration data, the declaration data being obtained by signing the entity operation credential using the first signature data of the target object;
[0011] Perform targeted actions on digital entities based on declarative data.
[0012] On the other hand, an embodiment of the present application provides a digital entity processing device, the device comprising:
[0013] An acquiring unit, configured to acquire the digital identifier of the target object upon acquiring an operation request initiated by the target object on the digital entity, wherein the operation request carries operation information of the target operation requested by the target object to be performed on the digital entity;
[0014] A processing unit, configured to generate an entity operation credential based on the digital identifier of the target object and the operation information; the entity operation credential is used to indicate that a target operation is requested to be performed on the digital entity, and is used to indicate that the requester of the target operation is the target object;
[0015] The processing unit is further configured to obtain declaration data if the target object confirms to perform the target operation on the digital entity, where the declaration data is obtained by performing signature processing on the entity operation credential using the first signature data of the target object;
[0016] The processing unit is further used to perform target operations on the digital entity based on the declaration data.
[0017] In another aspect, the present application provides an electronic device, comprising:
[0018] a processor for loading and executing computer programs;
[0019] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned digital entity processing method.
[0020] On the other hand, the present application provides a computer-readable storage medium storing a computer program, which is suitable for being loaded by a processor and executing the above-mentioned digital entity processing method.
[0021] In another aspect, the present application provides a computer program product or computer program, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the above-described method for processing a digital entity.
[0022] In an embodiment of the present application, when an operation request initiated by a target object for a digital entity is received, an entity operation certificate can be generated based on the digital identification of the target object and the operation information carried by the operation request, and the entity operation certificate indicates that the target operation is requested to be performed on the digital entity, and the requester of the target operation is the target object; by generating the entity operation certificate of the digital entity, the target object can obtain the entity operation certificate, thereby intuitively informing the target object of the information related to the digital entity through the entity operation certificate, optimizing the expression and readability of the digital entity. Moreover, only when the target object confirms that the target operation is performed on the digital entity, that is, the declaration data (i.e., the entity operation certificate after the signature processing) is obtained, and the declaration data is successfully verified, the target operation is performed on the digital entity. In an embodiment of the present application, the digital identification of the target object is carried through the operation process for the digital entity, and the entity operation certificate and declaration data are generated based on the digital identification of the target object. In this way, in the process of performing the target operation on the digital entity, the relevant operations performed on the digital entity and the execution object of the relevant operations are intuitively and reliably recorded, thereby ensuring the security of the digital entity and the traceability of the relevant operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] FIG1a is a schematic diagram of the structure of a blockchain provided by an exemplary embodiment of the present application;
[0024] FIG1b is a schematic structural diagram of a data sharing system provided by an exemplary embodiment of the present application;
[0025] FIG2a is a schematic diagram of the architecture of a digital entity processing system provided by an exemplary embodiment of the present application;
[0026] FIG2 b is a schematic structural diagram of a blockchain application protocol model provided by an exemplary embodiment of the present application;
[0027] Figure 2c is a schematic diagram of a protocol mapping relationship between an NFT smart contract and a DID smart contract provided by an exemplary embodiment of the present application;
[0028] FIG2 d is a schematic diagram of an NFT protocol design based on the DID protocol provided by an exemplary embodiment of the present application;
[0029] FIG3 is a flow chart of a method for processing a digital entity provided by an exemplary embodiment of the present application;
[0030] FIG4 is a schematic diagram of an output entity operation credential provided by an exemplary embodiment of the present application;
[0031] FIG5 is a flow chart of another method for processing a digital entity provided by an exemplary embodiment of the present application;
[0032] FIG6 is a schematic diagram of a process of casting a digital entity provided by an exemplary embodiment of the present application;
[0033] FIG7 is a flowchart of another method for processing a digital entity provided by an exemplary embodiment of the present application;
[0034] FIG8 is a schematic diagram of a process of transferring a digital entity provided by an exemplary embodiment of the present application;
[0035] FIG9 is a schematic structural diagram of a digital entity processing device provided by an exemplary embodiment of the present application;
[0036] FIG10 is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0038] The embodiments of the present application provide a method for processing digital entities, which mainly relates to blockchain technology, specifically to typical applications in blockchain technology, including: Decentralized Identity (DID) and Non-Fungible Token (NFT).
[0039] The following is a brief description of the technical terms and concepts involved in the embodiments of the present application, wherein:
[0040] 1) Blockchain is the foundation of blockchain technology; it is a new application model for computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a series of data blocks linked using cryptographic methods. Each block contains information about a batch of online transactions, which is used to verify the validity of the information (to prevent counterfeiting) and generate the next block. A structural diagram of a blockchain can be seen in Figure 1a. As shown in Figure 1a, the blockchain consists of multiple blocks. The first block of the blockchain is called the genesis block (which can be simply referred to as the genesis block). The genesis block includes a block header and a block body. The block header stores the input information feature value, version number, timestamp and difficulty value, and the block body stores the input information; the next block of the genesis block uses the genesis block as a child block, which can also be understood as the genesis block being the parent block of the next block. The next block also includes a block header and a block body. The block header stores the block header feature value of the parent block, the input information feature value, version number, timestamp and difficulty value of the current block, and so on, so that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, thereby ensuring the security of the input information in the block.
[0041] A blockchain can be maintained by the blockchain nodes included in a blockchain network. The blockchain network can be understood as a data sharing system, which refers to a system for implementing data sharing between blockchain nodes. An exemplary structure of the data sharing system can be seen in FIG1b. As shown in FIG1b, the data sharing system may include multiple blockchain nodes 101. Each blockchain node 101 may be a server connected to the blockchain network or a terminal connected to the blockchain network (such as a client running in the terminal). The specific form of the blockchain node 101 is not limited here. Each blockchain node 101 in the blockchain network has a corresponding node identifier, and each blockchain node 101 in the blockchain network can store the node identifiers of other blockchain nodes 101 in the blockchain network, so that the generated blocks can be broadcast to other blockchain nodes 101 in the data sharing system based on the node identifiers of other blockchain nodes 101, thereby achieving distributed storage of the data contained in the blocks in the blockchain network, ensuring the data is tamper-proof, non-replicable, and permanently stored.
[0042] It should be noted that ① when implementing a certain business based on a blockchain network, smart contracts must be followed. A smart contract can refer to: a digital protocol that deploys the protocol specifications required to execute the business in code form on a blockchain network; specifically, a smart contract is deployed on a blockchain node in a blockchain network, so that the smart contract is run through the blockchain node to implement the business corresponding to the smart contract. For example, the business corresponding to the smart contract is a transaction, that is, the smart contract is a contract used for transactions. For example, the smart contract includes: querying the logistics status of the goods purchased by the consumer, and transferring the consumer's electronic resources (such as resources used for commodity transactions on the Internet) to the merchant's address after the consumer signs for the goods; then, after the consumer has signed for the goods, the smart contract can be run (specifically, the code for running the smart contract) to transfer the consumer's electronic resources (such as resources used for commodity transactions on the Internet) to the merchant's address. Of course, the above is only an exemplary application of smart contracts given in the embodiment of this application.
[0043] ② Based on the degree of openness of a blockchain network, the blockchains maintained by the network are primarily categorized into three types: public, consortium, and private. A public blockchain refers to a blockchain in which any node (e.g., a blockchain node corresponding to a single object or a collective object) can send transaction data, transaction data can be effectively confirmed, and any node can participate in the consensus process. A consortium blockchain refers to a blockchain in which some nodes can participate in the block consensus process, while others do not. For example, a consortium blockchain network can designate multiple pre-selected nodes as ledger nodes (e.g., nodes with consensus authority). Each block on the consortium chain is jointly determined by all ledger nodes (i.e., the pre-selected nodes participate in the consensus process). Other connected nodes in the blockchain network, excluding ledger nodes, can participate in transactions but do not participate in the consensus process. A private blockchain refers to a blockchain in which a single node in the network has exclusive write access (e.g., uploading a block after consensus).
[0044] 2) Digital entities may include non-fungible tokens (NFTs), a set of digital asset protocols based on blockchain technology. Specifically, an entity is digitized and placed on a blockchain, making it a unique, indivisible, and rare digital entity. For ease of explanation, the abbreviation NFT will be used to represent digital entities. Physical forms that can be converted into digital entities include, but are not limited to, digital images (or digital pictures), audio and video, 3D (3-dimensional) models, electronic tickets, and digital souvenirs. This embodiment of the present application does not limit the physical form of the physical entity. Digital entities are stored on the blockchain and possess properties such as immutability and non-copyability, which give digital entities unique value compared to physical entities. For example, the digital certificate corresponding to a digital entity can be stored on the blockchain. This allows the digital entity to be permanently preserved and protected from tampering and copying as long as the blockchain exists. For another example, the digital entity exists in a digital form on the blockchain, making it easy for the owner to carry and disseminate.
[0045] In practical applications, interactive operations (or target operations) can be performed on digital entities within a blockchain network, including but not limited to the minting and transfer of digital entities. Minting a digital entity refers to the use of blockchain technology to digitally encrypt a digital entity, giving it a uniquely identifying digital certificate (also known as a serial number, blockchain ID, etc.). This digital certificate serves as proof of the holder's ownership of the digital entity. The corresponding digital certificate is then stored on the blockchain, enabling the digital entity to be on-chain. Transferring a digital entity refers to the process of transferring a digital entity from its current holder to another object, whereupon the other object acquires operational permissions over the digital entity. For example, if the current holder of a digital entity is a target object (e.g., any object), then the target object transfers the digital entity to a reference object (e.g., another object different from the target object). This essentially transfers operational permissions (e.g., selling, displaying, etc.) over the digital entity to the reference object. After the transfer, the reference object acquires operational permissions over the digital entity.
[0046] As described above, smart contracts deploy protocol specifications in the form of code on the blockchain network, which allows the target object to access the NFT smart contract on the blockchain network through a decentralized application (DApp) (such as an NFT wallet) to achieve target operations such as minting or transferring digital entities (or digital assets). Specifically, the NFT smart contract follows the NFT smart contract interface protocol standard (such as ERC721 or ERC1155) to facilitate third-party services (such as NFT exchanges) to call the NFT standard interface to achieve interoperability for NFTs (such as NFT minting, issuance, buying and selling, etc.). In addition, digital assets are locked in the corresponding account in the form of tokens on the blockchain. The token is associated with the metadata of the NFT asset. The metadata contains relevant information describing the content of the NFT, including but not limited to: storage location or historical data.
[0047] 3) Decentralized Identity (DID), or distributed digital identity,
[0048] Essentially, it's a blockchain-based digital identity and credential signature verification protocol, encompassing two core components: distributed identity identifiers (DIDs) and verifiable credentials (VCs). Distributed digital identity infrastructure can be deployed in a distributed environment (such as a blockchain network), rather than in a centralized environment controlled by a single organization or consortium. This allows for true autonomy of identity, which can refer to people, organizations, or objects. In other words, entities possessing distributed digital identities are not limited to living people or animals, but can also include other non-living objects.
[0049] Distributed digital identifiers (DIDs) are identifiers composed of strings (strings of data consisting of characters, such as ahd21db23XX) that represent the digital identity of a target object. They achieve global uniqueness without the need for a registration authority. An object can often have multiple digital identities, each assigned a unique DID value and associated asymmetric keys (i.e., different public and private keys). Different digital identities are unrelated, effectively preventing the aggregation of owner identity information. Verifiable credentials (VCs) are declarations formed by a credential issuer endorsing the attributes of an entity (e.g., a target object). A credential can be issued by an identity owner (e.g., an individual or organization) or by another credential issuer. For example, a digital identity is issued by a credential issuer, specifically by an identity endorser (credential issuer) who endorses and signs the identity owner's attribute information upon the identity owner's request. It is worth noting that the identity owner's attribute information varies depending on the identity owner and the credential generation scenario, and thus the credential generated based on this attribute information also varies. For example, in the academic certification scenario, the identity endorser may be the node used by the school, and the verifiable credential may be the school's endorsement of the student's attribute information (such as age, major, academic performance, and school information) to generate the student's academic certificate.
[0050] Based on the above introduction to blockchain networks, digital entities, and distributed digital identities, the embodiments of this application propose a solution for processing digital entities. This solution supports expressing the identities of objects such as NFT itself, NFT issuers (i.e., the objects that cast NFTs), and NFT holders (i.e., objects with operating rights to digital entities, which may be the same as or different from NFT issuers) through DID digital identities, and uses the DID protocol to express and describe NFTs and related participants, so that blockchain digital assets have two-layer technical protocol attributes of DID and NFT. This solution combines the DID protocol specification and the NFT protocol specification, and can implement all the technical capabilities of NFT based on the DID protocol specification, including functions such as casting, publishing, and transfer. It is a new type of NFT implementation solution.
[0051] The general principle of this solution may include: when the target object has a demand to perform a target operation (such as casting or transfer) on a digital entity, the target object may initiate an operation request for the digital entity; in response to the operation request, the digital identification of the target object is obtained, and the digital identification is used to uniquely identify the identity of the target object, such as an identity ID, number or nickname, etc. Then, based on the digital identification of the target object and the operation information of the target operation carried in the operation request, an entity operation credential may be generated, and the entity operation credential is used to indicate the target operation that the target object wants to perform on the digital entity. In the case where the target object confirms that the target operation indicated by the entity operation credential is to be performed on the digital entity, the declaration data signed by the first signature data (such as a private key) of the target object may be obtained, and in the case where the declaration data is successfully verified by the second signature data (such as a public key) of the target object, the target operation is performed on the digital entity to realize the function of performing operations on the digital entity.
[0052] In summary, the embodiment of the present application introduces the DID protocol in the traditional NFT operation implementation process, which can combine the advantages of the DID protocol and the NFT protocol, so that the digital entity processing solution provided by the embodiment of the present application has the following advantages, including but not limited to: ① Since the distributed digital identity identifier and verifiable credentials have the advantages of international standards, strong expression ability, readability and security, when expressing and describing the identity of NFT and related participants (such as NFT itself, NFT issuer, NFT holder and other entities) through the DID protocol, the description of NFT can be made richer and more complete, and has better technical scalability, which optimizes the expression and readability of NFT. ② By implementing NFT through DID, the interconnection and upper and lower support of the two-layer protocol are realized. In this way, in addition to complying with its own protocol specifications, NFT can also complete protocol interoperability through the protocol of the DID layer, with better protocol compatibility and interoperability and portability. By utilizing the routing and cross-chain capabilities of DID, NFT supports more protocol capabilities, improves the interoperability, portability and scenario expansion capabilities of the digital asset layer, and facilitates the implementation of more scenarios. ③ The verifiable credentials under the DID protocol also have the ability to be signed and verified by a third party, which means that the NFT implementation solution based on DID has better regulatory capabilities. For example, the minting and transfer of DID credentials can be completed by signing and verifying by a third-party authority, which is not available in the single-layer NFT protocol implementation; and through the higher readability and traceability of distributed digital identity identifiers DIDs, more regulatory functions can be imposed on NFTs, so that the embodiments of this application can adapt to NFT scenarios with regulatory requirements, such as NFT landing scenarios based on alliance chains.
[0053] To facilitate a better understanding of the digital entity processing method proposed in the embodiments of the present application, an exemplary digital entity processing system to which the method can be applied is provided below in conjunction with FIG2a ; as shown in FIG2a , the digital entity processing system includes a terminal device 201 and a server 202 . The embodiments of the present application do not limit the number and type of terminal devices 201 and server 202 , and are described herein. The electronic devices involved in the digital entity processing system are described below, including:
[0054] (1) The terminal device 201 may refer to a device on which a distributed application (i.e., the aforementioned decentralized application DApp) is deployed. The terminal device 201 may be a blockchain node device belonging to a blockchain network, or may be a device independent of the blockchain network, but for which the blockchain in the blockchain network provides trusted data for the DApp. The terminal device 201 may include, but is not limited to, smartphones (such as Android phones, iOS phones, etc.), tablet computers, portable personal computers, mobile internet devices (MIDs), smart TVs, in-vehicle devices, head-mounted devices, etc.
[0055] The distributed application of the digital entity deployed on the terminal device 201 is an application client that supports the target object to send operation requests related to the digital entity. The embodiments of the present application do not limit the operation method of the distributed application; for example, the distributed application is a client deployed on the terminal device 201 via an installation package; for another example, the distributed application can be run on the terminal device in the form of an online application; for another example, the distributed application can be run as an applet within other applications deployed on the terminal device.
[0056] Distributed applications deployed on terminal devices can achieve but are not limited to the following functions:
[0057] ① Generate and store the public and private keys of the target object. These keys can include a public key (publickey) and a private key (privatekey). The public and private keys form a key pair. If the encryptor encrypts data using the target object's private key, the decryptor can only decrypt the encrypted data using the public key corresponding to the target object's private key. In other words, the distributed application has the ability to generate public and private keys for the target object and, after generating them, store them for the target object.
[0058] ② Receive and save the target object's digital identifier. This digital identifier refers to the distributed digital identity identifiers (DIDs) described above, and is not specifically described here. In other words, the distributed application deployed on the terminal device can also receive the target object's digital identifier and save the received digital identifier.
[0059] ③ Generate and save the entity operation credentials of the target object. The entity operation credentials here can refer to the verifiable credentials VCs mentioned above, and no distinction is made in this description. Depending on the operations that the target object wants to perform on the digital entity, the verifiable credentials VCs are different. For example: in the scenario where the target object wants to mint a digital entity, the so-called minting of a digital entity can be simply understood as: the process of generating a digital entity and putting the digital entity on the chain. The verifiable credentials generated at this time are used to indicate: the digital entity is requested to perform a minting operation, that is, a request to mint a digital entity. Another example: in the scenario where the target object wants to transfer a digital entity, the so-called transfer of a digital entity can be simply understood as: transferring the operation authority of a digital entity from one object to another. The verifiable credentials generated at this time are used to indicate: the digital entity is requested to perform a transfer operation, that is, a request to transfer a digital entity.
[0060] (2) Server 202 may refer to: a device that has the function of implementing interactive operations corresponding to digital entities (such as casting or transfer operations); the server 202 is a blockchain node device belonging to the blockchain network. The server 202 is deployed with a DID-based NFT protocol model innovatively proposed in the embodiment of the present application. The DID-based NFT protocol model can also be called a blockchain application protocol model; the server can specifically implement interactive operations corresponding to digital entities through the blockchain application protocol model. Referring to Figure 2b, the blockchain application protocol model includes, from top to bottom, the NFT protocol layer, the DID protocol layer, and the blockchain network. Each protocol layer may include a corresponding application layer and smart contract, such as the NFT protocol layer includes the NFT application layer and the NFT smart contract. Similarly, the DID protocol layer includes the DID application layer and the DID smart contract. The functions of the application layer and the smart contract in the protocol layer are introduced below in conjunction with Figure 2b.
[0061] The NFT protocol layer includes the NFT application layer and the NFT smart contract. The following is a brief introduction to the functions of the NFT application layer and the NFT smart contract.
[0062] ① The NFT application layer can be used to process operation requests sent by terminal devices. For example, the operation request may include a physical digital identification registration request. In this case, the NFT application layer can uniformly process the physical DID identification registration request of the NFT application side (such as the NFT wallet in the terminal device). Specifically, it responds to the DID identification registration request by calling the DID protocol layer, such as calling the DID application layer or the DID smart contract, to complete the generation and registration of the digital identifier (or simply the digital identifier) of the target object. In addition, the registered digital identifier is also bound to the public key of the target object. In this way, the public key bound to the digital identifier and the asymmetric encryption technology can be used to verify whether the operator of the NFT application side is the target object of the corresponding digital identifier, so as to realize the identity verification of the target object and improve the security of data processing.
[0063] After registering and obtaining the digital identifier of the target object, the NFT application layer can also assign the digital identifier of the target object to the terminal device (i.e., the NFT application end). In this way, the target object can initiate an operation request related to the digital entity (or called an NFT operation request) through the NFT application end (i.e., the DApp mentioned above) based on the digital identifier, so that the NFT application layer can process the NFT operation requests such as casting and transfer sent by the NFT application end. For example, in the NFT casting scenario, the NFT application layer can directly generate a DID identifier corresponding to the token (i.e., the digital entity) in the DID smart contract by calling the DID application layer (in order to distinguish the DID identifier of the target object from the DID identifier of the digital entity, the DID identifier of the digital entity is called the entity identifier). Alternatively, the NFT application layer can indirectly generate a DID identifier corresponding to the token in the DID smart contract through the NFT smart contract. For example, in the NFT transfer scenario, the NFT application layer can directly verify the verifiable certificate VCs corresponding to the target object by calling the DID application layer, or the NFT application layer can indirectly verify the verifiable certificate VCs corresponding to the target object through the NFT smart contract to check whether the target object has the operation authority to operate the digital entity, such as detecting whether the target object has the transfer authority to transfer the digital entity, or detecting whether the target object has the casting authority to cast the digital entity.
[0064] ②NFT smart contracts are used to process and manage data related to digital entities. For example, the NFT smart contract stores the binding relationship between the digital identifier of the target object and the entity identifier of the digital entity, which is used to anchor the object ownership of the digital entity. For example, there is a binding relationship (or binding mapping relationship) between the entity identifier of digital entity A and the digital identifier of target object a. This binding relationship anchors the holder of digital entity A as target object a. Based on this binding relationship, the holder of digital entity A is determined to be target object a. In order to improve the credibility of smart contracts, NFT smart contracts can directly call DID smart contracts to generate the DID identifier of digital entities, and directly call DID smart contracts to verify verifiable credentials VCs. After the verifiable credentials VCs are successfully verified, the corresponding target operations are performed on the digital entity, such as modifying the binding relationship between the digital identifier of the target object and the entity identifier of the digital entity to complete the transfer of the digital entity.
[0065] Similar to the NFT protocol layer, the DID protocol layer includes the DID application layer and the DID smart contract. The following is a brief introduction to the functions of the DID application layer and the DID smart contract.
[0066] ① The DID application layer can be used to process operation requests sent by the NFT application layer above it in the protocol model (such as operation requests to create digital identifiers or verify credentials), as well as to connect to the DID smart contract in the protocol model to read and write DID status data. In other words, the DID application layer acts as an intermediate layer, and any business logic that needs to be processed in the DID smart contract can enter the DID smart contract through the DID application layer as a service entrance.
[0067] DID state data includes, but is not limited to, data contained in the DID document of the target object and data contained in the DID document of the digital entity. The DID document of the target object can be obtained by parsing the target object's digital identifier through a DID smart contract. Similarly, the DID document of the digital entity can be obtained by parsing the entity identifier of the digital entity through a DID smart contract. In other words, each DID identifier corresponds to its own DID document, and the DID document of any entity is used to describe and express the content of that entity. For example, if the entity is a target object, the document data contained in the DID document of the target object may include information related to the target object, including, but not limited to, the target object's public key and attribute information (such as age, nickname, gender, or registration time). For another example, if the entity is a digital entity, the document data contained in the DID document of the digital entity may include information related to the digital entity, including, but not limited to, metadata such as the digital entity's attribute information (such as the digital entity's form information and minting time) and digital content (such as element information contained in the digital entity), used to express all or part of the information of the NFT entity (i.e., the digital entity).
[0068] ②DID smart contracts can be used to process and manage data related to DID. For example, the DID smart contract stores all the status data of the DID, including the DID documents of the target object and the digital entity, specifically the document data contained in the DID document. In different application scenarios involving digital entities (such as the scenario of casting digital entities, or the scenario of transferring digital entities), the DID status data in the DID smart contract can be read and written through the DID application layer and the NFT smart contract. In addition, the DID smart contract also contains a contract interface for verifying verifiable credentials. By calling this contract interface, the DID smart contract can verify whether the signed verifiable credential is issued by the corresponding DID entity (such as the target object signed with a private key).
[0069] The protocol mapping relationship between the NFT smart contract and the DID smart contract provided in the embodiment of the present application can be seen in Figure 2c. As shown in Figure 2c, the digital identifier of the target object (DID identifier of the target object) and the entity identifier of the digital entity (NFT token DID identifier) are stored in the NFT smart contract; and the binding mapping relationship between the digital identifier of the target object and the entity identifier of the digital entity is also stored in the NFT smart contract, through which the holder of the digital entity can be determined to be the target object. The DID smart contract stores the DID document of the target object, which is obtained by parsing the digital identifier of the target object, and can be understood as a binding relationship between the object identifier of the target object and the DID document of the target object; similarly, the DID smart contract also stores the DID document of the digital entity, which is obtained by parsing the entity identifier of the digital entity, and can be understood as a binding relationship between the entity identifier of the digital entity and the DID document of the digital entity. Furthermore, the DID document of the digital entity in the DID smart contract also includes a controller field, which can identify the target object to which the digital entity belongs. Specifically, the controller field is assigned the digital identifier of the target object, indicating that the owner of the digital entity is the target object, that is, the target object has the operation authority to interact with the digital entity.
[0070] In order to implement a method for processing digital entities using both protocols, the DID protocol and the NFT protocol need to be designed. The goal is to determine the mapping relationship (or correspondence) between the fields on both sides of the DID protocol and the NFT protocol. For example, by assigning values to certain fields in the protocols, the content of one protocol can be identified based on a field in the other protocol. For example, after obtaining a DID document, the fields in the DID document can be used to determine that the DID document is a physical document of a digital entity.
[0071] The schematic diagram of the DID-based NFT protocol design provided in the embodiment of this application can be found in Figure 2d. The following briefly introduces several exemplary protocol designs provided in the embodiment of this application in conjunction with Figure 2d, which does not limit the embodiment of this application. The DID-based NFT protocol design may define, but is not limited to, the following specifications:
[0072] ① Supports the generation of the target object's first and second signature data by the target side (i.e., the terminal device used by the target object). For example, if the target side generates public and private keys based on an asymmetric cryptographic algorithm, the first signature data is the public key and the second signature data is the private key. It also supports the application protocol model (i.e., the blockchain application protocol model mentioned above) to convert the target object's public key into a digital identifier according to the DID specification and register it on the blockchain.
[0073] ② Support the creation of entity identification for the digital entity obtained by casting, that is, the digital entity generated by casting itself also has a DID identity identifier, and the DID identity identifier corresponds to a DID document (that is, the entity document mentioned above) used to describe and express the digital entity content in the NFT protocol standard.
[0074] ③ Support assigning the service field (such as the service field) in the DID document corresponding to the digital entity to the entity identifier of the digital entity, so that the metadata of the digital entity can be accessed through the entity identifier, that is, access to the metadata of the digital entity can be achieved through this field. For example, if the digital entity is a digital image, then the service field in the DID document corresponding to the digital entity can be assigned the digital entity's Uniform Resource Identifier (URI) to achieve access to the digital entity's metadata through the digital entity's URI.
[0075] Among them, the metadata of the digital entity can be stored in the digital entity issuance platform gateway, and the metadata stored in the digital entity issuance platform gateway can be accessed through the digital identifier of the digital entity; the metadata contains the attribute information of the digital entity NFT, and the attribute information can be stored in various storage services such as decentralized storage or object storage in JSON format; the metadata also stores the access path of the NFT's visual presentation file (such as a digital image).
[0076] ④ Supports binding the controller field (controller) in the DID document corresponding to a digital entity to the digital identifier of the target object, indicating a binding relationship between the entity identifier of the digital entity and the digital identifier of the target object. In addition, the state data of the DID document (i.e., the data contained in the DID document) can be persisted on the blockchain, ensuring that the data cannot be tampered with.
[0077] ⑤ If the target object wants to perform interactive operations on the digital entity, including the transfer of the digital entity, then in the scenario where the holder of the digital entity (such as the target object) transfers the digital entity, the transfer validity period can be set for the verifiable certificate (or entity transfer certificate) issued by the holder of the digital entity. Then, the claim statement of the entity operation certificate needs to include the digital identifier of the reference object to be received of the digital entity and the entity identifier of the digital entity; and the entity transfer certificate needs to be signed by the target object (i.e., the holder). Of course, according to business needs, the claim statement can also include other customized transfer conditions. The specific information configured in the claim statement can be flexibly configured and expanded according to the application scenario, and is not limited here.
[0078] It should be noted that, as can be seen from the above introduction to the blockchain application protocol model, the DID protocol layer can shield the differences between the underlying blockchain networks on different blockchain networks (such as Blockchain Network A and Blockchain Network B shown in Figure 2b). The NFT protocol layer is built on top of the DID protocol layer, that is, the NFT protocol layer can call the underlying DID protocol layer. In this way, NFT assets can achieve interoperability between different smart contracts or different blockchain networks based on the DID protocol's Decentralized Identifier (DIDs) and Verifiable Credentials (VCs) protocols. In addition, it provides standard blockchain identity layer protocol support for the NFT protocol, enhancing the account and asset security and autonomous control capabilities of NFT implementation solutions based on consortium chains.
[0079] It should also be noted that the embodiments of the present application also support the integration of application layer functions into smart contracts, so that the NFT protocol layer and the DID protocol layer in the blockchain application protocol model can only include smart contracts without an additional application layer. In addition, in addition to the terminal device 201 and the server 202, the digital entity processing system involved in the embodiments of the present application can also only include a server. Under this implementation method, the distributed application can be deployed in the server; the embodiments of the present application do not limit the types and quantities of devices included in the digital entity processing system. In addition, when the embodiments of the present application are applied to specific entities or technologies, such as when obtaining the digital identification of the target object, it is necessary to obtain the permission or consent of the target object; and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions, such as the interoperability performed on digital entities needs to comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0080] Based on the digital entity processing solution described above, the embodiment of the present application proposes a more detailed digital entity processing method. The processing method proposed in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0081] FIG3 shows a flowchart of a method for processing a digital entity according to an exemplary embodiment of the present application. The method for processing a digital entity may be executed by an electronic device, such as a server in the system shown in FIG2a . The method may include but is not limited to steps S301 to S304 .
[0082] S301: When an operation request initiated by a target object for a digital entity is obtained, a digital identifier of the target object is obtained.
[0083] In a specific implementation, when the target object has a need to perform a target operation on a digital entity, the target object initiates an operation request through the electronic device it holds. The operation request carries the operation information of the target operation it requests to perform on the digital entity. The operation information is information used to describe the target operation requested to be performed on the digital entity. Then, the digital identifier of the target object can be obtained in response to the operation request. The operation information of the target operation is different depending on the target operation. For example, the target operation for the digital entity may include but is not limited to: casting operation or transfer operation, etc. When the target operation is a casting operation, the operation information of the target operation includes at least: entity casting information required for casting the digital entity (such as element information of various elements contained in the digital entity), the digital identifier of the owner of the cast digital entity, ... When the target operation is a transfer operation, the operation information of the target operation includes at least: the digital identifier of the reference object to be received, the digital identifier of the holder before the digital entity is transferred, ...
[0084] As can be seen from the foregoing description, the terminal device held by the target object and the server executing the embodiment of the present application can be the same electronic device or different electronic devices. Then, depending on the system involved in the embodiment of the present application, the electronic device that generates the operation request can be a terminal device or a server, specifically an electronic device that has the function of calling a third-party organization to generate a verifiable credential. Optionally, the terminal device and the server are different electronic devices, and the target object can perform an initiation operation on the terminal device held by it, so that the terminal device can generate an operation request based on the detected initiation operation; and, on the premise that the server calls the third-party organization to generate a physical operation credential, the terminal device sends the operation request to the server, so that the server performs the operation of obtaining the digital identity of the target object in response to the operation request. Of course, if the terminal device has the ability to call a third-party organization to generate a physical operation credential, then after generating the operation request, the terminal device can directly respond to the operation request to perform the operation of generating the physical operation credential without sending the operation request to the server. Optionally, the terminal device and the server are the same electronic device, and the target object can perform an initiation operation on the digital entity on the server, so that the server can generate a corresponding operation request based on the detected initiation operation and perform the operation of obtaining the digital identity of the target object in response to the operation request. In the embodiment of the present application, it is not limited whether the electronic device used to generate the operation request is a terminal device or a server.
[0085] It is understandable that, depending on the target operation that the target object wants to perform on the digital entity, the specific implementation process of the target object performing the initiation operation is also different. For example, if the target operation that the target object wants to perform on the digital entity is a casting operation, the initiation operation performed by the target object through the electronic device may include: inputting the entity casting information required for casting the digital entity in the display screen (or simply referred to as a display, display screen, etc.) provided by the electronic device. For another example, if the target operation that the target object wants to perform on the digital entity is a transfer operation, the initiation operation performed by the target object through the electronic device may include: inputting the entity identification of the digital entity to be transferred, as well as information such as the digital identification of the reference object to be received in the display screen provided by the electronic device. The above are only two exemplary processes of initiating operations given in the embodiments of the present application. When the target operation is other operations, the initiation operation performed by the target object may also undergo adaptive changes, and the embodiments of the present application do not limit this.
[0086] Furthermore, after receiving an operation request initiated by a target object on a digital entity, the process of obtaining the target object's digital identifier in response to the operation request may include: obtaining the target object's digital identifier from a storage space, or generating the target object's digital identifier and registering the digital identifier on the blockchain. In other words, if the target object's digital identifier has already been generated before receiving the operation request initiated by the target object on the digital entity, then upon receiving the operation request, the target object's digital identifier may be directly obtained from the storage space, specifically, from a list of digital identifiers stored in the storage space. The digital identifier in the storage space may be stored in the storage space after the DID smart contract generates the digital identifier, or it may be distributedly stored in the storage space by other blockchain nodes when registering the target object's digital identifier on the blockchain. Conversely, if the target object's digital identifier has not been generated and registered before receiving the operation request initiated by the target object on the digital entity, the target object's digital identifier may be generated and registered based on the operation request to obtain the target object's digital identifier.
[0087] The digital identifier of the target object may be an identifier that is generated based on the target object's object information and that is capable of uniquely identifying the target object. The target object's object information may include, but is not limited to, the target object's attribute information (such as a nickname, ID number, etc.) or the target object's public key. Specifically, the process of generating the target object's digital identifier may include first obtaining the target object's object information and then converting the object information into the target object's digital identifier. For example, assuming that the target object's object information includes the target object's public key, the public key may be transcoded into a digital identifier in accordance with the DID specification, and the generated digital identifier may be registered on the blockchain to obtain the target object's digital identifier.
[0088] The process of generating the target object's digital identifier varies depending on when the target object's digital identifier is generated (e.g., before or after receiving the operation request).
[0089] In one implementation, assuming the target object's digital identifier is generated before receiving an operation request initiated by the target object for the digital entity, the process for generating the target object's digital identifier may include: when the target object has a need to register an identifier, the target object may initiate an identifier registration request, which carries the target object's object information; and then, in response to the identifier registration request, the object information may be converted into the target object's digital identifier. The target object's digital identifier is then registered on the blockchain, allowing each blockchain node in the blockchain network to synchronize to the target object's digital identifier, thereby achieving distributed storage of the target object's digital identifier. This allows any blockchain node in the subsequent blockchain network to synchronize directly from the blockchain when it subsequently needs to obtain the target object's digital identifier. This method of pre-registering the target object's digital identifier on the blockchain can, to a certain extent, improve the speed and efficiency of subsequent operations performed on the digital entity.
[0090] In another implementation, assuming that the digital identification of the target object is generated after receiving an operation request initiated by the target object for the digital entity, the generation process of the digital identification of the target object may include: when receiving the operation request and detecting that the digital identification of the target object does not exist, returning an information acquisition request (such as returning an information acquisition request to the terminal device held by the target object), the information acquisition request is used to request to obtain the object information of the target object; receiving the object information of the target object returned in response to the information acquisition request, and converting the object information into the digital identification of the target object.
[0091] It should be understood that the above are only two exemplary processes for generating the digital identification of the target object; in actual applications, the generation process of the digital identification of the target object may vary, and the embodiments of the present application do not impose any limitations on this.
[0092] S302: Generate an entity operation credential based on the digital identification and operation information of the target object.
[0093] S303: If the target object confirms to perform the target operation on the digital entity, declaration data is obtained, where the declaration data is obtained by signing the entity operation credential using the first signature data of the target object.
[0094] In steps S302-S303, based on the operation request initiated by the target object against the digital entity, after determining the target operation that the target object wants to perform on the digital entity, an entity operation credential can be generated based on the digital identifier of the target object and the operation information of the target operation. The entity operation credential is similar to a digital certificate, which is used to indicate that the target operation is requested to be performed on the digital entity, and is also used to indicate that the requester of the target operation is the target object. It can serve as record data for the operation request initiated by the target object against the digital entity. The entity operation credential can be generated by a terminal device held by the target object. In this case, the terminal device can generate the entity operation credential based on the operation information of the target operation requested by the operation request and the digital identifier of the target object, and send the entity operation credential to the server. Alternatively, the entity operation credential can also be generated by the server. In this case, when the server receives the operation request, it can generate the entity operation credential based on the obtained digital identifier of the target object and the operation information of the target operation.
[0095] It should be noted that the embodiments of this application do not restrict the electronic device that generates the physical operation credentials. For example, when a distributed application is deployed on a server, the target object can directly perform operations on the server. In this case, there is no need to include a terminal device in the processing system. In this case, the physical operation credentials are generated by the server. For ease of explanation, the following description uses the example of a terminal device with a distributed application (DAPP) deployed to generate a physical operation credential.
[0096] Furthermore, the target object can obtain the entity operation certificate, such as when the server returns the entity operation certificate to the terminal device held by the target object, so that the target object obtains the entity operation certificate through the terminal device, or the terminal device generates and outputs the entity operation certificate so that the target object can view the entity operation certificate. After the target object obtains the entity operation certificate, it can view the information contained in the entity operation certificate. If the target object confirms that the target operation indicated by the entity operation certificate is to be performed on the digital entity, the first signature data of the target object can be used to sign the entity operation certificate, such as using the first signature data to digitally sign the entity operation certificate to generate declaration data; the first signature data of the target object here can be the private key of the target object. Finally, the target operation is performed on the digital entity based on the declaration data signed by the target object. For details, please refer to the specific implementation process shown in step S304. In the above implementation process, only when the target object confirms that the target operation is to be performed on the digital entity, the first signature data of the target object is used to sign the entity operation certificate, indicating that the target operation is performed on the digital entity based on the permission of the target object, which can ensure the security of the operation of the digital entity.
[0097] It should be noted that, when the entity operation credential is generated by a terminal device deployed with a distributed application (DApp), the target object can use the distributed application to use its own first signature data (such as a private key) to sign the entity operation credential to generate declaration data; and send the declaration data to the server so that the server can perform the target operation on the digital entity based on the declaration data. Optionally, the target object can directly use its own first signature data to sign the entity operation credential to generate declaration data. Optionally, the target object can also authorize the terminal device so that the terminal device authorizes the acquisition of the target object's first signature data, and uses the first signature data to sign the entity operation credential to generate declaration data.
[0098] In the case where the entity operation credential is generated by a server, such as one deployed on a distributed application, the server can obtain the declaration data in any of the following ways, depending on whether the terminal device held by the server and the target object is the same or different:
[0099] In one implementation, the terminal device and the server are different electronic devices. Optionally, the server may send the entity operation certificate to the terminal device held by the target object, and the terminal device then returns the declaration data obtained by the target object signing the entity operation certificate using the first signature data. In a specific implementation, after the server generates the entity operation certificate based on the digital identification of the target object and the operation information of the target operation, the entity operation certificate may be sent to the target object, specifically to the terminal device held by the target object; so that the terminal device displays the entity operation certificate on the display screen, as shown in Figure 4. The target object can intuitively view the information contained in the entity operation certificate on the display screen, and when confirming the execution of the target operation indicated by the entity operation certificate on the digital entity, the target object directly or the target object authorizes the terminal device to sign the entity operation certificate using the first signature data of the target object to obtain the declaration data; then, the terminal device returns the declaration data obtained by the signature processing to the server. In this way, the server can directly receive the declaration data from the terminal device.
[0100] Optionally, the server can also generate an authorization request based on the entity operation credential. The authorization request carries the entity operation credential. The authorization request is used to request the target object authorization server to sign the entity operation credential and send the authorization request to the terminal device. The terminal device outputs the entity operation credential in response to the received authorization request. If the target object confirms that the information contained in the entity operation credential is correct and agrees to the authorization server to sign it, the terminal device returns a confirmation message, which instructs the target object authorization server to use the first signature data to sign the entity operation credential. In this way, the server can obtain the first signature data of the target object based on the confirmation message, and sign the entity operation credential based on the first signature data to obtain the declaration data.
[0101] In another implementation, the terminal device and the server are the same electronic device, that is, a distributed application is deployed in the server; under this implementation, the server can display the entity operation credential on the display screen. If the target object uses the first signature data to sign the entity operation credential, then in response to the target object using the first signature data to sign the entity operation credential, the signed entity operation credential is obtained, and the signed entity operation credential is used as the declaration data.
[0102] As described above, the process of using the first signature data of the target object to sign the entity operation certificate can be directly executed by the target object or by the target object authorization server. Optionally, the target object can use the first signature data to sign the entity operation certificate to obtain declaration data, that is, the server responds to the target object using the first signature data of the target object to perform a signature operation on the entity operation certificate, and can obtain the signed entity operation certificate, and the signed entity operation certificate serves as the declaration data. Optionally, the server can also receive the target object's authorization operation for the entity operation certificate, obtain the first signature data of the target object, and the server performs a signature process on the entity operation certificate based on the first signature data of the target object to obtain the signed entity operation certificate, and the signed entity operation certificate serves as the declaration data.
[0103] Through the above implementation process, the target object can obtain the entity operation certificate used to instruct the execution of the target operation on the digital entity. Through the entity operation certificate, the DID protocol is used to express and describe the digital entity, optimizing the expression and readability of the digital entity. Based on the entity operation certificate, the target object clearly understands the target operation to be performed on the digital entity, thus improving the target object's experience. In addition, with the support of the DID protocol, more application functions can be applied to the digital entity, enriching the implementation scenarios of the digital entity.
[0104] S304: Execute a target operation on the digital entity based on the declaration data.
[0105] From the above description, it can be seen that the declaration data is obtained by signing the entity operation certificate using the first signature data of the target object (such as the private key of the target object). Therefore, after the server obtains the declaration data, it must first verify the declaration data; when the declaration data is successfully verified, it means that the identity verification of the entity that wants to perform the target operation is successful, and the target operation can be started on the digital entity.
[0106] In a specific implementation, the implementation process of performing a target operation on a digital entity based on the declaration data may include: first, since the digital identification of the target object (i.e., the DID identifier) is bound to the second signature data of the target object (such as the public key of the target object), the second signature data of the target object can be obtained based on the digital identification of the target object. Then, the second signature data of the target object is used to verify the declaration data to obtain a verification result. Finally, when the verification result is a successful verification, that is, the verification result indicates that the identity verification of the operator on the terminal device side is successful, the target operation is performed on the digital entity; conversely, when the verification result is a failed verification, it indicates that the identity verification of the operator on the terminal device side has failed, and the target operation is not performed on the digital entity.
[0107] In the above implementation process, when the first signature data of the target object is the private key of the target object, the second signature data of the target object is the public key of the target object, and the public key is different from the private key, the embodiment of the present application uses asymmetric encryption technology to verify whether the operator of the terminal device is the target object corresponding to the digital identifier recorded in the entity operation certificate, thereby verifying the identity of the operator on the terminal device side, and thus realizing transaction permission verification before performing target operations on the digital entity, improving the security and traceability of the digital entity, and can be applicable to application scenarios where review is required, such as alliance chain scenarios.
[0108] In an embodiment of the present application, when an operation request initiated by a target object for a digital entity is received, an entity operation certificate can be generated based on the digital identification of the target object and the operation information carried by the operation request, and the entity operation certificate indicates that the request is to perform the target operation on the digital entity, and the requester of the target operation is the target object; by generating the entity operation certificate of the digital entity, the target object can be intuitively informed of information related to the digital entity, and the expression and readability of the digital entity can be optimized. Moreover, only when the target object confirms that the target operation is to be performed on the digital entity, that is, the declaration data (i.e., the entity operation after the signature processing) is obtained, and the declaration data is successfully verified, the target operation is performed on the digital entity. In an embodiment of the present application, the digital identification of the target object is carried through the operation process for the digital entity, and the entity operation certificate and declaration data are generated based on the digital identification of the target object. In this way, in the process of performing the target operation on the digital entity, the relevant operations performed on the digital entity and the execution object of the relevant operations are intuitively and reliably recorded, thereby improving the security of the digital entity and the traceability of the relevant operations, and then efficiently and safely achieving the target operation for the digital entity.
[0109] As described above, the processing system of the digital entity involved in the embodiment of the present application may include a terminal device and a server, and a distributed application (DAPP or NFT APP) is deployed in the terminal device, or the processing system of the digital entity may only include a server, and a distributed application is deployed in the server; subsequently, taking the digital entity processing system including a terminal device and a server as an example, the specific implementation process of performing the target operation on the digital entity is explained in detail. It is not difficult to understand that the types of target operations performed on digital entities are relatively rich. The following, with reference to the accompanying drawings, takes the operation of casting a digital entity as an example, and the operation of transferring a digital entity as an example, to introduce the specific implementation process of the target operation.
[0110] FIG5 shows a flowchart of an exemplary method for processing a digital entity provided by an embodiment of the present application, when the target operation is an operation of casting a digital entity. The method for processing a digital entity can be jointly executed by the terminal device and the server in the system shown in FIG2a . The method may include but is not limited to steps S501-S509:
[0111] S501: The terminal device sends an identification registration request to the server.
[0112] S502: The server responds to the identifier registration request, generates and registers the digital identifier of the target object.
[0113] S503: The server sends the digital identifier of the target object to the terminal device.
[0114] In steps S501-S503, when the target object needs to generate and register a digital identifier, the target object can generate an identifier registration request through a terminal device, specifically through a distributed application deployed on the terminal device. The terminal device then sends the identifier registration request to the server, which is received by the NFT application layer in the blockchain application protocol model deployed on the server. The NFT application layer then calls the DID application layer, which in turn calls the DID smart contract in response to the identifier registration request to generate the target object's digital identifier and register the target object's digital identifier on the blockchain.
[0115] It should be noted that the specific implementation process of the server generating and registering the digital identification of the target object in response to the identification registration request can be found in the relevant description of the specific implementation process shown in step S301 in the embodiment shown in Figure 3, and will not be repeated here.
[0116] S504: The terminal device generates an entity operation credential, and signs the entity operation credential according to the first signature data to generate declaration data.
[0117] In a scenario where the target operation performed on a digital entity is an operation of casting the digital entity, the entity operation credential generated by the terminal device may be referred to as an entity casting credential.
[0118] In a specific implementation, if the target object has a need to cast a digital entity, then the terminal device can generate an operation request in response to the need to cast the digital entity. In this case, the operation request is used to request the casting of the digital entity; that is, the target operation for the digital entity is the operation of casting the digital entity, and the operation information of the target operation at least includes: the entity casting information required for casting the digital entity. If the digital entity is a digital image, then the entity casting information required for casting the digital image may include element information of each element that constitutes the digital image (such as element address or element layer, etc.). Then, the terminal device generates an entity casting certificate based on the digital identifier of the target object and the operation information of the target operation in response to the operation request. Finally, the entity casting certificate is signed based on the first signature data of the target object to generate declaration data.
[0119] As described in the embodiment shown in Figure 3 above, if the physical casting certificate is generated by the server, such as the server calls a third-party authority to generate the physical casting certificate, then the terminal device can send an operation request to the server, and the server responds to the operation request to generate the physical casting certificate. The specific implementation process of the server generating the physical casting certificate is not limited here.
[0120] S505: The terminal device generates a casting request based on the entity operation credential and sends the casting request to the server. The casting request carries the signed entity operation credential (ie, declaration data).
[0121] S506: The server responds to the casting request and verifies the signature of the declaration data.
[0122] In steps S505-S506, when the server obtains the casting request, it also obtains the declaration data carried by the casting request. The server can then verify the signature of the declaration data based on the digital identifier of the target object. Specifically, the digital identifier of the target object is bound to the public key of the target object. In this way, the server can obtain the public key of the target object and verify the signature of the declaration data based on the public key of the target object to obtain the verification result.
[0123] S507: If the signature verification is successful, the server creates an entity identifier for the digital entity.
[0124] S508: The server binds the entity identifier of the digital entity and the digital identifier of the target object.
[0125] In steps S507-S508, when the declaration data is successfully verified based on the second signature data of the target object, it indicates that the identity authentication of the entity on the terminal device side is successful, that is, the entity on the terminal device side is the target object that digitally signs the entity casting certificate using the first signature data, then the target operation for the digital entity can be performed.
[0126] The specific implementation process for performing a target operation on a digital entity, where the target operation is the operation of casting a digital entity, can be shown in Figure 6. The specific process may include: first, casting the digital entity based on the entity casting information required for casting the digital entity. For example, if the digital entity is a digital image, and the entity casting information required for casting the digital entity is element images belonging to different layer levels, then the element images are superimposed in order of layer levels from high to low (or from low to high) to cast the digital image. Then, based on the DID smart contract in the blockchain application protocol model it deploys, the server can create an entity identifier for the cast digital entity. This entity identifier is the DID identifier of the digital entity NFT, which is used to uniquely identify the digital entity. Finally, the entity identifier of the digital entity and the digital identifier of the target object can be bound, so that a mapping binding relationship exists between the entity identifier of the digital entity and the digital identifier of the target object. This mapping binding relationship can be stored in the NFT protocol layer of the blockchain application protocol model, specifically in the NFT smart contract in the NFT protocol layer. In this way, through this mapping binding relationship, it can be determined that the owner of the digital entity is the target object, that is, the target object is the only object with the operation permission to operate on the digital entity.
[0127] Among them, the specific implementation process of binding the digital entity and the target object may include: establishing a first mapping binding relationship based on the digital identifier of the target object and the entity identifier of the digital entity, and the first mapping binding relationship may refer to the mapping binding relationship mentioned above, and the first mapping binding relationship is used to indicate that the holder of the digital entity is the target object; then, the first mapping binding relationship is stored in the smart contract corresponding to the digital entity, that is, the NFT smart contract, to realize the binding of the digital entity and the target object.
[0128] S509: The server returns the casting result of the digital entity to the terminal device.
[0129] In a specific implementation, the server can return the casting results for the digital entity to the terminal device. The casting results for the digital entity here may include: the cast digital entity (such as a digital image) and the results of the digital entity on-chain (such as successful on-chain) and other information; the embodiment of the present application does not limit the specific content contained in the casting results.
[0130] In the embodiment of the present application, when the target object receives an operation request for a digital entity, an entity operation certificate can be generated based on the digital identification of the target object and the operation information carried by the operation request, and the entity operation certificate indicates that the target operation is requested to be performed on the digital entity, and the requester of the target operation is the target object; by generating the entity operation certificate of the digital entity, the target object can be intuitively informed of information related to the digital entity, and the expression and readability of the digital entity can be optimized. Moreover, only when the target object confirms that the target operation is performed on the digital entity, that is, the declaration data (i.e., the entity operation after the signature processing) is obtained, and the declaration data is successfully verified, the target operation is performed on the digital entity. In the embodiment of the present application, the digital identification of the target object is carried through the operation process for the digital entity, and the entity operation certificate and declaration data are generated based on the digital identification of the target object. In this way, in the process of performing the target operation on the digital entity, the relevant operations performed on the digital entity and the execution object of the relevant operations are intuitively and reliably recorded, thereby improving the security of the digital entity and the traceability of the relevant operations, and then efficiently and safely realizing the target operation for the digital entity, such as the operation of the casting digital entity.
[0131] FIG7 shows a flowchart of an exemplary method for processing a digital entity when the target operation is to transfer the digital entity, according to an embodiment of the present application. The method for processing the digital entity may be jointly executed by the terminal device and the server in the system shown in FIG2a . The method may include but is not limited to steps S701 to S706:
[0132] S701: The terminal device generates an entity operation credential, and signs the entity operation credential according to the first signature data to generate declaration data.
[0133] In a scenario where the target operation performed on a digital entity is an operation to transfer the digital entity, the entity operation credential generated by the terminal device may be referred to as an entity transfer credential.
[0134] In a specific implementation, if the target object has a need to transfer a digital entity, the terminal device can generate an operation request in response to the digital entity transfer request. In this case, the operation request is used to request the transfer of the digital entity from the target object to the reference object. In other words, the holder of the digital entity is adjusted from the target object to the reference object, and the target object and the reference object are different. That is, the target operation for the digital entity is to transfer the digital entity, and the operation information of the target operation includes at least: the digital identifier of the reference object and the entity identifier of the digital entity to be transferred. Then, the terminal device generates an entity transfer certificate based on the digital identifier of the target object and the operation information of the target operation in response to the operation request. Finally, the entity transfer certificate is signed based on the first signature data of the target object to generate declaration data.
[0135] As described in the embodiment shown in Figure 3 above, if the entity transfer certificate is generated by the server, such as the server calls a third-party authority to generate the entity transfer certificate, then the terminal device can send an operation request to the server, and the server responds to the operation request by calling the third-party agency to generate the entity transfer certificate; the specific implementation process of the server generating the entity transfer certificate is not limited here.
[0136] S702: The terminal device generates a transfer request based on the entity transfer credential and sends the transfer request to the server. The transfer request carries the signed entity transfer credential (ie, declaration data).
[0137] S703: The server responds to the transfer request and verifies the signature of the declaration data.
[0138] In steps S702-S703, when the server obtains the transfer request, it also obtains the declaration data carried by the transfer request. The server can then verify the signature of the declaration data based on the digital identifier of the target object. Specifically, the digital identifier of the target object is bound to the public key of the target object. In this way, the server can obtain the public key of the target object and verify the signature of the declaration data based on the public key of the target object to obtain the verification result.
[0139] S704: If the signature verification is successful, the server modifies the digital identifier of the target object in the entity document of the digital entity.
[0140] S705: The server modifies the mapping binding relationship between the entity identifier of the digital entity and the digital identifier of the target object.
[0141] In steps S704-S705, when the declaration data is successfully verified based on the second signature data of the target object, it indicates that the identity verification of the entity on the terminal device side is successful. That is, the entity on the terminal device side is the target object that digitally signed the entity transfer certificate using the first signature data. Then, the target operation on the digital entity can be performed. The specific implementation process of performing the target operation on the digital entity, where the target operation is an operation to transfer the digital entity, can be shown in Figure 8. The specific process may include:
[0142] First, the entity identifier of the digital entity is parsed. The entity identifier of the digital entity is created when the digital entity is cast, and the entity document corresponding to the digital entity (i.e., the DID document) is obtained; wherein, the entity document stores the metadata of the digital entity. The metadata includes the storage location describing the content of the digital entity (such as appearance attribute description files, pictures, etc.). The entity document also includes a controller field, which records the digital identifier of the target object, indicating that the owner of the digital entity is the target object corresponding to the digital identifier recorded in the controller field.
[0143] Then, the following two operations are performed, with no restriction on the order of execution of the two operations, to transfer the digital entity from the target object to the reference object, specifically, to transfer the operation authority of the digital entity from the target object to the reference object, including:
[0144] ① In the entity document, the digital identifier of the target object recorded in the controller field is modified to the digital identifier of the reference object of the digital entity to be received. ② As described above, the NFT smart contract in the blockchain application protocol model deployed by the server stores a first mapping binding relationship, which binds the entity identifier of the digital entity to the digital identifier of the target object. Then, in the smart contract corresponding to the digital entity (i.e., the NFT smart contract), the first mapping binding relationship can be modified to a second mapping binding relationship; wherein the first mapping binding relationship indicates that the holder of the digital entity is the target object, and the second mapping binding relationship indicates that the holder of the digital entity is the reference object.
[0145] Through the above process, the transfer operation of the digital entity can be realized, and the operation authority for the digital entity can be transferred from the target object to the reference object.
[0146] In addition, it can be seen from the above description that in the scenario where the holder of a digital entity transfers a digital entity, the holder is required to issue an entity transfer certificate of the digital entity for use in verifying the change of the holder of the digital entity. The embodiment of the present application also supports setting a transfer validity period for the entity transfer certificate, that is, the entity operation certificate (or the signed declaration data) has a time limit, and only within the transfer validity period can the entity transfer certificate be verified and the subsequent transfer operations be performed. In a specific implementation, when the entity transfer certificate is digitally signed using the first signature data of the target object, a transfer validity period can be set for the generated declaration data. The transfer validity period can be pre-set or customized by the target object. In this way, after obtaining the declaration data, the server can first obtain the generation time of the declaration data. The generation time refers to the moment when the entity operation certificate of the digital entity is signed to generate the declaration data. Then, the target duration between the generation time of the declaration data and the current time is determined. The current time refers to the moment when the declaration data is verified; that is, starting from the moment when the declaration data is generated, until the moment when the server verifies the declaration data, this period is used as the target duration. Finally, the target duration is compared with the transfer validity period; if the target duration is less than or equal to the transfer validity period, it means that the entity transfer certificate is in a valid state, and at this time, the steps of performing the target operation on the digital entity based on the declared data can be triggered; conversely, if the target duration is greater than the transfer validity period, it means that the entity transfer certificate is no longer in a valid state, but in an invalid state, and it is determined that the transfer of the digital entity has failed.
[0147] For example, in the transfer scenario of a digital entity, if the declaration data is generated at 12:00 on December 12, and the transfer validity period corresponding to the declaration data is 24 hours, then when the server verifies the declaration data at 19:00 on December 12, it determines that the target time between the generation time of the declaration data and the current time is 7 hours, which is less than the transfer validity period of 24 hours, so the server can perform the signature verification process on the declaration data. On the contrary, if the server verifies the declaration data at 12:00 on December 15, it determines that the target time between the generation time of the declaration data and the current time is 72 hours, which is greater than the transfer validity period of 24 hours, then the server cannot perform the signature verification process on the declaration data and determines that the transfer of the digital entity has failed. By setting a transfer validity period for the entity operation certificate, the entity operation certificate has a valid operation range, which can improve the security of the entity operation certificate to a certain extent.
[0148] S706: The server returns the transfer result of the digital entity to the terminal device.
[0149] In a specific implementation, the server may return the transfer result for the digital entity to the terminal device. The transfer result for the digital entity here may include information such as transfer success or transfer failure. The embodiment of the present application does not limit the specific content contained in the transfer result.
[0150] In an embodiment of the present application, if the target object has a need to transfer a digital entity, the terminal device can generate an operation request in response to the need to transfer the digital entity. At this time, the operation request is used to request that the holder of the digital entity be adjusted from the target object to the reference object, and the target object is different from the reference object; that is, the target operation for the digital entity is an operation to transfer the digital entity, and the operation information of the target operation includes at least: the digital identifier of the reference object, and the entity identifier of the digital entity to be transferred. Then, the terminal device generates an entity transfer certificate based on the digital identifier of the target object and the operation information of the target operation in response to the operation request. Finally, the entity transfer certificate is signed based on the first signature data of the target object to generate declaration data. Furthermore, in the process of transferring digital entities, the blockchain identity layer protocol (i.e., DID protocol) is provided to support the NFT protocol layer, which not only improves the autonomous control capability of digital entities, but also enhances the security of digital entity transfers, and provides protocol support for entity circulation under cross-chain (i.e., different blockchains) or cross-contracts (such as different smart contracts).
[0151] The above describes in detail the method of the embodiment of the present application. In order to facilitate better implementation of the above scheme of the embodiment of the present application, the device of the embodiment of the present application is provided below accordingly.
[0152] Please refer to Figure 9, which is a schematic diagram of the structure of a digital entity processing device provided in an embodiment of the present application. The processing device can be provided in an electronic device (such as a server) provided in an embodiment of the present application. In some embodiments, the processing device can be a computer program (including program code) running in the electronic device, and the processing device can be used to perform the corresponding steps in the method embodiments shown in Figures 3, 5, or 7. Referring to Figure 9, the processing device may include the following units:
[0153] An acquiring unit 901 is configured to acquire the digital identifier of a target object upon acquiring an operation request initiated by a target object on a digital entity, wherein the operation request carries operation information of a target operation requested by the target object to be performed on the digital entity;
[0154] Processing unit 902 is used to generate an entity operation credential based on the digital identifier of the target object and the operation information; the entity operation credential is used to indicate a request to perform a target operation on a digital entity and to indicate that the requester of the target operation is the target object;
[0155] The processing unit 902 is further configured to obtain declaration data if the target object confirms to perform the target operation on the digital entity, where the declaration data is obtained by performing signature processing on the entity operation credential using the first signature data of the target object;
[0156] The processing unit 902 is further configured to perform a target operation on the digital entity based on the declaration data.
[0157] In one implementation, the digital identifier of the target object is bound to the second signature data of the target object. When the processing unit 902 is configured to perform the target operation on the digital entity based on the declaration data, it is specifically configured to:
[0158] Obtaining second signature data of the target object according to the digital identifier of the target object;
[0159] Use the second signature data of the target object to verify the declaration data;
[0160] If the declaration data is successfully verified, the target operation is performed on the digital entity.
[0161] In one implementation, the operation request is used to request casting of a digital entity, the target operation includes an operation of casting the digital entity, and the operation information of the target operation includes: entity casting information required for casting the digital entity;
[0162] When the processing unit 902 is used to perform a target operation on a digital entity, it is specifically used to:
[0163] Casting a digital entity according to entity casting information required for casting the digital entity;
[0164] Creating an entity identifier for the minted digital entity;
[0165] Binding processing is performed on the entity identifier of the digital entity and the digital identifier of the target object.
[0166] In one implementation, when the processing unit 902 is configured to perform binding processing on the entity identifier of the digital entity and the digital identifier of the target object, it is specifically configured to:
[0167] Establishing a first mapping binding relationship according to the digital identifier of the target object and the entity identifier of the digital entity, wherein the first mapping binding relationship is used to indicate that the holder of the digital entity is the target object;
[0168] The first mapping binding relationship is stored in the smart contract corresponding to the digital entity.
[0169] In one implementation, the operation request is used to request the transfer of the digital entity from the target object to a reference object, the reference object being different from the target object, the target operation comprising an operation of transferring the digital entity, and the operation information of the target operation comprising at least: a digital identifier of the reference object, and an entity identifier of the digital entity;
[0170] When the processing unit 902 is used to perform a target operation on a digital entity, it is specifically used to:
[0171] Obtaining an entity document corresponding to a digital entity; the entity document includes a controller field, which records the digital identifier of the target object;
[0172] In the entity document, the numerical identifier of the target object recorded in the controller field is changed to the numerical identifier of the reference object;
[0173] And, in the smart contract corresponding to the digital entity, the first mapping binding relationship is modified to a second mapping binding relationship; wherein, the first mapping binding relationship indicates that the holder of the digital entity is the target object, and the second mapping binding relationship indicates that the holder of the digital entity is the reference object.
[0174] In one implementation, when the processing unit 902 is configured to obtain the entity document corresponding to the digital entity, it is specifically configured to:
[0175] The entity identifier of the digital entity is parsed to obtain the entity document corresponding to the digital entity; the entity document stores the metadata of the digital entity.
[0176] In one implementation, the declaration data has a transfer validity period; the processing unit 902 is further configured to:
[0177] Obtain the generation time of the declaration data, which is the moment when the entity operation credential of the digital entity is signed and processed to generate the declaration data;
[0178] Determine the target duration between the declaration data generation time and the current time, which is the moment when the declaration data is signed and processed;
[0179] If the target duration is less than or equal to the transfer validity duration, the steps of performing the target operation on the digital entity based on the declared data are triggered.
[0180] In one implementation, the processing unit 902 is configured to, if the target object confirms to perform the target operation on the digital entity, obtain the first signature data of the target object and perform the signature processing on the entity operation credential to obtain the declaration data, specifically to:
[0181] Sending the entity operation certificate to the target object, so that when the target object confirms to perform the target operation on the digital entity, the target object uses the first signature data of the target object to sign the entity operation certificate to obtain declaration data;
[0182] Receive the declaration data returned by the target object.
[0183] In one implementation, the processing unit 902 is configured to, if the target object confirms to perform the target operation on the digital entity, obtain the first signature data of the target object and perform the signature processing on the entity operation credential to obtain the declaration data, specifically to:
[0184] Displaying the physical operation certificate on the display screen;
[0185] In response to the target object's signature operation on the entity operation credential, obtaining a signed entity operation credential;
[0186] The signed entity operation certificate is used as the declaration data.
[0187] In one implementation, the processing unit 902 is configured to, in response to the target object's signature operation on the entity operation credential, obtain the signed entity operation credential, specifically to:
[0188] In response to the target object performing a signature operation on the entity operation credential using the first signature data of the target object, obtaining a signed entity operation credential;
[0189] Alternatively, an authorization operation of the target object for the entity operation credential is received, first signature data of the target object is obtained, and the first signature data of the target object is used to perform signature processing on the entity operation credential to obtain a signed entity operation credential.
[0190] In one implementation, the process of generating the digital identifier of the target object includes:
[0191] Get the object information of the target object;
[0192] Converting object information into a digital identifier of a target object;
[0193] The object information includes the public key of the target object.
[0194] According to one embodiment of the present application, the various units in the processing device shown in Figure 9 can be separately or all merged into one or several other units to constitute, or some of the units (some of them) can be further divided into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be realized by multiple units, or the function of multiple units is realized by one unit. In other embodiments of the present application, the processing device can also include other units. In practical applications, these functions can also be implemented with the assistance of other units and can be implemented by the collaboration of multiple units. According to another embodiment of the present application, a computer program (including program code) capable of executing the steps involved in the corresponding method shown in Figures 3, 5 and 7 can be run on a general computing device such as a computer including processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), etc., to construct a processing device as shown in Figure 9, and to implement the processing method of the digital entity of the embodiment of the present application. The computer program can be recorded on, for example, a computer-readable recording medium, loaded into the above-mentioned computing device via the computer-readable recording medium, and executed therein.
[0195] In an embodiment of the present application, when an operation request initiated by a target object for a digital entity is received, an entity operation certificate can be generated based on the digital identification of the target object and the operation information carried by the operation request, and the entity operation certificate indicates that the target operation is performed on the digital entity, and the requester of the target operation is the target object; by generating the entity operation certificate of the digital entity, the target object can be intuitively informed of information related to the digital entity, and the expression and readability of the digital entity are optimized. Moreover, only when the target object confirms that the target operation is performed on the digital entity, that is, the declaration data (i.e., the entity operation after the signature processing) is obtained, and the declaration data is successfully verified, the target operation is performed on the digital entity. In an embodiment of the present application, the digital identification of the target object is carried through the operation process for the digital entity, and the entity operation certificate and declaration data are generated based on the digital identification of the target object. In this way, in the process of performing the target operation on the digital entity, the relevant operations performed on the digital entity and the execution object of the relevant operations are intuitively and reliably recorded, thereby improving the security and traceability of the digital entity, and then efficiently achieving the target operation for the digital entity.
[0196] Figure 10 shows a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. Referring to Figure 10, the electronic device includes a processor 1001, a communication interface 1002 and a computer-readable storage medium 1003. The processor 1001, the communication interface 1002 and the computer-readable storage medium 1003 can be connected via a bus or other means. The communication interface 1002 is used to receive and send data. The computer-readable storage medium 1003 can be stored in the memory of the electronic device, and the computer-readable storage medium 1003 is used to store a computer program, which includes program instructions, and the processor 1001 is used to execute the program instructions stored in the computer-readable storage medium 1003. The processor 1001 (or CPU (Central Processing Unit)) is the computing core and control core of the electronic device, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function.
[0197] The embodiment of the present application also provides a computer-readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the electronic device and, of course, extended storage media supported by the electronic device. The computer-readable storage medium provides a storage space that stores the processing system of the electronic device. In addition, one or more instructions suitable for being loaded and executed by the processor 1001 are also stored in the storage space. These instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor.
[0198] In one embodiment, the computer-readable storage medium stores one or more instructions; the processor 1001 loads and executes the one or more instructions stored in the computer-readable storage medium to implement the corresponding steps in the above-mentioned digital entity processing method embodiment; in a specific implementation, the one or more instructions in the computer-readable storage medium are loaded by the processor 1001 and execute the steps involved in the corresponding method shown in Figures 3, 5 and 7
[0199] The present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the above-described method for processing digital entities.
[0200] Those skilled in the art will appreciate that the units and algorithmic steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0201] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted via a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data processing device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0202] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any technical object that can be easily conceived by a person familiar with the technical field within the technical scope disclosed in this invention should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for processing a digital entity, executed by an electronic device, comprising: When an operation request initiated by a target object on a digital entity is obtained, a digital identifier of the target object is obtained, wherein the operation request carries operation information of a target operation requested by the target object to be performed on the digital entity; Generate an entity operation credential based on the digital identifier of the target object and the operation information; the entity operation credential is used to indicate a request to perform the target operation on the digital entity, and is used to indicate that the requester of the target operation is the target object; If the target object confirms to perform the target operation on the digital entity, then obtaining declaration data, wherein the declaration data is obtained by performing a signature process on the entity operation credential using the first signature data of the target object; Based on the declaration data, the target operation is performed on the digital entity.
2. The method according to claim 1, wherein the digital identification of the target object is bound to the second signature data of the target object, and the step of performing the target operation on the digital entity based on the declaration data comprises: Acquire second signature data of the target object according to the digital identifier of the target object; Using the second signature data of the target object to perform signature verification processing on the declaration data; If the declaration data is successfully verified, the target operation is performed on the digital entity.
3. The method according to claim 1 or 2, wherein the operation request is used to request casting of the digital entity, the target operation includes an operation of casting the digital entity, and the operation information of the target operation includes: Entity casting information required to cast the digital entity; The performing the target operation on the digital entity includes: Casting the digital entity according to the entity casting information required for casting the digital entity; Creating an entity identifier for the digital entity obtained by casting; The entity identifier of the digital entity and the digital identifier of the target object are bound.
4. The method according to claim 3, wherein the binding process of the entity identifier of the digital entity and the digital identifier of the target object comprises: Establishing a first mapping binding relationship according to the digital identifier of the target object and the entity identifier of the digital entity, wherein the first mapping binding relationship is used to indicate that the holder of the digital entity is the target object; The first mapping binding relationship is stored in the smart contract corresponding to the digital entity.
5. The method according to any one of claims 1 to 4, wherein the operation request is used to request to transfer the digital entity from the target object to a reference object, the reference object being different from the target object; The target operation includes an operation of transferring the digital entity, and the operation information of the target operation includes at least: a digital identifier of the reference object and an entity identifier of the digital entity; The performing the target operation on the digital entity includes: Acquire an entity document corresponding to the digital entity; the entity document includes a controller field, and the controller field records the digital identifier of the target object; In the entity document, modifying the digital identifier of the target object recorded in the controller field to the digital identifier of the reference object; And, in the smart contract corresponding to the digital entity, the first mapping binding relationship is modified to a second mapping binding relationship; wherein, the first mapping binding relationship indicates that the holder of the digital entity is the target object, and the second mapping binding relationship indicates that the holder of the digital entity is the reference object.
6. The method according to claim 5, wherein obtaining the entity document corresponding to the digital entity comprises: Parsing the entity identifier of the digital entity to obtain an entity document corresponding to the digital entity; The entity document stores metadata of the digital entity.
7. The method according to claim 5, wherein the declaration data has a transfer validity period; before performing the target operation on the digital entity based on the declaration data, the method further comprises: Acquire the generation time of the declaration data, where the generation time is the moment when the entity operation credential is signed and processed to generate the declaration data; Determine a target duration between the generation time of the declaration data and the current time, where the current time is the moment when the signature verification process is performed on the declaration data; If the target duration is less than or equal to the transfer validity duration, the step of performing the target operation on the digital entity based on the declaration data is triggered.
8. The method according to any one of claims 1 to 7, wherein if the target object confirms to perform the target operation on the digital entity, obtaining declaration data comprises: Sending the entity operation credential to the target object, so that when the target object confirms to perform the target operation on the digital entity, the target object uses the first signature data of the target object to sign the entity operation credential to obtain the declaration data; The declaration data returned by the target object is received.
9. The method according to any one of claims 1 to 7, wherein if the target object confirms to perform the target operation on the digital entity, obtaining declaration data comprises: Displaying the entity operation certificate on a display screen; In response to a signing operation of the target object on the entity operation credential, obtaining a signed entity operation credential; The signed entity operation certificate is used as the declaration data.
10. The method according to claim 9, wherein in response to the target object's signing operation on the entity operation credential, obtaining the signed entity operation credential comprises: In response to the target object performing a signing operation on the entity operation credential using the first signature data of the target object, obtaining the signed entity operation credential; Alternatively, an authorization operation of the target object for the entity operation credential is received, first signature data of the target object is obtained, and the first signature data of the target object is used to perform signature processing on the entity operation credential to obtain the signed entity operation credential.
11. The method according to any one of claims 1 to 10, wherein the process of generating the digital identifier of the target object comprises: Get the object information of the target object; Converting the object information into a digital identifier of the target object; The object information includes the public key of the target object.
12. A digital entity processing device, characterized in that: include: An acquisition unit, configured to acquire a digital identifier of a target object upon acquiring an operation request initiated by a target object on a digital entity, wherein the operation request carries operation information of a target operation requested by the target object to be performed on the digital entity; A processing unit, configured to generate an entity operation credential based on the digital identifier of the target object and the operation information; the entity operation credential is used to indicate a request to perform a target operation on the digital entity, and is used to indicate that the requester of the target operation is the target object; The processing unit is further configured to obtain declaration data if the target object confirms to perform the target operation on the digital entity, wherein the declaration data is obtained by performing a signature process on the entity operation credential using the first signature data of the target object; The processing unit is further configured to perform the target operation on the digital entity based on the declaration data.
13. An electronic device, comprising: a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the method for processing a digital entity according to any one of claims 1 to 11 is implemented.
14. A computer-readable storage medium storing a computer application, wherein when the computer application is executed, the method for processing a digital entity according to any one of claims 1 to 11 is implemented.
15. A computer program product, comprising computer instructions, which, when executed by a processor, implement the method for processing a digital entity as claimed in any one of claims 1 to 11.
