Data processing method, device and equipment based on block chain and readable storage medium
By acquiring and engraving the smallest divided unit assets in the blockchain decentralized digital asset trading system and generating trusted digital certificates, it solves the problem of the system being unable to directly generate trusted digital certificates and improves the security and scalability of the system.
Patent Information
- Application Number
- CN202310902030.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2025-01-21
AI Technical Summary
The decentralized digital asset trading system based on blockchain cannot directly apply the token standard to generate trusted digital vouchers, resulting in the system being unable to effectively use trusted digital vouchers, reducing scalability and security.
In the decentralized digital asset trading system based on the blockchain, the smallest divided unit asset of the digital asset is obtained, the asset identifier is assigned, and the asset is inscribed to generate a trusted digital certificate.
It realizes the effective generation of trusted digital certificates in the decentralized digital asset trading system and improves the security and scalability of the system.
Smart Images

Figure CN119338583A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a blockchain-based data processing method, device, equipment, and readable storage medium. Background Art
[0002] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. It is mainly used to organize data in chronological order and encrypt it into a ledger to make it impossible to be tampered with or forged. At the same time, it can verify, store and update data. Blockchain can also perform data encryption transmission, node identification and secure access, and is an advanced distributed infrastructure. At present, due to the immutability and authenticity of blockchain, more and more blockchain applications are being used. Many institutions (such as banks, certain enterprises, etc.) use blockchain to store relevant business data and perform related business operations.
[0003] In the blockchain, the application of trusted digital certificates is also increasing. Trusted digital certificates refer to data objects that can record and process multi-dimensional and complex attributes in the blockchain. They can be generated based on the blockchain. Each trusted digital certificate is unique and non-replicable, and can be anchored to an item in the real world. For trusted digital certificates, it is necessary to build and implement them through a series of token standards for trusted digital certificates. However, for some decentralized systems based on blockchain (such as decentralized digital asset trading systems based on blockchain), since each digital asset in the system is the same and can be exchanged for equivalent value, it is not unique, which makes it impossible for the system to directly apply these token standards to generate trusted digital certificates. Trusted digital certificates cannot be effectively generated in these systems, making it impossible for these systems to effectively use trusted digital certificates, which will gradually reduce the scalability and security of these systems. Therefore, for decentralized digital asset trading systems with equal qualities of digital assets, how to effectively generate trusted digital certificates in the system to improve the scalability and security of the system is an urgent problem to be solved. Summary of the invention
[0004] The embodiments of the present application provide a blockchain-based data processing method, apparatus, device, and readable storage medium, which can effectively generate trusted digital certificates in a blockchain-based decentralized digital asset trading system to improve system security and scalability.
[0005] On the one hand, an embodiment of the present application provides a data processing method based on blockchain, including:
[0006] In a decentralized digital asset trading system based on blockchain, the first minimum unit asset S of the first digital asset is obtained. iThe first digital asset includes N first minimum divisible unit assets, and the sum of the asset values of the N first minimum divisible unit assets is equal to the asset value of the first digital asset; the first minimum divisible unit asset S i is any one of the N first smallest divisible unit assets, i and N are both positive integers;
[0007] The first minimum unit asset S i Assign asset identification; the first minimum unit asset S i The asset identifier is used to uniquely represent the first minimum unit asset S i ;
[0008] Based on the first minimum unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Inscription information;
[0009] Based on the first minimum unit asset S i The asset identification and inscription information of the first minimum unit of asset Si is converted into a trusted digital certificate in the decentralized digital asset trading system based on blockchain.
[0010] An embodiment of the present application provides a data processing device, including:
[0011] The asset acquisition module is used to obtain the first minimum unit asset S of the first digital asset in a decentralized digital asset trading system based on blockchain. i The first digital asset includes N first minimum divisible unit assets, and the sum of the asset values of the N first minimum divisible unit assets is equal to the asset value of the first digital asset; the first minimum divisible unit asset S i is any one of the N first smallest divisible unit assets, i and N are both positive integers;
[0012] The identification allocation module is used to allocate the first minimum division unit asset S i Assign asset identification; the first minimum unit asset S i The asset identifier is used to uniquely represent the first minimum unit asset S i ;
[0013] The engraving module is used to engrave the asset S based on the first minimum division unit i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Inscription information;
[0014] The conversion module is used to convert the first minimum division unit asset S i The asset identification and inscription information of the first minimum division unit asset S i Transformed into a trusted digital certificate in a decentralized digital asset trading system based on blockchain.
[0015] In one embodiment, the identification allocation module is the first minimum division unit asset S i The specific implementation method of allocating asset identification includes:
[0016] Obtain the asset sorting protocol corresponding to the decentralized digital asset trading system based on blockchain;
[0017] According to the unit asset sorting rules configured for the minimum divisible unit assets in the asset sorting protocol;
[0018] Sort the N first minimum split unit assets according to the unit asset sorting rule to obtain a first unit asset sequence;
[0019] According to the first minimum unit asset S i The sequence position in the first unit asset sequence is the first minimum split unit asset S i Assign an asset ID.
[0020] In one embodiment, the first minimum unit asset S i The sequence position in the first unit asset sequence is the sequence start position; the decentralized digital asset trading system based on blockchain also includes a second digital asset; the second digital asset includes N second smallest divisible unit assets;
[0021] The identification allocation module is based on the first minimum division unit asset S i The sequence position in the first unit asset sequence is the first minimum split unit asset S i The specific implementation method of allocating asset identification includes:
[0022] Obtaining a first asset generation time corresponding to the first digital asset and a second asset generation time corresponding to the second digital asset;
[0023] Sort the first digital asset and the second digital asset according to the time sequence between the generation time of the first asset and the generation time of the second asset to obtain a digital asset sequence;
[0024] Determine the previous digital asset of the first digital asset in the digital asset sequence as the predecessor digital asset of the first digital asset;
[0025] Obtain the second unit asset sequence corresponding to the predecessor digital asset; the second unit asset sequence is obtained by sorting N second smallest split unit assets according to the unit asset sorting rule;
[0026] The asset identifier corresponding to the second smallest unit asset at the end of the second unit asset sequence is incremented to obtain the first smallest unit asset S i The asset identifier.
[0027] In one embodiment, the first minimum unit asset S i The sequence position of the first unit asset sequence is a non-starting position of the sequence;
[0028] The identification allocation module is based on the first minimum division unit asset S i The sequence position in the first unit asset sequence is the first minimum split unit asset S i The specific implementation method of allocating asset identification includes:
[0029] The first minimum split unit asset S in the first unit asset sequence i The previous first minimum unit asset is determined as the first minimum unit asset S i The assets of the predecessor unit;
[0030] The asset identifier of the previous unit asset is incremented to obtain the first minimum split unit asset S i The asset identifier.
[0031] In one embodiment, the blockchain-based data processing device further includes:
[0032] Object acquisition module, used to acquire the first minimum division unit asset S i The file information to be written, and the ownership object of the file information to be written; the ownership object refers to the object that has the ownership of the file information to be written;
[0033] The permission inspection module is used to perform permission inspection on the ownership object and obtain the permission inspection result;
[0034] An information detection module is used to perform information detection on the file information to be written when the permission detection result is a pass result, and determine the information detection result of the file information to be written;
[0035] The step execution module is used to execute the first minimum segmentation unit asset S when the information detection result is a detection pass result. i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset Si Steps for inscription information.
[0036] In one embodiment, the permission verification module performs permission verification on the ownership object, and a specific implementation method for obtaining the permission verification result includes:
[0037] Obtaining object attribute information of the ownership object and the region information where the ownership object is located;
[0038] Detect object attribute information and regional information separately;
[0039] If the object attribute information contains abnormal attribute information, or the region information is abnormal region information, then the permission detection result of the ownership object is determined to be a failure result;
[0040] If the object attribute information does not contain abnormal attribute information, and the region information is normal region information, then it is determined that the permission detection result of the ownership object is a pass result.
[0041] In one embodiment, the file information to be written is text file information;
[0042] The information detection module performs information detection on the file information to be written, and determines the specific implementation method of the information detection result of the file information to be written, including:
[0043] Obtain an abnormal text word set; the abnormal text word set includes W configuration abnormal text words, where W is a positive integer;
[0044] Perform text word statistics processing on the text file information to obtain a text word set corresponding to the text file information;
[0045] Traverse the text word collection;
[0046] If there is a text word in the text word set that is the same as the target configuration abnormal text word, then the information detection result of the file information to be written is determined to be an information failure result; the target configuration abnormal text word refers to any one of the W configuration abnormal text words;
[0047] If there is no text word identical to the target configuration abnormal text word in the text word set, it is determined that the information detection result of the text file information is a detection pass result.
[0048] In one embodiment, the file information to be written is image file information;
[0049] The information detection module performs information detection on the file information to be written, and determines the specific implementation method of the information detection result of the file information to be written, including:
[0050] Perform feature extraction processing on the image file information to obtain image features corresponding to the image file information; the image features include image color features, image size features and image scene features;
[0051] Calling the image processing model, performing feature analysis processing on the image color feature, the image size feature and the image scene feature respectively through the image processing model, and obtaining feature analysis results corresponding to the image color feature, the image size feature and the image scene feature respectively;
[0052] When the feature analysis results corresponding to the image color feature, the image size feature, and the image scene feature are all feature qualified results, determining that the information detection result of the image file information is a detection passed result;
[0053] When one or more of the feature analysis results corresponding to the image color feature, the image size feature, and the image scene feature are feature unqualified results, it is determined that the information detection result of the image file information is a detection failure result.
[0054] In one embodiment, the imprint module is based on the first minimum division unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i The specific implementation methods of the inscription information include:
[0055] Obtain the digital asset protocol corresponding to the decentralized digital asset trading system;
[0056] The first minimum unit asset S i The asset identifier and the file information to be written are passed to the digital asset protocol;
[0057] The asset identifier and the file information to be written are processed by the inscription logic code used for asset inscription processing in the digital asset protocol to generate a code for describing the first minimum unit asset S i Inscription information.
[0058] In one embodiment, the blockchain-based data processing device further includes:
[0059] A transaction acquisition module, used to acquire asset transaction information about the first digital asset;
[0060] The transfer module is used to transfer the inscription information from the asset source address in the asset transaction information to the asset receiving address in the asset transaction information.
[0061] In one embodiment, the specific implementation method of the transfer module transferring the inscription information from the asset source address to the asset receiving address includes:
[0062] Obtaining inscription script information for representing inscription information and transaction script information for representing asset transaction information;
[0063] Obtain the witness data field in the transaction script information, insert the inscription script information into the witness data field, and obtain the target witness data field containing the inscription script information;
[0064] The transaction script information including the target witness data field is determined as the target transaction script information; the target transaction script information is used to indicate that the inscription information will be transferred from the asset source address to the asset receiving address along with the first digital asset.
[0065] An embodiment of the present application provides a computer device, including: a processor and a memory;
[0066] The memory stores a computer program, and when the computer program is executed by the processor, the processor executes the method in the embodiment of the present application.
[0067] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the method in the embodiment of the present application is executed.
[0068] In one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the method provided in one aspect of the embodiments of the present application.
[0069] In the embodiment of the present application, for a decentralized digital asset trading system based on blockchain, a trusted digital certificate can be generated based on the smallest unit asset of the digital asset, so as to improve the security and scalability of the system through the trusted digital certificate. Specifically, taking the first digital asset as an example, the first digital asset can be divided into N smallest unit assets (which can be called the first smallest unit asset), and for each smallest unit asset (such as the smallest unit asset S i ), the application may assign an asset identifier to it, and the asset identifier may be used to uniquely characterize the first minimum division unit asset S i It can be seen that by allocating asset identifiers, each first minimum division unit asset can have an identifier, so that it has uniqueness; secondly, this application can allocate the first minimum division unit asset S with uniqueness based on the file information to be written. i Perform asset inscription processing so that the first minimum division unit asset S iContains inscription information, which can be used to describe the first minimum unit asset S i , thus the first minimum unit asset S i It should be understood that by allocating asset identifiers and asset inscriptions, the minimum unit asset can be unique and describable. At the same time, for a decentralized digital asset trading system based on blockchain, each digital asset is transferable, so each minimum unit asset can also be transferable. Since the minimum unit asset is the smallest unit of division, it is already indivisible. Therefore, it can be seen that by allocating asset identifiers and asset inscriptions, the minimum unit asset can be unique, describable, indivisible, and transferable, which all meet the characteristics of a trusted digital certificate. Based on the first minimum unit asset S i The asset identification and inscription information of the first minimum division unit asset S i Transformed into a trusted digital certificate in a decentralized digital asset trading system based on blockchain. In this way, the smallest unit of digital assets in the system can be used to effectively generate a trusted digital certificate in the system, which can improve the security and scalability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0071] Figure 1 This is a network architecture diagram provided by an embodiment of the present application;
[0072] Figure 2 This is a schematic diagram of a scenario for building a trusted digital certificate in a decentralized digital asset trading system based on blockchain, provided in an embodiment of the present application;
[0073] Figure 3 It is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application;
[0074] Figure 4 It is a schematic diagram of a trusted digital certificate generated based on the minimum division unit asset provided by an embodiment of the present application;
[0075] Figure 5 It is a flowchart of the steps of performing asset inscription processing on the minimum division unit asset provided by an embodiment of the present application;
[0076] Figure 6 It is a structural schematic diagram of a blockchain-based data processing device provided in an embodiment of the present application;
[0077] Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0078] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0079] The method provided in the embodiment of the present application involves blockchain and other related technologies. For ease of understanding, the following will give priority to blockchain and its related technologies:
[0080] 1. Blockchain: In a narrow sense, blockchain is a chain data structure with blocks as the basic unit. The digital summary is used in the block to verify the transaction history previously obtained, which is suitable for the needs of tamper-proof and scalability in the distributed accounting scenario; in a broad sense, blockchain also refers to the distributed accounting technology implemented by the blockchain structure, including distributed consensus, privacy and security protection, peer-to-peer communication technology, network protocols, smart contracts, etc. The goal of the blockchain is to realize a distributed data record book, which only allows additions but not deletions. The basic structure of the underlying ledger is a linear linked list. The linked list is composed of "blocks" connected in series, and the hash value of the previous block is recorded in the subsequent block. Whether each block (and the transactions in the block) is legal can be quickly verified by calculating the hash value. If a node in the network proposes to add a new block, it must reach a consensus on the block through the consensus mechanism.
[0081] 2. Blockchain nodes: The blockchain network divides nodes into consensus nodes (also called core nodes), data nodes or light nodes. Among them, the consensus node is responsible for the consensus business of the entire blockchain network; the data node or light node is responsible for synchronizing the ledger information of the consensus node, that is, synchronizing the latest block data. Whether it is a consensus node or a data node (or light node), its internal structure includes network communication components, because the blockchain network is essentially a point-to-point network, and it needs to communicate with other nodes in the blockchain network through related components. The resources and services in the blockchain network are scattered on each node, and the transmission of information and the implementation of services are directly carried out between nodes, without the intervention of intermediate links or centralized servers (third parties).
[0082] 3. Public key and private key: Public key and private key are a key pair (i.e., a public key and a private key) obtained through an algorithm. The public key is the public part of the key pair, and the private key is the non-public part. The public key is usually used to encrypt data, verify digital signatures, etc. This algorithm can ensure that the key pair obtained is unique. When using this key pair, if one of the keys is used to encrypt a piece of data, the other key must be used to decrypt it. For example, if the data is encrypted with the public key, it must be decrypted with the private key. If it is encrypted with the private key, it must also be decrypted with the public key, otherwise the decryption will not be successful.
[0083] 4. Hash value: Also known as information characteristic value or characteristic value, hash value is generated by converting input data of any length into a password and performing fixed output through a hash algorithm. The original input data cannot be retrieved by decrypting the hash value. It is a one-way encryption function. In the blockchain, each block (except the initial block) contains the hash value of the previous block, which is called the parent block of the current block. Hash value is the potential core foundation and the most important aspect of blockchain technology. It preserves the authenticity of recorded and viewed data, as well as the integrity of the blockchain as a whole.
[0084] 5. Smart Contract: It is a computer protocol designed to disseminate, verify or execute contracts in an information-based manner. In the blockchain system, a smart contract (referred to as a contract) is a code that can be understood and executed by each node of the blockchain, which can execute any logic and obtain results. In practical applications, smart contracts are managed and tried through transactions on the blockchain. Each transaction is equivalent to a remote procedure call (RPC) request to the blockchain system. If a smart contract is equivalent to an executable program, the blockchain is equivalent to an operating system that provides an operating environment. The blockchain can contain multiple contracts, which are distinguished by contract accounts (Identity, ID), identification numbers or names. For example, a smart contract can include a governance consensus committee contract, which is mainly used to manage consensus nodes, and can include recording the node status of consensus nodes, dynamically adding consensus nodes, and removing abnormal consensus nodes.
[0085] See also Figure 1 , Figure 1 This is a network architecture diagram provided by an embodiment of the present application. Figure 1 As shown, the network architecture may include a terminal device cluster 10 and a blockchain network, and the blockchain network may include a core node (consensus node) cluster 1000 and a data node or light node cluster 100. The core node cluster 1000 may include at least two core nodes, and the data node cluster 100 may include at least two data nodes. Figure 1As shown, the core node cluster 1000 may include core node 1000a, core node 1000b, ..., core node 1000n, the data node cluster 100 may specifically include data node 100a, data node 100b, ..., data node 100n, and the terminal device cluster 10 may specifically include terminal device 10a, terminal device 10b, ..., terminal device 10n.
[0086] like Figure 1 As shown, terminal device 10a, terminal device 10b, ..., terminal device 10n can respectively establish network connection with data node 100a, data node 100b, ..., data node 100n, so that the terminal device can exchange data with the data node through the network connection; data node 100a, data node 100b, ..., data node 100n can respectively establish network connection with core node 1000a, core node 1000b, ..., core node 1000n, so that the data node can exchange data with the core node through the network connection; data node 100a, data node 100b, ..., data node 100n are connected to each other, so that data nodes can exchange data with each other, and core node 1000a, core node 1000b, ..., core node 1000n are connected to each other, so that core nodes can exchange data with each other.
[0087] Taking the terminal device 10a, the data node 100a and the core node 1000a as an example, the data node 100a can receive a transaction service request sent by the terminal device 10a (the transaction service request carries the ID or name of the smart contract), and then the data node 100a can send the transaction service request to the core node 1000a through the data node cluster 100; the core node 1000a can run the smart contract and execute the transaction service through the smart contract. After obtaining the execution result, the execution result can be stored in the memory pool (such as the transaction pool), and a new block can be generated according to the execution result; then, the core node 1000a can send the newly generated blocks to other core nodes in the blockchain network where it is located according to the node identifiers of other core nodes (i.e., consensus nodes) in the blockchain network, and other core nodes will verify the newly generated blocks (i.e., reach consensus), and add the newly generated blocks to the blockchain stored thereafter (that is, the execution results are stored in the blockchain after the consensus is passed). Among them, each core node in the blockchain network has a corresponding node identifier, and each core node in the blockchain network can store the node identifiers of other core nodes in the blockchain network, so that the generated blocks can be broadcast to other core nodes in the blockchain network according to the node identifiers of other core nodes, so that the data stored on all core nodes in the blockchain network are consistent.
[0088] Among them, Figure 1 The terminal device shown can be a desktop terminal or mobile terminal used by the business party that generates transaction information, and can be a smart terminal with data processing functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, a smart speaker, a desktop computer, a smart watch, a smart car terminal, etc., but is not limited to this. The transaction information (transaction data) generated by the terminal device can be transmitted to the consensus node via a data node or a light node after user authorization, and the consensus node can record the transaction information (transaction data) generated by the terminal device on the blockchain. Any data node in the data node cluster 100 can be implemented with an independent server or a server cluster composed of multiple servers, and any core node in the core node cluster 1000 can be implemented with an independent server or a server cluster composed of multiple servers.
[0089] Taking the terminal device 10a, the data node 100a and the core node 1000a as an example, the data node 100a can receive a transaction service request sent by the terminal device 10a (the transaction service request carries the ID or name of the smart contract), and then the data node 100a can send the transaction service request to the core node 1000a through the data node cluster 100; the core node 1000a can run the smart contract and execute the transaction service through the smart contract. After obtaining the execution result, the execution result can be stored in the memory pool (such as the transaction pool), and a new block can be generated according to the execution result; then, the core node 1000a can send the newly generated blocks to other core nodes in the blockchain network where it is located according to the node identifiers of other core nodes (i.e., consensus nodes) in the blockchain network, and other core nodes will verify the newly generated blocks (i.e., reach consensus), and add the newly generated blocks to the blockchain stored thereafter (that is, the execution results are stored in the blockchain after the consensus is passed). Among them, each core node in the blockchain network has a corresponding node identifier, and each core node in the blockchain network can store the node identifiers of other core nodes in the blockchain network, so that the generated blocks can be broadcast to other core nodes in the blockchain network according to the node identifiers of other core nodes, so that the data stored on all core nodes in the blockchain network are consistent.
[0090] It is understandable that the transaction business of the terminal device can be understood as transaction data. The main form of storing transaction data in the blockchain is to store the transaction data in the block of the blockchain. In other words, the blockchain is mainly used to verify, store and update transaction data. It should be understood that based on the above, the blockchain has the characteristics of decentralization and tamper-proof. Based on the characteristics of the blockchain, the application scenarios of the blockchain are constantly expanding. With the widespread application of the blockchain, the application of trusted digital certificates in the blockchain is also increasing. Among them, the trusted digital certificate refers to a data object that can record and process multi-dimensional and complex attributes in the blockchain. It can be generated based on the blockchain. Each trusted digital certificate is unique and non-replicable, and it can be anchored to an item in the real world. In other words, the trusted digital certificate can be understood as a virtual resource issued on the blockchain. This virtual resource can be a game prop, a virtual artwork, a virtual ticket, a game coin, an identifier (string), a painting, etc. A trusted digital certificate can be used to represent an item in the real world or a three-dimensional virtual scene. The transaction of the item can be converted into a transaction of a trusted digital certificate.
[0091] It should be understood that each trusted digital certificate will have corresponding metadata to describe the attributes of the trusted digital certificate. In other words, each trusted digital certificate will have different attribute description information to better understand the trusted digital certificate, and the attribute description information of each trusted digital certificate can be determined based on the characteristics of the anchored object, that is, the attribute description information of the trusted digital certificate can actually be used to record the characteristics of the anchored object (such as the color of the object, the level of the object, the value of the object, the attack power of the object, the appearance of the object, etc.). Then, whenever the object has certain events, so that the characteristics of the object are updated, the attribute description information of the corresponding trusted digital certificate should also be updated, so that the object can be accurately anchored. For example, taking the object as a building, if there is a maintenance event in the building, the appearance of the building will be updated, and the attribute description information used to describe the appearance of the building in the trusted digital certificate corresponding to the building should also be added. In other words, whenever there is a new or updated related event in the anchored object, the attribute description information of the corresponding trusted digital certificate should also be updated.
[0092] In summary, for each trusted digital certificate, it should be unique, indivisible, describable and transferable (which can be understood as tradability). Based on the above characteristics of trusted digital certificates, the present application proposes a scheme for minting trusted digital certificates in a decentralized digital asset trading system equivalent to digital assets, wherein the decentralized digital asset trading system may refer to a digital asset trading system based on blockchain. In the decentralized digital asset trading system, digital assets may refer to virtual diamonds, virtual gold coins, etc. Taking the digital assets as virtual gold coins as an example, each virtual gold coin in the system has the same specifications, and there is no difference between every two virtual gold coins. In other words, the decentralized digital asset trading system may refer to a trading system equivalent to digital assets, and the transaction records between digital assets in the trading system may be stored in the blockchain. When storing transaction records related to digital assets, each node in the blockchain needs to perform a lot of calculations. For example, each node needs to hash the current transaction information until a hash value that meets certain conditions is obtained (the condition may mean that the first n bits of the hash value must be 0, and the size of n can be automatically adjusted by the system to ensure the stability of the calculation difficulty). After a node obtains a hash value that meets the conditions, it can generate a block based on the transaction information and submit it to the consensus network to verify the transaction information based on each consensus node. After the verification is passed, the node that obtains the hash value can be rewarded with a certain amount of digital assets (such as 50 virtual gold coins), and the block corresponding to the transaction information will also be chained to the blockchain for storage. It should be noted that in the calculation process of each node, it is necessary to ensure the fair distribution of computing power and the decentralization of nodes. Based on this, the trading system can be called a decentralized digital asset trading system based on blockchain.
[0093] It is understandable that for each trusted digital certificate, it is necessary to adopt the relevant token protocol standard for issuance. However, for the above-mentioned decentralized digital asset trading system based on blockchain, since its digital assets are equivalent, it is impossible to directly use the relevant token standards of trusted digital certificates to generate and cast unique trusted digital certificates. Based on this, the present application proposes a solution for casting and generating trusted digital certificates in a decentralized digital asset trading system based on blockchain, so that the trading system can effectively generate trusted digital certificates and improve system security and scalability based on trusted digital certificates.
[0094] Specifically, in a decentralized digital asset trading system based on blockchain, taking a certain digital asset (which may be referred to as a first digital asset, such as a certain virtual gold coin) as an example, the first digital asset may be divided, and the present application may obtain a minimum unit into which a digital asset may be divided (e.g., a virtual gold coin may be divided into 10,000 virtual rings, and a virtual ring may be divided into 10,000 virtual diamonds, and a virtual diamond may not be further divided, then the minimum division unit of the virtual gold coin may be a virtual diamond, and a virtual gold coin may be divided into 100 million virtual diamonds), for each minimum division asset after the first digital asset is divided, the present application may refer to it as a first minimum division unit asset. The first digital asset may be divided into N first minimum division unit assets, and the present application may generate a trusted digital certificate based on a first minimum division unit asset. Specifically, for each first minimum division unit asset of the first digital asset, each first minimum division unit asset is the same and cannot be distinguished. Taking the minimum division unit asset as a virtual diamond as an example, since the shape, size, and color of each virtual diamond are the same, all the features of each virtual diamond are the same and cannot be distinguished. Based on the above characteristics of the minimum division unit asset, a first minimum division unit asset S among the N first minimum division unit assets is used. i For example, this application can be the first minimum division unit asset S i Assign asset identifier, the first minimum division unit asset S i The asset identifier can be used to uniquely characterize the first minimum unit asset S i By allocating asset identifiers, each first minimum division unit asset can have an asset identifier. The first minimum division unit assets can be well distinguished through the unique asset identifier, and a first minimum division unit asset can be well queried through the asset identifier.
[0095] Furthermore, for the first minimum division unit asset S with an asset identifier i , this application can be applied in the first minimum division unit asset S i Any file content (text file content, image file content, audio file content or video file content, etc.) is engraved on the first minimum division unit asset S i The file content on the . i Description information of the first minimum division unit asset S i Then by dividing the asset S into the smallest unit i By engraving a certain file content on it, the first minimum unit asset S iIt should be understood that the above inscription is inscribed on the first minimum unit asset S i The file content on the first minimum division unit asset S can be referred to as the file information to be written in this application. In other words, this application can be based on the first minimum division unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing, thereby obtaining the first minimum division unit asset S i The inscription information can be used as the first minimum unit asset S i The description information of the asset can be processed by asset inscription to make the first minimum unit asset S i Be descriptive.
[0096] It should be understood that for a decentralized digital asset trading system based on blockchain, each digital asset (such as the first digital asset) is transferable, so each minimum unit asset is also transferable. Since the minimum unit asset is the smallest unit, it is already indivisible. Therefore, by assigning asset identifiers and asset inscription, the minimum unit asset can be unique, describable, indivisible, and transferable, which all meet the characteristics of a trusted digital certificate. Therefore, by assigning the first minimum unit asset S i By assigning asset identification and performing inscription processing, the smallest unit asset can be presented in the form of a trusted digital certificate, making the smallest unit asset a tradable digital collectible that cannot be tampered with (the blockchain that stores transaction information is tamper-proof). In other words, based on the asset identification and inscription information of the smallest unit asset, the first smallest unit asset can be converted into a trusted digital certificate in a decentralized digital asset trading system based on blockchain.
[0097] It is understandable that the terminal device of the present application may be installed with a target application (ie, an application client). When the application client runs in the terminal device, it may be compatible with the above-mentioned Figure 1Data is exchanged between other blockchain nodes in the blockchain network shown. Among them, the application client may include multimedia clients (for example, video clients), entertainment clients (for example, game clients), education clients, live broadcast clients and other application clients. Among them, the application client can be an independent client, or it can be an embedded sub-client integrated in a client (for example, an education client and a multimedia client, etc.), which is not limited here. The blockchain node in this application may refer to a server, which can exchange data with the terminal device through the application in the terminal device. The server here can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0098] It is understandable that the method provided in the embodiment of the present invention can be executed by a computer device, including but not limited to a terminal device or a server (such as a business server). The blockchain node in the embodiment of the present invention can be a computer device.
[0099] It should be noted that in the specific implementation of the present application, data related to user information, user data (such as transaction information initiated by users), etc., all require manual authorization and permission from the user (i.e., consent from the user) before they can be obtained. In other words, when the above embodiments of the present application are applied to specific products or technologies, the methods and related functions provided by the embodiments of the present application are operated with the permission or consent of the user (the user can actively enable the functions provided by the embodiments of the present application), 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.
[0100] The embodiments of the present application can be applied to various scenarios, including but not limited to gaming scenarios, financial scenarios, cloud technology, artificial intelligence, smart transportation, assisted driving, etc. For ease of understanding, please refer to Figure 2 , Figure 2 This is a schematic diagram of a scenario for building a trusted digital certificate in a decentralized digital asset trading system based on blockchain, provided in an embodiment of the present application.
[0101] like Figure 2 As shown, the blockchain 200 may refer to a blockchain for storing transaction information of the decentralized digital asset trading system. In the blockchain 200, a plurality of blocks are included, for example, Figure 2As shown, it specifically includes block 201, block 202, ..., block 20n; each block may contain different transaction information (or transaction data, transaction records, etc.) in the decentralized digital asset trading system. For each block, it may be generated by a blockchain node. After a blockchain node generates a block, it needs to be reached by consensus nodes in the consensus network. After consensus is reached, it can be put on the chain. For the blockchain node that generates the block, a certain amount of digital assets (such as 50 virtual gold coins) can be rewarded. In other words, Figure 2 Each block included in the blockchain 200 shown will correspond to a certain amount of digital assets. For example, if the digital assets are virtual gold coins, each block will correspond to a certain amount of virtual gold coins. Then the entire blockchain 200 will also correspond to a virtual gold coin collection, for example, Figure 2 As shown, the blockchain 200 may correspond to a virtual gold coin set 2000, and the virtual gold coin set 2000 may include virtual gold coins corresponding to each block, such as Figure 2 As shown, the virtual gold coin set 2000 may specifically include virtual gold coin 2001, virtual gold coin 2002, ..., virtual gold coin 200m.
[0102] Furthermore, the present application can obtain the minimum division unit of virtual gold coins. Here, the minimum division unit of virtual gold coins is diamonds. For each virtual gold coin, it can be divided based on the minimum division unit to obtain a certain amount of virtual diamonds. For example, for virtual gold coin 2001, after it is divided, a virtual diamond set 20000 can be obtained, and the virtual diamond set 20000 contains q identical virtual diamonds. Further, the present application can assign an asset identifier to each virtual diamond. For example, a number can be assigned to each virtual diamond as the asset identifier of the virtual diamond, thereby obtaining the asset identifier of each virtual diamond in the virtual diamond set 20000. For example, Figure 2As shown, the virtual diamond set may include virtual diamonds 20001, ..., virtual diamonds 2000q. For each virtual diamond, text file content, image file content, audio file content or video file content may be engraved thereon, so that each virtual diamond is engraved with a unique feature, and the content engraved on the virtual diamond may be used as the description information of the virtual diamond. For example, taking virtual diamond 20001 as an example, an image file 20a may be engraved on the virtual diamond 20001, and based on the asset identification 20001 of the virtual diamond and the engraved image file 20a, a trusted digital certificate 20D may be converted. The trusted digital certificate 20D may include an engraving number (338281), which can be used to indicate that the virtual diamond is engraved No. 338381. The trusted digital certificate 20D may also include an image file 20a, which can be used as description information of the trusted digital certificate 20D. For example, the pattern, color, expression and other contents of the image file 20a can be used as a descriptive feature to describe the trusted digital certificate. The trusted digital certificate 20D may also include an asset identifier (20001) of the virtual diamond 20001, which is used to indicate which virtual diamond is engraved with the image file content and presented in the form of a trusted digital certificate.
[0103] For ease of understanding, the data processing method provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings. Figure 3 , Figure 3 This is a flowchart of a data processing method based on blockchain provided by an embodiment of the present application. The process can be executed by a computer device, which can be Figure 1 The terminal device shown in FIG. 1 may also be any blockchain node (such as a core node) in the blockchain network. Figure 3 As shown, the process may include at least the following steps S101 to S104:
[0104] Step S101, in a decentralized digital asset trading system based on blockchain, obtaining a first minimum unit asset S of a first digital asset i The first digital asset includes N first minimum divisible unit assets, and the sum of the asset values of the N first minimum divisible unit assets is equal to the asset value of the first digital asset; the first minimum divisible unit asset S i is any one of the N first minimum divisible unit assets, and i and N are both positive integers.
[0105] In this application, a decentralized digital asset trading system may refer to a trading system equivalent to digital assets, which uses blockchain to store transaction data related to digital assets. When storing these transaction data, the blockchain nodes of the blockchain need to perform a large amount of calculations to find a hash value that meets the conditions, where the condition may mean that the first n bits of the hash value must be 0 (the size of n can be automatically adjusted by the system to ensure the stability of the calculation difficulty). After a node obtains a calculation result that meets the conditions, it can generate a block based on the transaction data and submit it to the consensus network to verify the transaction information based on each consensus node. After the verification is passed, the node that obtains the calculation result can be rewarded with a certain amount of digital assets, and the block corresponding to the transaction data will also be chained to the blockchain for storage. Among them, for ease of understanding, here we take the digital asset as a virtual gold coin as an example, and the node that obtains the calculation result can be rewarded with 50 virtual gold coins. In other words, the digital asset trading system can store relevant transaction information based on blockchain. Since blockchain needs to ensure fair distribution of computing power and decentralization of nodes during the calculation process of each node, the trading system can be called a decentralized digital asset trading system based on blockchain.
[0106] Based on the above, it should be understood that each digital asset in the decentralized digital asset trading system is equivalent, and no two digital assets can be distinguished from each other. For example, a virtual gold coin is exactly the same as another virtual gold coin (same value, same appearance, same color, etc.), and cannot be distinguished. The first digital asset here can refer to any digital asset in the decentralized digital asset trading system (such as any virtual gold coin).
[0107] For digital assets in a decentralized digital asset trading system, they can be divided and converted into divided digital assets with smaller asset values. For example, a virtual gold coin can be divided into 10,000 virtual rings (the asset value of 1 virtual ring is less than the asset value of 1 virtual gold coin), and 1 virtual ring can be divided into 10,000 virtual diamonds (the asset value of 1 virtual diamond is less than the asset value of 1 virtual ring). Since 1 virtual diamond cannot be divided any further, it already has the minimum asset value. Therefore, for 1 virtual gold coin, the virtual diamond can be used as the smallest unit asset of the virtual gold coin. That is to say, any digital asset in the decentralized digital asset trading system can be divided according to the minimum division unit, thereby obtaining multiple (two or more) minimum division unit assets. It can be seen that for the first digital asset, it can also be divided, thereby obtaining N (N can be a positive integer greater than 1, and N is usually a large value) minimum division unit assets (here for the convenience of distinction, the N minimum division unit assets of the first digital asset can be referred to as the first minimum division unit asset), and the sum of the asset values of the N first minimum division unit assets is equal to the asset value of the first digital asset. Here, the first minimum division unit asset S i (i is a positive integer), which may refer to any first minimum division unit asset of the N first minimum division unit assets.
[0108] Step S102: the first minimum division unit asset S i Assign asset identification; the first minimum unit asset S i The asset identifier is used to uniquely represent the first minimum unit asset S i .
[0109] In the present application, since each digital asset is identical, and each minimum unit asset of each digital asset is also identical, in order to distinguish each minimum unit asset and make it unique, and also make the asset value of each minimum unit asset inconsistent, the present application can perform asset identification allocation processing for each minimum unit asset, so that each minimum unit asset has an inconsistent asset identification, and through inconsistent asset identification, the asset value of each minimum unit asset can also be inconsistent. For example, taking the asset identification as a digital string as an example, the asset identification "888888" is more specific than the asset identification "349584", so the asset value of the minimum unit asset with the asset identification "888888" will be higher than the asset value of the minimum unit asset with the asset identification "349584".
[0110] Specifically, based on the above, for the decentralized digital asset trading system in this application, each time a blockchain node generates and chains a block, the blockchain node can be rewarded with a certain amount of digital assets. It can be seen that when a block is generated and chained in the blockchain, a certain number of digital assets will be generated, and a block will correspond to a certain number of digital assets (such as 50 virtual gold coins). And the digital assets corresponding to a block will also have a birth order. In other words, each time a block is generated, a certain number of digital assets will be generated in sequence as a reward for the block generation node. Since the block generation time of each block in the blockchain is inconsistent and has time sequence, each digital asset generated by a block also has time sequence. For all digital assets corresponding to the blockchain, there will also be a birth order based on the birth time of each digital asset. This application can refer to the birth time of each digital asset as the asset generation time, and when this application performs asset identification allocation processing for the minimum division unit asset, the asset identification allocation processing can be performed according to the asset generation time of each digital asset.
[0111] Specifically, the first minimum unit asset S i For example, for the first minimum unit asset S i The specific implementation method of allocating asset identifiers can be as follows: an asset sorting protocol corresponding to a decentralized digital asset trading system based on blockchain can be obtained; a unit asset sorting rule configured for the minimum split unit asset in the asset sorting protocol can be used; then, N first minimum split unit assets can be sorted according to the unit asset sorting rule, thereby obtaining a first unit asset sequence; according to the first minimum split unit asset S i The sequence position of the first unit asset sequence is the first minimum split unit asset S i Assign an asset ID.
[0112] The asset sorting protocol here may refer to a trusted digital certificate protocol with ordinal theory, through which the ordinal theory in the protocol allows objects (such as users) to number each minimum unit asset from 0 in the order in which it is mined. For example, the first block in the blockchain corresponds to 50 digital assets (such as 50 virtual gold coins), and each digital asset can be divided into 100 million equivalent minimum unit assets (such as 100 million virtual diamonds), then the first block can correspond to 5 billion virtual diamonds, and for each digital asset corresponding to the 100 million virtual diamonds, there is also a birth time (that is, the time when it is mined), then here, according to the asset generation time of the 50 virtual gold coins and the birth time of the 100 million virtual diamonds corresponding to each virtual gold coin, the 5 billion virtual diamonds can be numbered from 0 in the order from early to late, so that the 5 billion virtual diamonds can be numbered from 0 to 49999999999 in sequence, and the number of the virtual diamond can be used as the asset identification of the virtual diamond, so that each virtual diamond in the first block can have an identification attribute. Similarly, for the second block, the second block corresponds to 50 digital assets (such as 50 virtual gold coins), and each digital asset can be divided into 100 million equivalent minimum division unit assets (such as 100 million virtual diamonds). For these 5 billion virtual diamonds, the 5 billion virtual diamonds can also be numbered from 5000000000 in order from morning to night, so that each virtual diamond can be numbered from 50 to 9999999999 in sequence. The number of the virtual diamond can be used as the asset identification of the virtual diamond, so that each virtual diamond in the second block can have an identification attribute. Using the above method, the corresponding virtual diamond in each block can have a number.
[0113] It should be noted that each block in the blockchain (such as the first block) corresponds to a certain number of digital assets (such as 50 virtual gold coins), and each digital asset can be divided into a certain number of equivalent minimum unit assets (such as 100 million virtual diamonds). For these 100 million virtual diamonds, since they are equivalent, each virtual diamond can be numbered from 0 according to a random algorithm, so that each virtual diamond can be numbered from 0 to 4999999999 in sequence, so that each virtual diamond in the first block can have an identification attribute. In other words, for the minimum unit assets, when numbering them, they can also be sorted according to a random algorithm, sorting each minimum unit asset to form a unit asset sequence, and then starting from a certain value (such as the value 0), each minimum unit asset is numbered in sequence.
[0114] Based on the above, that is to say, when sorting all the minimum split unit assets in the blockchain, each block can be sorted according to the block generation time of the block first, and then the digital assets in a block can be sorted according to the asset generation time of the digital assets in each block, and finally the asset birth time of the minimum split unit asset of a digital asset can be sorted, so that all the minimum split unit assets can be sorted layer by layer; each block can also be sorted according to the block generation time of the block first, and then the digital assets in a block can be sorted according to the asset generation time of the digital assets in each block, and finally the minimum split unit assets of a digital asset can be sorted in a random sorting manner, so that all the minimum split unit assets can be sorted layer by layer. Then for the N first minimum split unit assets of the first digital asset, when sorting them, the unit asset sorting rule configured for the minimum split unit assets here can refer to the rule of sorting according to the asset birth time of the minimum split unit assets (such as sorting in chronological order), or it can be a random sorting rule.
[0115] The N first minimum split unit assets can be sorted by the unit asset sorting rule, thereby obtaining the first unit asset sequence, and then the first minimum split unit asset S can be sorted. i The sequence position in the first unit asset sequence is the first minimum split unit asset S i Assign asset identification. Based on the above, it can be known that after sorting the minimum unit assets corresponding to a certain digital asset, when numbering each minimum unit asset in sequence, it is necessary to connect the number of the last minimum unit asset of the previous digital asset. Then for the first digital asset, the minimum unit asset at the beginning of the sequence also needs to rely on the number of the last minimum unit asset in the unit asset sequence of the previous digital asset to determine the number of the minimum unit asset. Based on this, the present application can refer to the digital assets other than the first digital asset in the decentralized digital asset trading system as the second digital asset, and the second digital asset also includes N minimum unit assets (these N minimum unit assets are actually equivalent to the above-mentioned N first minimum unit assets. For the sake of distinction, they are referred to as N second minimum unit assets here).
[0116] That is to say, the decentralized digital asset trading system based on blockchain also includes a second digital asset, and the second digital asset includes N second smallest divisible unit assets, then in the first smallest divisible unit asset S i When the sequence position of the first unit asset sequence is the starting position of the sequence, according to the first minimum split unit asset Si The sequence position in the first unit asset sequence is the first minimum split unit asset S i The specific implementation method of allocating asset identifiers may be as follows: the first asset generation time corresponding to the first digital asset and the second asset generation time corresponding to the second digital asset may be obtained; then, the first digital asset and the second digital asset may be sorted in the time sequence between the first asset generation time and the second asset generation time, thereby obtaining a digital asset sequence; then, the previous digital asset of the first digital asset in the digital asset sequence (the previous digital asset may refer to a second digital asset) may be determined as the predecessor digital asset of the first digital asset; a second unit asset sequence corresponding to the predecessor digital asset may be obtained; wherein the second unit asset sequence is obtained by sorting N second minimum division unit assets according to the unit asset sorting rule; the asset identifier corresponding to the second minimum division unit asset located at the end position of the second unit asset sequence may be incremented, thereby obtaining the first minimum division unit asset S i The asset identifier.
[0117] For ease of understanding, taking the digital asset as virtual gold coins as an example, assuming that the sequence obtained after sorting all the virtual gold coins in the blockchain is {virtual gold coin 1, virtual gold coin 2, ..., virtual gold coin 100}, then this sequence can be used as the digital asset sequence in this application; wherein, after sorting the 50 smallest divisible unit assets (such as virtual diamonds) corresponding to the virtual gold coin 1, the obtained unit asset sequence 1 is {virtual diamonds, virtual diamonds, ..., virtual diamonds}, then for the virtual diamonds at the starting position of the sequence in the unit asset sequence 1, their number can be 0; the virtual diamonds at the second sequence position can be numbered 1; ...; the virtual diamonds at the end of the sequence can be numbered 49. After sorting the 50 smallest unit assets (such as virtual diamonds) corresponding to virtual gold coin 2, the obtained unit asset sequence 2 is {virtual diamond, virtual diamond, ..., virtual diamond}. Then, for the virtual diamond at the beginning of the sequence in the unit asset sequence 2, its number needs to be determined based on the number of the virtual diamond at the end of the sequence in the unit asset sequence 1. Specifically, the number of the virtual diamond at the end of the sequence in the unit asset sequence 1 is 49, and the result obtained after incrementing (i.e. adding 1) is 50. Then, the number of the virtual diamond at the beginning of the sequence in the unit asset sequence 2 can be 0; the virtual diamond at the second sequence position can be 51; ...; the virtual diamond at the end of the sequence can be 99. Similarly, the number of each virtual diamond corresponding to each virtual gold coin can be determined in sequence. It can be seen that, assuming that the first digital asset is the above-mentioned virtual gold coin 2, then the virtual gold coin 1 can be called the predecessor digital asset of the virtual gold coin 2, and the unit asset sequence 1 corresponding to the virtual gold coin 1 can be the second unit asset sequence. The number 49 of the virtual diamond located at the end position of the sequence in the unit asset sequence 1 is incremented to obtain the number 50, and the number 50 can be used as the asset identifier of the virtual diamond located at the start position of the sequence in the unit asset sequence 2.
[0118] In the first smallest unit asset S i When the sequence position of the first unit asset sequence is not the starting position of the sequence, for the first minimum split unit asset S i The sequence position in the first unit asset sequence is the first minimum split unit asset S i The specific implementation method of allocating asset identifiers may be: the first minimum division unit asset S in the first unit asset sequence may be i The previous first minimum unit asset is determined as the first minimum unit asset S i The predecessor unit asset; then, the asset identifier of the predecessor unit asset can be directly incremented, thereby obtaining the first minimum split unit asset S iThe asset identifier.
[0119] For ease of understanding, taking the digital asset as virtual gold coins as an example, assuming that the sequence obtained after sorting all the virtual gold coins in the blockchain is {virtual gold coin 1, virtual gold coin 2, ..., virtual gold coin 100}, then this sequence can be used as the digital asset sequence in this application; wherein, after sorting the 50 smallest divisible unit assets (such as virtual diamonds) corresponding to the virtual gold coin 1, the obtained unit asset sequence 1 is {virtual diamonds, virtual diamonds, ..., virtual diamonds}, then for the virtual diamonds at the starting position of the sequence in the unit asset sequence 1, their number can be 0; the virtual diamonds at the second sequence position can be numbered 1; ...; the virtual diamonds at the end of the sequence can be numbered 49. After sorting the 50 smallest divisible unit assets (such as virtual diamonds) corresponding to the virtual gold coin 2, the obtained unit asset sequence 2 is {virtual diamonds, virtual diamonds, ..., virtual diamonds}. Then, for the virtual diamonds at the start position of the sequence in the unit asset sequence 2, their numbers need to be determined based on the numbers of the virtual diamonds at the end position of the sequence in the unit asset sequence 1. Specifically, the number of the virtual diamond at the end position of the sequence in the unit asset sequence 1 is 49, and the result obtained after the increment processing (i.e., adding 1) is 50. Then the number of the virtual diamond at the start position of the sequence in the unit asset sequence 2 can be 0; the virtual diamond at the second sequence position can be numbered 51; ...; the virtual diamond at the end position of the sequence can be numbered 99. Similarly, the number of each virtual diamond corresponding to each virtual gold coin can be determined in turn. It can be seen from this that, assuming that the first digital asset is the virtual gold coin 2 mentioned above, then the unit asset sequence 2 can be understood as the first unit asset sequence, assuming that the virtual diamond at the second sequence position is the first smallest divisible unit asset S i , then the virtual diamond at the beginning of the sequence can be called the predecessor unit asset, and the number (50) of the virtual diamond at the beginning of the sequence is incremented to obtain a value of 51, which can be used as the first minimum division unit asset S i The asset ID.
[0120] It should be noted that the above is to sort the various minimum unit assets, directly start from a certain value (such as 0), and number each minimum unit asset in turn, and the number of each minimum unit asset can be used as the asset identification of the minimum unit asset, so the asset identification of the minimum unit asset also reflects the arrangement order of the minimum unit assets. The present application can also determine the asset identification of the minimum unit asset based on the block height of the block where the minimum unit asset is located. For example, the block height of the block where the minimum unit asset is located and the arrangement order of the minimum unit asset in this block can be used as the asset identification of the minimum unit asset. For ease of understanding, take the 3891094th block as an example. The 3891094th block contains 50 digital assets, each digital asset corresponds to 10 minimum divisible unit assets, then the 3891094th block corresponds to 500 minimum divisible unit assets, and these 500 minimum divisible unit assets can be sorted according to the unit asset sorting rule, thereby obtaining a unit asset sequence. Subsequently, for a certain minimum divisible unit asset, the block height of this block (i.e. 3891094) and the sequence position of the minimum divisible unit asset in the sequence can be combined, and the result obtained after the combination can be used as the asset identifier of the minimum divisible unit asset. For example, taking the 399th minimum divisible unit asset in the sequence as an example, its asset identifier can be "3891094.399". In addition, the present application may also assign an asset identifier to each minimum unit asset based on other characteristics of the blockchain. For example, the asset identifier may also be assigned to the minimum unit asset based on characteristic information such as the blockchain cycle, halving cycle, difficulty adjustment block, and the percentile of the current minimum unit asset among all minimum unit assets. The present application does not limit the specific implementation method of assigning asset identifiers to minimum unit assets.
[0121] Optionally, it can be understood that the asset identifiers of the minimum unit assets described above can all be understood as strings of numbers (i.e., numbers composed of numbers). The present application can perform character encoding processing on the numbers composed of numbers according to the encoding rules, convert each number into a string containing a to z, and then use the encoded string as the asset identifier of each minimum unit asset. In other words, in the present application, the asset identifier of the minimum unit asset can be a number composed of numbers, or it can refer to a encoded string composed of various characters. By assigning asset identifiers to the minimum unit assets, each minimum unit asset can have an asset identifier, thereby making each minimum unit asset unique.
[0122] Step S103: based on the first minimum division unit asset S iThe file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Inscription information.
[0123] In this application, after each minimum unit asset is unique, a unique file content can be assigned to a certain minimum unit asset with uniqueness to obtain an inscription information. In other words, this application can refer to the file information to be inscribed to the minimum unit asset as the file information to be written, and based on the first minimum unit asset S i The file information to be written, for the first minimum division unit asset S i The asset inscription process can be understood as writing the file information to be written into the first minimum division unit asset S i , for writing the file information to be written, write it to the first minimum division unit asset S i The process can be implemented by the digital asset protocol. Specifically, for the first minimum unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i The specific implementation method of the inscription information can be: the digital asset protocol corresponding to the decentralized digital asset trading system can be obtained; then, the first minimum unit asset S i The asset identifier and the file information to be written are passed to the digital asset protocol; further, the asset identifier and the file information to be written can be engraved through the engraving logic code used for asset engraving processing in the digital asset protocol, thereby generating a code for describing the first minimum division unit asset S i Inscription information.
[0124] It should be understood that the digital asset protocol here may refer to a protocol that supports the inscription processing of the smallest unit asset (such as the Ordinal protocol), which provides tools for asset inscription processing. By passing the asset identifier of the smallest unit asset and the file information to be written into the protocol, an inscription information can be obtained.
[0125] Step S104: based on the first minimum division unit asset S i The asset identification and inscription information of the first minimum division unit asset S i Transformed into a trusted digital certificate in a decentralized digital asset trading system based on blockchain.
[0126] In this application, the above inscription information is stored on the blockchain corresponding to the system, which can be considered as the description information used to describe the trusted digital certificate. Then, when the first minimum unit asset S is obtained, i After the asset identification and inscription information, the first minimum unit asset S i It can be unique and describable. For a trusted digital certificate, it usually needs to be unique, indivisible, describable and transferable. i It is the smallest unit of digital assets in the blockchain, which is inherently indivisible. Therefore, the first smallest unit of digital assets S i When it is unique and describable, it is also indivisible. In addition, since the first minimum unit asset S i Like digital assets, they can be transferred to another wallet address. Then the first minimum unit asset S i The first minimum division unit S i It is unique, describable, indivisible and transferable, and can be considered as the first smallest unit of division S containing asset identification and inscription information. i A trusted digital certificate.
[0127] For easier understanding, please also refer to Figure 4 , Figure 4 Schematic diagram of a trusted digital certificate generated based on the minimum unit asset provided by the embodiment of the present application. Figure 4 As shown, the trusted digital certificate may include file information 40a (the file information 40a is an image file information) engraved in the smallest unit asset, that is, the smallest unit asset is engraved with a visual image, and the trusted digital certificate also includes the asset identifier "4002048" of the smallest unit asset. Through the asset identifier "4002048" of the smallest unit asset, the asset generation time (i.e., the time when it was mined), the percentile in all the smallest unit assets, the block where it is located, and the scarcity and other information of the smallest unit asset can be clearly identified. The trusted digital certificate also includes the wallet address "bclpyxxxghshkshkf". Through the above information, the trusted digital certificate or the smallest unit asset can be conveniently and quickly located.
[0128] It is understandable that the trusted digital certificate constructed based on the minimum unit asset is completely stored on the blockchain corresponding to the transaction system and does not rely on external storage. Therefore, when the minimum unit asset is traded, the content contained in the corresponding trusted digital certificate (such as the file information to be written, i.e., the inscription information, asset identification, etc.) will also be transferred to another address accordingly. In other words, when the asset transaction information about the first digital asset is obtained, the inscription information needs to be transferred from the asset source address in the asset transaction information to the asset receiving address in the asset transaction information.
[0129] Among them, it can be understood that for the decentralized digital asset trading system, all its transaction information is stored on the blockchain and permanently stored on the chain. For the decentralized digital asset trading system, each transaction data can be composed of a script, and the above-mentioned digital asset protocol defines a script that will not affect the digital asset transaction. When the digital asset is traded, this script can be inserted into the transaction. When trading, by parsing the script, it can be determined whether a minimum unit asset is a trusted digital certificate, and then the corresponding content in the trusted digital certificate can be transferred accordingly.
[0130] Specifically, the specific implementation method for transferring the inscription information from the asset source address in the asset transaction information to the asset receiving address in the asset transaction information may be as follows: the inscription script information used to characterize the inscription information and the transaction script information used to characterize the asset transaction information may be obtained; then, the witness data field may be obtained in the transaction script information, and then the inscription script information may be inserted into the witness data field, thereby obtaining a target witness data field containing the inscription script information; then, the transaction script information containing the target witness data field may be determined as the target transaction script information; the target transaction script information is used to indicate that the inscription information will be transferred from the asset source address to the asset receiving address along with the first digital asset.
[0131] For ease of understanding, the following will take the inscription script information shown in Table 1 as an example for explanation, as shown in Table 1:
[0132] Table 1
[0133]
[0134] Among them, "OP_FALSE" as shown in Table 1 can refer to the starting script of the inscription script information. The script starting with "OP_FALSE" will not be regarded as part of the asset transaction information and will not affect the current digital asset transaction; "ord" in the first "OP_PUSH" as shown in Table 1 is used to indicate the digital asset protocol to which the script belongs (specifically, it can be the Ordinals protocol); the content after "OP_1" indicates the type of the file to be written, and "text / plain; charset=utf-8"" shown in Table 1 above refers to the type of the file to be written, which is plain text; "OP_0" indicates the specific content of the file to be written (specifically Hello, world!), where "OP_0" may have multiple segments (because the data input at one time cannot exceed 520 bytes). In other words, after inserting the inscription script information as shown in Table 1 into the asset transaction information (specifically, it can be inserted into the witness data field of the asset transaction information), a "Hello, world!" string can be inserted into the asset transaction information. The "Hello, world!" string should be transferred to another address together with the digital asset.
[0135] In the embodiment of the present application, by allocating asset identifiers and asset inscription processing, the minimum unit asset can be made unique and describable. At the same time, for the decentralized digital asset trading system based on blockchain, each digital asset is transferable, so each minimum unit asset can also be transferable. Since the minimum unit asset is the smallest unit of division, it is already indivisible. It can be seen that by allocating asset identifiers and asset inscription processing, the minimum unit asset can be made unique, describable, indivisible, and transferable, which all meet the characteristics of trusted digital certificates. Based on the first minimum unit asset S i The asset identification and inscription information of the first minimum division unit asset S i Transformed into a trusted digital certificate in a decentralized digital asset trading system based on blockchain. In this way, the smallest unit of digital assets in the system can be used to effectively generate a trusted digital certificate in the system, which can improve the security and scalability of the system.
[0136] Furthermore, it can be understood that the file information to be written in the above-mentioned minimum division unit asset can be provided by different objects (such as users). In order to improve the security and compliance of the trusted digital certificate, before the asset engraving process is performed on the minimum division unit asset based on the file information to be written, the present application can first perform a permission check on the ownership object of the file to be written and perform an information detection on the file information to be written. After the permission check result of the ownership object and the information detection result of the file information to be written are passed, the asset engraving process is performed on the minimum division unit asset based on the file information to be written. That is, when the present application executes the asset engraving process based on the first minimum division unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Before you proceed with the steps to obtain the inscription information, you can first perform permission verification and information detection. For details, please refer to Figure 5 , Figure 5 is a flowchart of the steps of performing asset inscription processing on the minimum split unit asset provided by the embodiment of the present application, and the flowchart may correspond to the above Figure 3 In the corresponding embodiment, for executing the first minimum division unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i The process of the steps of inscription information. Figure 5 As shown, the process may include at least the following steps S501 to S503:
[0137] Step S501, obtaining the first minimum division unit asset S i The file information to be written and the ownership object of the file information to be written; the ownership object refers to the object that has ownership of the file information to be written.
[0138] Specifically, the first minimum unit asset S i The file information to be written may refer to the file information waiting to be written to the first minimum division unit asset S i The file information to be written may specifically include but is not limited to text file information, image file information, audio file information and video file information, and the ownership object of the file information to be written may refer to an object that owns the file information to be written (for example, the object that uploaded the file information to be written).
[0139] Step S502, perform permission check on the ownership object to obtain the permission check result.
[0140] Specifically, the present application can perform permission check on the ownership object, and its specific implementation method can be: obtaining the object attribute information of the ownership object, and the regional information where the ownership object is located; then, the object attribute information and the regional information can be checked separately; if the object attribute information contains abnormal attribute information, or the regional information is abnormal regional information, then it can be determined that the permission check result of the ownership object is a failure result; and if the object attribute information does not contain abnormal attribute information, and the regional information is normal regional information, then it can be determined that the permission check result of the ownership object is a pass result.
[0141] It can be understood that the object attribute information of the ownership object in the present application may refer to the attribute information used to describe the object. For example, when the object is a user, the object attribute information may include information such as name, age, and work unit. It can detect whether the age reaches the preset age value (such as whether it reaches 20 years old), and it can also detect whether the work unit is a compliant unit, etc. If the age does not reach the preset age value or the work unit has abnormal behavior, then it can be determined that the object attribute information contains abnormal attribute information; the geographical information in the present application may refer to the geographical information where the ownership object is located (such as residential geographical information). If the geographical information where the ownership object is located is not within the recording scope of the blockchain (such as the blockchain records relevant information of Province A, and the geographical information where the ownership object is located is Province B, then it can be determined that the geographical information where the ownership object is located is not within the recording scope of the blockchain), it can be determined that the geographical information where the ownership object is located is abnormal geographical information. If the object attribute information contains abnormal attribute information, or the regional information is abnormal regional information, then it can be determined that the permission detection result of the ownership object is a failed inspection result. If the object attribute information does not contain abnormal attribute information, and the regional information is also normal regional information (such as within the record range of the blockchain), then it can be determined that the permission detection result of the ownership object is a passed inspection result.
[0142] Step S503: when the permission check result is a pass result, perform information check on the file information to be written, determine the information check result of the file information to be written, and when the information check result is a pass result, execute the first minimum division unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Steps for inscription information.
[0143] Specifically, when the permission check result of the ownership object is a pass result, the file information to be written can be further checked to determine whether the file information to be written complies with the specification. Different forms of file information to be written can be configured with different information detection rules. For example, the information detection rules for text file information, image file information, audio file information, and video file information are all inconsistent.
[0144] Here, taking the file information to be written as text file information as an example, a specific implementation method for performing information detection on the file information to be written and determining the information detection result of the file information to be written may be: a set of abnormal text words may be obtained; wherein the abnormal text word set includes W configuration abnormal text words (W is a positive integer); then, the text file information may be subjected to text word statistical processing, thereby obtaining a text word set corresponding to the text file information; then, the text word set may be traversed; if the text word set contains a text word that is identical to the target configuration abnormal text word, then it may be determined that the information detection result of the file information to be written is an information failure result; the target configuration abnormal text word refers to any one of the W configuration abnormal text words; and if the text word set contains no text word that is identical to the target configuration abnormal text word, then it may be determined that the information detection result of the text file information is a detection pass result.
[0145] It can be understood that the present application can pre-configure multiple text words that do not conform to the specifications (which can be referred to as configuration abnormal text words, for example, the text word "system", the text word "go away", and the text word "uh" can be used as configuration abnormal text words), thereby obtaining an abnormal text word set; and for text file information, all the text words contained therein can be counted, thereby obtaining a text word set, and if the text word set contains any configuration abnormal text word, it can be determined that the information detection result of the text file information is an information failure result; and if it does not contain configuration abnormal text words, it can be determined that the information detection result of the text file information is a detection pass result.
[0146] Taking the file information to be written as image file information as an example, the specific implementation method for performing information detection on the file information to be written and determining the information detection result of the file information to be written may be: feature extraction processing may be performed on the image file information, thereby obtaining image features corresponding to the image file information; wherein the image features may include image color features, image size features and image scene features; then, the image processing model may be called, and feature analysis processing may be performed on the image color features, image size features and image scene features respectively through the image processing model, thereby obtaining feature analysis results corresponding to the image color features, image size features and image scene features respectively; when the feature analysis results corresponding to the image color features, image size features and image scene features are all qualified feature results, it can be determined that the information detection result of the image file information is a passed detection result; when one or more feature analysis results among the feature analysis results corresponding to the image color features, image size features and image scene features are unqualified feature results, it can be determined that the information detection result of the image file information is a failed detection result.
[0147] It can be understood that by performing feature extraction processing on the image file information, image color features, image size features and image scene features can be obtained, and the present application can pre-set compliance standards for the image color, image size and image scene of the image file, and the image processing model can perform feature analysis on the image color features based on the compliance standards of the image color to obtain the feature analysis results of the image color features; the image processing model can perform feature analysis on the image size features based on the compliance standards of the image size to obtain the feature analysis results of the image size features; the image processing model can perform feature analysis on the image scene features based on the compliance standards of the image scene to obtain the feature analysis results of the image scene features. When the three feature analysis results are all feature qualified results, it can be determined that the information detection result of the image file information is a detection pass result; and if there is at least one feature analysis result that is a feature unqualified result, it can be determined that the information detection result of the image file information is a detection unqualified result.
[0148] Further, when it is determined that the information detection result of the file information to be written is a detection passing result, the first minimum division unit asset S can be executed. i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i If the permission check result of the ownership object is a failed check result, or the information check result of the file information to be written is a failed check result, the first minimum division unit asset S cannot be executed. iThe file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Steps for inscription information.
[0149] It should be noted that the above is only an example of the information detection method for text file information and image file information, and the information detection method for text file information and image file information is of course not limited to this. As for the information detection method for audio file information and video file information, corresponding detection rules can also be configured for detection. For example, it can be detected whether there is non-standard audio in the audio file information and video file information (non-standard audio can be pre-configured, which can be called abnormal configuration audio). If there is, it can be determined that the information detection result of the audio file information or video file information is a detection failure result.
[0150] In the embodiment of the present application, by allocating asset identifiers and asset inscription processing, the minimum unit asset can be made unique and describable. At the same time, for the decentralized digital asset trading system based on blockchain, each digital asset is transferable, so each minimum unit asset can also be transferable. Since the minimum unit asset is the smallest unit of division, it is already indivisible. It can be seen that by allocating asset identifiers and asset inscription processing, the minimum unit asset can be made unique, describable, indivisible, and transferable, which all meet the characteristics of trusted digital certificates. Based on the first minimum unit asset S i The asset identification and inscription information of the first minimum division unit asset S i Transformed into a trusted digital certificate in a decentralized digital asset trading system based on blockchain. In this way, the smallest unit of digital assets in the system can be used to effectively generate a trusted digital certificate in the system, and the security and scalability of the system can be improved through the trusted digital certificate. In addition, the application can detect the relevant information of the file information to be written, thereby improving the compliance and security of the trusted digital certificate.
[0151] For further information, see Figure 6 , Figure 6 : is a schematic diagram of the structure of a blockchain-based data processing device provided in an embodiment of the present application. The blockchain-based data processing device can be a computer program (including program code) running in a computer device, for example, the blockchain-based data processing device is an application software; the blockchain-based data processing device can be used to execute Figure 3 As shown in the method. Figure 6As shown, the blockchain-based data processing device 1 may include: an asset acquisition module 11, an identification allocation module 12, an engraving module 13 and a conversion module 14.
[0152] The asset acquisition module 11 is used to acquire the first minimum unit asset S of the first digital asset in the decentralized digital asset trading system based on blockchain. i The first digital asset includes N first minimum divisible unit assets, and the sum of the asset values of the N first minimum divisible unit assets is equal to the asset value of the first digital asset; the first minimum divisible unit asset S i is any one of the N first smallest divisible unit assets, i and N are both positive integers;
[0153] The identification allocation module 12 is used to allocate the first minimum division unit asset S i Assign asset identification; the first minimum unit asset S i The asset identifier is used to uniquely represent the first minimum unit asset S i ;
[0154] The engraving module 13 is used to engrave the first minimum division unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Inscription information;
[0155] The conversion module 14 is used to convert the first minimum division unit asset S i The asset identification and inscription information of the first minimum division unit asset S i Transformed into a trusted digital certificate in a decentralized digital asset trading system based on blockchain.
[0156] The specific implementation of the asset acquisition module 11, the identification allocation module 12, the engraving module 13 and the conversion module 14 can be found in the above Figure 3 The description of step S101 to step S104 in the corresponding embodiment will not be repeated here.
[0157] In one embodiment, the identification allocation module 12 is a first minimum division unit asset S i The specific implementation method of allocating asset identification includes:
[0158] Obtain the asset sorting protocol corresponding to the decentralized digital asset trading system based on blockchain;
[0159] According to the unit asset sorting rules configured for the minimum divisible unit assets in the asset sorting protocol;
[0160] Sort the N first minimum split unit assets according to the unit asset sorting rule to obtain a first unit asset sequence;
[0161] According to the first minimum unit asset S i The sequence position in the first unit asset sequence is the first minimum split unit asset S i Assign an asset ID.
[0162] In one embodiment, the first minimum unit asset S i The sequence position in the first unit asset sequence is the sequence start position; the decentralized digital asset trading system based on blockchain also includes a second digital asset; the second digital asset includes N second smallest divisible unit assets;
[0163] The identification allocation module 12 allocates the first minimum division unit asset S i The sequence position in the first unit asset sequence is the first minimum split unit asset S i The specific implementation method of allocating asset identification includes:
[0164] Obtaining a first asset generation time corresponding to the first digital asset and a second asset generation time corresponding to the second digital asset;
[0165] Sort the first digital asset and the second digital asset according to the time sequence between the generation time of the first asset and the generation time of the second asset to obtain a digital asset sequence;
[0166] Determine the previous digital asset of the first digital asset in the digital asset sequence as the predecessor digital asset of the first digital asset;
[0167] Obtain the second unit asset sequence corresponding to the predecessor digital asset; the second unit asset sequence is obtained by sorting N second smallest split unit assets according to the unit asset sorting rule;
[0168] The asset identifier corresponding to the second smallest unit asset at the end of the second unit asset sequence is incremented to obtain the first smallest unit asset S i The asset identifier.
[0169] In one embodiment, the first minimum unit asset S i The sequence position of the first unit asset sequence is a non-starting position of the sequence;
[0170] The identification allocation module 12 allocates the first minimum division unit asset S i The sequence position in the first unit asset sequence is the first minimum split unit asset S iThe specific implementation method of allocating asset identification includes:
[0171] The first minimum split unit asset S in the first unit asset sequence i The previous first minimum unit asset is determined as the first minimum unit asset S i The assets of the predecessor unit;
[0172] The asset identifier of the previous unit asset is incremented to obtain the first minimum split unit asset S i The asset identifier.
[0173] In one embodiment, the blockchain-based data processing device 1 also includes: an object acquisition module 15, an authority verification module 16, an information detection module 17 and a step execution module 18.
[0174] The object acquisition module 15 is used to acquire the first minimum division unit asset S i The file information to be written, and the ownership object of the file information to be written; the ownership object refers to the object that has the ownership of the file information to be written;
[0175] The authority checking module 16 is used to check the authority of the ownership object and obtain the authority checking result;
[0176] The information detection module 17 is used to perform information detection on the file information to be written when the permission detection result is a passing result, and determine the information detection result of the file information to be written;
[0177] Step execution module 18 is used to execute the first minimum division unit asset S when the information detection result is a detection pass result. i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Steps for the inscription information.
[0178] The specific implementation of the object acquisition module 15, the authority verification module 16, the information detection module 17 and the step execution module 18 can be found in the above Figure 5 The description of step S501 to step S503 in the corresponding embodiment will not be repeated here.
[0179] In one embodiment, the permission verification module 16 performs permission verification on the ownership object, and obtains the permission verification result in a specific implementation method, including:
[0180] Obtaining object attribute information of the ownership object and the region information where the ownership object is located;
[0181] Detect object attribute information and regional information separately;
[0182] If the object attribute information contains abnormal attribute information, or the region information is abnormal region information, then the permission detection result of the ownership object is determined to be a failure result;
[0183] If the object attribute information does not contain abnormal attribute information, and the region information is normal region information, then it is determined that the permission detection result of the ownership object is a pass result.
[0184] In one embodiment, the file information to be written is text file information;
[0185] The information detection module 17 performs information detection on the file information to be written, and determines the specific implementation method of the information detection result of the file information to be written, including:
[0186] Obtain an abnormal text word set; the abnormal text word set includes W configuration abnormal text words, where W is a positive integer;
[0187] Perform text word statistics processing on the text file information to obtain a text word set corresponding to the text file information;
[0188] Traverse the text word collection;
[0189] If there is a text word in the text word set that is the same as the target configuration abnormal text word, then the information detection result of the file information to be written is determined to be an information failure result; the target configuration abnormal text word refers to any one of the W configuration abnormal text words;
[0190] If there is no text word identical to the target configuration abnormal text word in the text word set, it is determined that the information detection result of the text file information is a detection pass result.
[0191] In one embodiment, the file information to be written is image file information;
[0192] The information detection module 17 performs information detection on the file information to be written, and determines the specific implementation method of the information detection result of the file information to be written, including:
[0193] Perform feature extraction processing on the image file information to obtain image features corresponding to the image file information; the image features include image color features, image size features and image scene features;
[0194] Calling the image processing model, performing feature analysis processing on the image color feature, the image size feature and the image scene feature respectively through the image processing model, and obtaining feature analysis results corresponding to the image color feature, the image size feature and the image scene feature respectively;
[0195] When the feature analysis results corresponding to the image color feature, the image size feature, and the image scene feature are all feature qualified results, determining that the information detection result of the image file information is a detection passed result;
[0196] When one or more of the feature analysis results corresponding to the image color feature, the image size feature, and the image scene feature are feature unqualified results, it is determined that the information detection result of the image file information is a detection failure result.
[0197] In one embodiment, the imprinting module 13 is based on the first minimum division unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i The specific implementation methods of the inscription information include:
[0198] Obtain the digital asset protocol corresponding to the decentralized digital asset trading system;
[0199] The first minimum unit asset S i The asset identifier and the file information to be written are passed to the digital asset protocol;
[0200] The asset identifier and the file information to be written are processed by the inscription logic code used for asset inscription processing in the digital asset protocol to generate a code for describing the first minimum unit asset S i Inscription information.
[0201] In one embodiment, the blockchain-based data processing device 1 also includes: a transaction acquisition module 19 and a transfer module 20.
[0202] The transaction acquisition module 19 is used to obtain asset transaction information about the first digital asset;
[0203] The transfer module 20 is used to transfer the inscription information from the asset source address in the asset transaction information to the asset receiving address in the asset transaction information.
[0204] The specific implementation of the transaction acquisition module 19 and the transfer module 20 can be found in the above Figure 3 The description of step S104 in the corresponding embodiment will not be repeated here.
[0205] In one embodiment, the specific implementation method of the transfer module 20 transferring the inscription information from the asset source address to the asset receiving address includes:
[0206] Obtaining inscription script information for representing inscription information and transaction script information for representing asset transaction information;
[0207] Obtain the witness data field in the transaction script information, insert the inscription script information into the witness data field, and obtain the target witness data field containing the inscription script information;
[0208] The transaction script information including the target witness data field is determined as the target transaction script information; the target transaction script information is used to indicate that the inscription information will be transferred from the asset source address to the asset receiving address along with the first digital asset.
[0209] In the embodiment of the present application, by allocating asset identifiers and asset inscription processing, the minimum unit asset can be made unique and describable. At the same time, for the decentralized digital asset trading system based on blockchain, each digital asset is transferable, so each minimum unit asset can also be transferable. Since the minimum unit asset is the smallest unit of division, it is already indivisible. It can be seen that by allocating asset identifiers and asset inscription processing, the minimum unit asset can be made unique, describable, indivisible, and transferable, which all meet the characteristics of trusted digital certificates. Based on the first minimum unit asset S i The asset identification and inscription information of the first minimum division unit asset S i Transformed into a trusted digital certificate in a decentralized digital asset trading system based on blockchain. In this way, the smallest unit of digital assets in the system can be used to effectively generate a trusted digital certificate in the system, which can improve the security and scalability of the system.
[0210] For further information, see Figure 7 , Figure 7 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 7As shown, the above-mentioned computer device 8000 may include: a processor 8001, a network interface 8004 and a memory 8005. In addition, the above-mentioned computer device 8000 also includes: a user interface 8003, and at least one communication bus 8002. Among them, the communication bus 8002 is used to realize the connection and communication between these components. Among them, the user interface 8003 may include a display screen (Display), a keyboard (Keyboard), and the optional user interface 8003 may also include a standard wired interface and a wireless interface. The network interface 8004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 8005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 8005 may optionally also be at least one storage device located away from the aforementioned processor 8001. As Figure 7 As shown, the memory 8005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application.
[0211] exist Figure 7 In the computer device 8000 shown, the network interface 8004 can provide a network communication function; the user interface 8003 is mainly used to provide an input interface for the user; and the processor 8001 can be used to call the device control application stored in the memory 8005 to achieve:
[0212] In a decentralized digital asset trading system based on blockchain, obtain the minimum unit asset S of the first digital asset i ; The first digital asset includes N first minimum division unit assets, and the sum of the asset values of the N first minimum division unit assets is equal to the asset value of the target digital asset; the first minimum division unit asset S i is any one of the N first smallest divisible unit assets, i and N are both positive integers;
[0213] The first minimum unit asset S i Assign asset identification; the first minimum unit asset S i The asset identifier is used to uniquely represent the first minimum unit asset S i ;
[0214] Based on the first minimum unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Inscription information;
[0215] Based on the first minimum unit asset S i The asset identification and inscription information of the first minimum unit of asset Si is converted into a trusted digital certificate in the decentralized digital asset trading system based on blockchain.
[0216] It should be understood that the computer device 8000 described in the embodiment of the present application can execute the above Figures 3 to 5 The description of the data processing method based on blockchain in the corresponding embodiment can also be performed as described above. Figure 6 The description of the blockchain-based data processing device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated here.
[0217] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing computer device 8000 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, the computer program can execute the above-mentioned data processing computer device 8000. Figures 3 to 5 The description of the above-mentioned blockchain-based data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0218] The computer-readable storage medium may be a data processing device based on blockchain provided in any of the aforementioned embodiments or an internal storage unit of the computer device, such as a hard disk or memory of a computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the computer device. Furthermore, the computer-readable storage medium may also include both an internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0219] In one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the method provided in one aspect of the embodiments of the present application.
[0220] The terms "first", "second", etc. in the description, claims, and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or units is not limited to the listed steps or modules, but optionally includes steps or modules that are not listed, or optionally includes other step units inherent to these processes, methods, devices, products, or equipment.
[0221] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0222] The method and related apparatus provided by the embodiment of the present application are described with reference to the method flow chart and / or structural diagram provided by the embodiment of the present application. Specifically, each process and / or box in the method flow chart and / or structural diagram, as well as the combination of the processes and / or boxes in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the process. Figure 1 A process or multiple processes and / or structures Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or structures Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1A flow or multiple flows and / or structures illustrate the steps of the functions specified in one block or multiple blocks.
[0223] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method based on blockchain, characterized in that: include: In a decentralized digital asset trading system based on blockchain, the first minimum unit asset S of the first digital asset is obtained. i The first digital asset includes N first minimum divisible unit assets, and the sum of the asset values of the N first minimum divisible unit assets is equal to the asset value of the first digital asset; the first minimum divisible unit asset S i is any one of the N first minimum divisible unit assets, and i and N are both positive integers; The first minimum unit asset S i Assign asset identification; The first minimum unit asset S i The asset identifier is used to uniquely characterize the first minimum unit asset S i ; Based on the first minimum division unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Inscription information; Based on the first minimum division unit asset S i The asset identification and the inscription information of the first minimum division unit asset S i Transformed into a trusted digital certificate in the blockchain-based decentralized digital asset trading system.
2. The method according to claim 1, characterized in that The first minimum unit asset S i Assign asset identification, including: Obtaining an asset sorting protocol corresponding to the blockchain-based decentralized digital asset trading system; According to the unit asset sorting rules configured for the minimum divisible unit assets in the asset sorting protocol; Sort the N first minimum split unit assets according to the unit asset sorting rule to obtain a first unit asset sequence; According to the first minimum division unit asset S i The sequence position of the first unit asset sequence is the first minimum split unit asset S i Assign an asset ID.
3. The method according to claim 2, characterized in that The first minimum unit asset S i The sequence position in the first unit asset sequence is the sequence start position; the blockchain-based decentralized digital asset trading system also includes a second digital asset; the second digital asset includes N second minimum division unit assets; According to the first minimum division unit asset S i The sequence position of the first unit asset sequence is the first minimum split unit asset S i Assign asset identification, including: Obtaining a first asset generation time corresponding to the first digital asset and a second asset generation time corresponding to the second digital asset; Sort the first digital asset and the second digital asset according to the time sequence between the generation time of the first asset and the generation time of the second asset to obtain a digital asset sequence; Determine the previous digital asset of the first digital asset in the digital asset sequence as the predecessor digital asset of the first digital asset; Obtaining a second unit asset sequence corresponding to the predecessor digital asset; the second unit asset sequence is obtained by sorting the N second smallest division unit assets according to the unit asset sorting rule; The asset identifier corresponding to the second smallest unit asset at the end of the second unit asset sequence is incremented to obtain the first smallest unit asset S i The asset identifier.
4. The method according to claim 2, characterized in that: The first minimum unit asset S i The sequence position of the first unit asset sequence is a non-starting position of the sequence; According to the first minimum division unit asset S i The sequence position of the first unit asset sequence is the first minimum split unit asset S i Assign asset identification, including: The first minimum split unit asset S in the first unit asset sequence is i The last first minimum unit asset is determined as the first minimum unit asset S i The assets of the predecessor unit; The asset identifier of the predecessor unit asset is incremented to obtain the first minimum split unit asset S i The asset identifier.
5. The method according to claim 1, characterized in that The method further comprises: Get the first minimum unit asset S i The file information to be written, and the ownership object of the file information to be written; the ownership object refers to the object that has the ownership of the file information to be written; Performing an authority check on the ownership object to obtain an authority check result; When the authority check result is a check pass result, the file information to be written is checked to determine the information check result of the file information to be written, and when the information check result is a check pass result, the operation based on the first minimum division unit asset S is executed. i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Steps for the inscription information.
6. The method according to claim 5, characterized in that The performing of permission check on the ownership object to obtain a permission check result includes: Acquire object attribute information of the ownership object and region information where the ownership object is located; detecting the object attribute information and the region information respectively; If the object attribute information includes abnormal attribute information, or the region information is abnormal region information, determining that the permission detection result of the ownership object is a failure result; If the object attribute information does not contain abnormal attribute information, and the region information is normal region information, it is determined that the permission detection result of the ownership object is a pass result.
7. The method according to claim 5, characterized in that The file information to be written is text file information; The performing information detection on the file information to be written to determine the information detection result of the file information to be written includes: Obtain an abnormal text word set; the abnormal text word set includes W configuration abnormal text words, where W is a positive integer; Performing text word statistics processing on the text file information to obtain a text word set corresponding to the text file information; Traversing the text word set; If there is a text word in the text word set that is the same as the target configuration abnormal text word, then the information detection result of the file information to be written is determined to be an information failure result; the target configuration abnormal text word refers to any one of the W configuration abnormal text words; If there is no text word identical to the target configuration abnormal text word in the text word set, it is determined that the information detection result of the text file information is a detection pass result.
8. The method according to claim 5, characterized in that The file information to be written is image file information; The performing information detection on the file information to be written to determine the information detection result of the file information to be written includes: Performing feature extraction processing on the image file information to obtain image features corresponding to the image file information; the image features include image color features, image size features and image scene features; Calling an image processing model, and performing feature analysis processing on the image color feature, the image size feature, and the image scene feature respectively through the image processing model to obtain feature analysis results corresponding to the image color feature, the image size feature, and the image scene feature respectively; When the feature analysis results corresponding to the image color feature, the image size feature, and the image scene feature are all feature qualified results, determining that the information detection result of the image file information is a detection passed result; When one or more of the feature analysis results corresponding to the image color feature, the image size feature, and the image scene feature are feature unqualified results, it is determined that the information detection result of the image file information is a detection failure result.
9. The method according to claim 1, characterized in that: Based on the first minimum division unit asset S i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i The inscription information includes: Obtaining the digital asset protocol corresponding to the decentralized digital asset trading system; The first minimum unit asset S i The asset identifier and the file information to be written are transmitted to the digital asset protocol; The asset identifier and the file information to be written are processed by the inscription logic code used for asset inscription processing in the digital asset protocol to generate a code for describing the first minimum unit asset S i Inscription information.
10. The method according to claim 1, characterized in that The method further comprises: Obtaining asset transaction information about the first digital asset; The inscription information is transferred from the asset source address in the asset transaction information to the asset receiving address in the asset transaction information.
11. The method according to claim 10, characterized in that The transferring of the inscription information from the asset source address to the asset receiving address comprises: Acquire inscription script information for representing the inscription information and transaction script information for representing the asset transaction information; Obtaining a witness data field in the transaction script information, inserting the inscription script information into the witness data field, and obtaining a target witness data field containing the inscription script information; The transaction script information including the target witness data field is determined as the target transaction script information; the target transaction script information is used to indicate that the inscription information will be transferred from the asset source address to the asset receiving address along with the first digital asset.
12. A data processing device based on blockchain, characterized in that: include: The asset acquisition module is used to obtain the first minimum unit asset S of the first digital asset in a decentralized digital asset trading system based on blockchain. i The first digital asset includes N first minimum divisible unit assets, and the sum of the asset values of the N first minimum divisible unit assets is equal to the asset value of the first digital asset; the first minimum divisible unit asset S i is any one of the N first minimum divisible unit assets, and i and N are both positive integers; The identification allocation module is used to allocate the first minimum division unit asset S i Assign asset identification; The first minimum unit asset S i The asset identifier is used to uniquely characterize the first minimum unit asset S i ; The engraving module is used to engrave the asset S based on the first minimum division unit i The file information to be written, for the first minimum division unit asset S i Perform asset inscription processing to obtain the first minimum unit asset S i Inscription information; A conversion module is used to convert the first minimum division unit asset S i The asset identification and the inscription information of the first minimum division unit asset S i Transformed into a trusted digital certificate in the blockchain-based decentralized digital asset trading system.
13. A computer device, characterized in that: include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a network communication function, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method described in any one of claims 1-11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the method according to any one of claims 1 to 11.
15. A computer program product, characterized in that The computer program product comprises a computer program, which is stored in a computer-readable storage medium. The computer program is suitable for being read and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 11.