Data processing method, device and equipment based on block chain and readable storage medium

Through blockchain technology, digital resources are used as transaction media, the problems of high cost and centralized management of traditional transaction media are solved, decentralized, safe and efficient transaction management are achieved, and users' control over resources and credibility of transactions are improved.

CN120258802APending Publication Date: 2025-07-04TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410014691.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-02
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

The issuance and management of traditional trading media has high costs, trust problems and data tampering risks caused by centralized management, resulting in user assets losses.

Method used

Using blockchain technology, digital resources are used as a transaction medium to realize decentralized management, and using the unique attribution rights of smart contracts and digital resources on the blockchain to ensure the security and transparency of transactions.

Benefits of technology

It reduces the issuance cost of trading media, improves management efficiency and accuracy, gives users complete control and unique ownership of digital resources, and enhances the credibility and security of transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120258802A_ABST
    Figure CN120258802A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method, device and equipment based on a block chain and a readable storage medium, and the method comprises the steps: obtaining an issuing request of an issuing party, and issuing a first digital resource with an issuing limit in the issuing request to the issuing party; when a transfer request for the first digital resource initiated by the issuer is obtained, transferring the first digital resource to a second account address; when a transaction request initiated by a receiver for the digital resource article in a transaction platform of an issuer is obtained, determining a target transfer resource value of a second digital resource needing to be transferred by the receiver based on the issuing limit of the first digital resource and a to-be-transferred resource value, and transferring the first digital resource and the second digital resource with the target transfer resource value to a first account address of the issuer, and transferring the digital resource article to a second account address of the receiver. According to the application, the digital resource can be used as the transaction medium, and the credibility and security of the transaction medium are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular, to a data processing method, apparatus, device, and readable storage medium based on blockchain. Background Art

[0002] The issuance of traditional trading media is generally paper-based, which requires high printing costs. At the same time, trading media often need to set various category restrictions, usage times restrictions, and usage period restrictions, etc., and different templates are required for management, resulting in high labor costs for trading media management.

[0003] The issuance and use of trading media are centralized, usually controlled and managed by a company or institution. Centralized management has trust issues. The company or institution has the sole ownership right to the trading media, and there is a risk of data tampering, resulting in losses of user assets and causing security problems. Summary of the Invention

[0004] Embodiments of this application provide a data processing method, apparatus, device, and readable storage medium based on blockchain, which can use digital resources as trading media, improving the credibility and security of trading media.

[0005] One aspect of the embodiments of this application provides a data processing method based on blockchain, including:

[0006] Obtain the issuance request of the issuer, and issue the first digital resource with the issuance amount in the issuance request by the issuer; the issuer has the sole ownership right to the first digital resource;

[0007] When receiving the transfer request for the first digital resource initiated by the issuer, based on the first account address of the issuer and the second account address of the recipient in the transfer request, transfer the first digital resource to the second account address; after the first digital resource is transferred to the second account address, the recipient has the sole ownership right to the first digital resource;

[0008] When receiving the transaction request for digital resource items initiated by the recipient on the issuer's trading platform, based on the reported resource value of the digital resource items reported by the issuer on the trading platform, determine the to-be-transferred resource value of the second digital resource that the recipient needs to transfer;

[0009] Based on the issuance amount of the first digital resource and the to-be-transferred resource value, determine the target transfer resource value of the second digital resource that the recipient needs to transfer, transfer the first digital resource and the second digital resource with the target transfer resource value to the first account address of the issuer, and transfer the digital resource items to the second account address of the recipient.

[0010] Among them, obtaining the issuance request of the issuer and issuing the first digital resources with the issuance amount in the issuance request to the issuer includes:

[0011] Obtaining the issuance request of the issuer; the issuance request includes an issuance contract identifier and issuance information; the issuance information includes an issuance quantity M, an issuance amount, and resource permissions;

[0012] Invoking a resource issuance contract based on the issuance contract identifier in the issuance request, and issuing M first digital resources with the issuance amount and resource permissions to the issuer; the resource permissions are used to indicate the transfer permissions of the first digital resources among the recipients.

[0013] Among them, transferring the first digital resources to the second account address based on the first account address of the issuer and the second account address of the recipient in the transfer request includes:

[0014] Invoking a trusted proxy contract based on the proxy contract identifier in the transfer request, and verifying the signature information in the transfer request through the authorization function in the trusted proxy contract; the signature information is obtained by signing the first digital resources based on the private key of the issuer.

[0015] When the signature verification is successful, authorizing the first digital resources for the trusted proxy contract, invoking the transfer function in the trusted proxy contract, and transferring the authorized first digital resources to the second account address based on the first account address of the issuer and the second account address of the recipient in the transfer request.

[0016] Among them, verifying the signature information in the transfer request through the authorization function in the trusted proxy contract includes:

[0017] Obtaining the public key of the first account address through the authorization function in the trusted proxy contract, and performing a decryption operation on the signature information based on the public key of the first account address to obtain the hash value to be verified;

[0018] Generating the target hash value of the first digital resources;

[0019] If the hash value to be verified is the same as the target hash value, it is determined that the signature verification is successful;

[0020] If the hash value to be verified is different from the target hash value, it is determined that the signature verification fails, and an error prompt message is returned to the issuer.

[0021] Among them, it also includes:

[0022] If the transaction address for the digital resource item in the transaction request is the second account address of the issuer, it is determined that the transaction request is a request initiated by the recipient in the issuer's trading platform.

[0023] Among them, determining the target transfer resource value of the second digital resource that the recipient needs to transfer based on the issuance quota of the first digital resource and the value of the resource to be transferred includes:

[0024] If the value of the resource to be transferred of the second digital resource that the recipient needs to transfer is greater than or equal to the service threshold, then the difference between the issuance quota of the first digital resource and the value of the resource to be transferred is determined as the target transfer resource value of the second digital resource that the recipient needs to transfer; the service threshold is set by the issuer for the first digital resource.

[0025] Among them, it also includes:

[0026] If the value of the resource to be transferred of the second digital resource that the recipient needs to transfer is less than the service threshold, it is determined that the first digital resource does not have the usage permission for the transaction request, the second digital resource with the value of the resource to be transferred is transferred to the first account address of the issuer, and the digital resource item is transferred to the second account address of the recipient.

[0027] Among them, it also includes:

[0028] When the first digital resource held by the recipient has the transfer permission and a transfer request for the first digital resource initiated by the recipient is obtained, based on the second account address of the recipient and the third account address of the transferee in the transfer request, the first digital resource is transferred to the third account address; after the first digital resource is transferred to the third account address, the transferee has the sole ownership right to the first digital resource.

[0029] Among them, it also includes:

[0030] When a redemption request for the first digital resource initiated by the recipient is obtained, a second digital resource with a redemption value is issued to the second account address in the redemption request, and the first digital resource is cancelled; the redemption value is determined based on the first digital resource.

[0031] An embodiment of the present application provides a data processing device based on a blockchain on the one hand, including:

[0032] A resource issuance module, configured to obtain an issuance request from an issuer and issue a first digital resource with an issuance quota in the issuance request by the issuer; the issuer has the sole ownership right to the first digital resource;

[0033] A resource transfer module, configured to, when a transfer request for the first digital resource initiated by the issuer is obtained, transfer the first digital resource to the second account address based on the first account address of the issuer and the second account address of the recipient in the transfer request; after the first digital resource is transferred to the second account address, the recipient has the sole ownership right to the first digital resource;

[0034] A resource trading module, which is used to determine the to-be-transferred resource value of the second digital resource that the recipient needs to transfer based on the reported resource value of the digital resource item reported by the issuer in the trading platform when a trading request initiated by the recipient for the digital resource item in the issuer's trading platform is obtained;

[0035] A resource processing module, which is used to determine the target transfer resource value of the second digital resource that the recipient needs to transfer based on the issuance quota of the first digital resource and the to-be-transferred resource value, transfer the first digital resource and the second digital resource with the target transfer resource value to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient.

[0036] Among them, the resource issuance module is specifically used to obtain the issuance request of the issuer; the issuance request includes an issuance contract identifier and issuance information; the issuance information includes an issuance quantity M, an issuance quota, and resource permissions; based on the issuance contract identifier in the issuance request, call the resource issuance contract to issue M first digital resources with the issuance quota and resource permissions for the issuer; the resource permissions are used to indicate the transfer permissions of the first digital resources among the recipients.

[0037] Among them, the resource transfer module includes:

[0038] A contract call unit, which is used to call a trusted proxy contract based on the proxy contract identifier in the transfer request, and verify the signature information in the transfer request through the authorization function in the trusted proxy contract; the signature information is obtained by signing the first digital resource with the private key of the issuer;

[0039] A signature verification unit, which is used to authorize the first digital resource for the trusted proxy contract when the signature verification is successful, call the transfer function in the trusted proxy contract, and transfer the authorized first digital resource to the second account address based on the first account address of the issuer and the second account address of the recipient in the transfer request.

[0040] Among them, the signature verification unit includes:

[0041] A hash calculation sub-unit, which is used to obtain the public key of the first account address through the authorization function in the trusted proxy contract, and perform a decryption operation on the signature information based on the public key of the first account address to obtain the to-be-verified hash value;

[0042] The hash calculation sub-unit is also used to generate the target hash value of the first digital resource;

[0043] A hash judgment sub-unit, which is used to determine that the signature verification is successful if the to-be-verified hash value is the same as the target hash value;

[0044] The hash judgment sub-unit is further configured to determine that the signature verification fails and return an error prompt message to the issuer if the hash value to be verified is different from the target hash value.

[0045] Among them, it further includes:

[0046] The request determination module is configured to determine that the transaction request is a request initiated by the recipient on the issuer's trading platform if the trading address for the digital resource item in the transaction request is the second account address of the issuer.

[0047] Among them, the resource trading module is specifically configured to, if the to-be-transferred resource value of the second digital resource that the recipient needs to transfer is greater than or equal to the service threshold, determine the difference between the issuance quota of the first digital resource and the to-be-transferred resource value as the target transfer resource value of the second digital resource that the recipient needs to transfer; the service threshold is set by the issuer for the first digital resource.

[0048] Among them, it further includes:

[0049] The threshold trading module is configured to, if the to-be-transferred resource value of the second digital resource that the recipient needs to transfer is less than the service threshold, determine that the first digital resource does not have the usage permission for the transaction request, transfer the second digital resource with the to-be-transferred resource value to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient.

[0050] Among them, it further includes:

[0051] The resource transfer module is configured to, when the first digital resource held by the recipient has the transfer permission and a transfer request for the first digital resource initiated by the recipient is obtained, transfer the first digital resource to the third account address based on the second account address of the recipient and the third account address of the transferee in the transfer request; after the first digital resource is transferred to the third account address, the transferee has the sole ownership permission for the first digital resource.

[0052] Among them, it further includes:

[0053] The resource exchange module is configured to, when a redemption request for the first digital resource initiated by the recipient is obtained, issue the second digital resource with a redemption value to the second account address in the redemption request and cancel the first digital resource; the redemption value is determined based on the first digital resource.

[0054] One aspect of the embodiments of the present application provides a computer device, including: a processor, a memory, and a network interface;

[0055] The processor is connected to a memory and a network interface. The network interface is used to provide data communication functions, and the memory is used to store computer programs. When the computer programs are executed by the processor, the computer device executes the methods provided by the embodiments of the present application.

[0056] On the one hand, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which is adapted to be loaded and executed by a processor so that a computer device having the processor executes the methods provided by the embodiments of the present application.

[0057] On the one hand, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium. The processor of the 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 methods provided by the embodiments of the present application.

[0058] In the embodiments of the present application, by issuing a first digital resource by the issuer and transferring the first digital resource to the recipient, when the recipient initiates a transaction for a digital resource item on the issuer's trading platform, the first digital resource can be used as a trading medium, reducing the value of the second digital resource required to transfer the digital resource item. The decentralized issuance and management of the trading medium can be realized through the blockchain network, improving the efficiency and accuracy of trading medium management, reducing the issuance cost of the trading medium, endowing the recipient with full control and sole ownership of the first digital resource it owns, enabling the digital resource to be used as a trading medium, and improving the credibility and security of the trading medium. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required to be used in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0060] Figure 1 It is a schematic structural diagram of a blockchain network provided by an embodiment of the present application;

[0061] Figure 2a It is a schematic diagram of a data processing scenario based on the blockchain provided by an embodiment of the present application Figure 1 ;

[0062] Figure 2b It is the second schematic diagram of a data processing scenario based on the blockchain provided by an embodiment of the present application;

[0063] Figure 2c It is a schematic diagram of a data processing scenario based on blockchain provided by an embodiment of the present application Figure 3 ;

[0064] Figure 3 It is a schematic flowchart of a data processing method based on blockchain provided by an embodiment of the present application Figure 1 ;

[0065] Figure 4 It is the second schematic flowchart of a data processing method based on blockchain provided by an embodiment of the present application;

[0066] Figure 5 It is a schematic structural diagram of a data processing device based on blockchain provided by an embodiment of the present application;

[0067] Figure 6 It is a schematic structural diagram of a computer device provided by an embodiment of the present application. Detailed implementation manners

[0068] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0069] A blockchain is a carrier and organizational method for running blockchain technology. Blockchain technology (BT) is also known as distributed ledger technology, which is an Internet database technology characterized by decentralization, openness, and transparency, allowing everyone to participate in database records. Blockchain technology is a distributed infrastructure and computing method that uses a block-chain data structure to verify and store data, uses a distributed node consensus algorithm to generate and update data, uses cryptography to ensure the security of data transmission and access, and uses smart contracts composed of automated script codes to program and operate data.

[0070] For ease of understanding, the blockchain and its related concepts will be elaborated below:

[0071] Blockchain: A blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithms. It is mainly used to organize data in chronological order, encrypt it into a ledger, making it impossible to be tampered with or forged, while also enabling data verification, storage, and update. Essentially, a blockchain is a decentralized database, and each node in this database stores an identical blockchain. The blockchain network can distinguish nodes into consensus nodes and business nodes, where the consensus nodes are responsible for the consensus across the entire blockchain network. For the process of transaction data being written into the ledger in the blockchain network, it can be as follows: The resource client sends transaction data to the business node, and then this transaction data is passed among business nodes in the blockchain network in a relay manner until the consensus node receives the transaction data. The consensus node then packs this transaction data into a block, conducts consensus with other consensus nodes, and after the consensus is passed, writes the block carrying this transaction data into the ledger.

[0072] Block: A block is a data packet that carries transaction data (i.e., transaction operations) on the blockchain network. It is a data structure marked with a timestamp and the hash value of the previous block. Blocks are verified by the network's consensus mechanism to determine the transactions within the block.

[0073] Hash value: Also known as information fingerprint or fingerprint, a hash value is generated by converting input data of any length into a cipher through a hash algorithm and performing a fixed output. It is impossible to retrieve the original input data by decrypting the hash value, and it is a one-way encryption function. In a blockchain, each block (except the initial block) contains the hash value of the previous block, and the previous block is called the parent block of the current block. The hash value is a potential core foundation and the most important aspect in blockchain technology. It preserves the authenticity of recording and viewing data, as well as the integrity of the blockchain as a whole.

[0074] Smart contract: The concept of a smart contract has three elements: commitment, agreement, and digital form. Therefore, it can extend the application scope of the blockchain to all aspects of financial industry transactions, payments, settlements, and clearings. A smart contract means that when a pre-programmed condition is triggered, the corresponding contract terms are immediately executed, and its working principle is similar to the if-then statement in a computer program.

[0075] Digital resource: A unique encrypted token used to represent media resources (also known as digital assets), which can be traded on the blockchain.

[0076] Account: A blockchain account contains an account address. The account address is a unique address generated on the blockchain using a public-private key pair, used to identify the unique address of the blockchain account.

[0077] Digital resource blockchain: It refers to a blockchain system that supports functions such as the issuance, trading, circulation, and management of digital resource meta - commodities.

[0078] Digital resource meta - item: It is a digital asset with a unique identifier that is generated and issued based on consortium blockchain technology and can only be owned by blockchain accounts that have passed real - name authentication.

[0079] Digital resource metadata: Information used to describe the attributes of digital resource meta - commodities, which is used to indicate the identification, uniform resource identifier, author name, abstract, signature, etc. of digital resource meta - commodities.

[0080] Asset: Rights and interests that can be issued, circulated, stored, and traded on the blockchain for completing payment and settlement services.

[0081] Please refer to Figure 1 , Figure 1 which is a schematic structural diagram of a blockchain network provided by an embodiment of this application. As Figure 1 shown, the blockchain network may include, but is not limited to, the blockchain network corresponding to the consortium chain. The blockchain network may include multiple blockchain nodes. The multiple blockchain nodes may specifically include blockchain node 10a, blockchain node 10b, blockchain node 10c, blockchain node 10d, …, blockchain node 10n. Among them, when each blockchain node is working properly, it can receive data sent from the outside world and perform block - on - chain processing based on the received data, and can also send data to the outside world. To ensure data intercommunication between each blockchain node, there may be data connections between each blockchain node. For example, there is a data connection between blockchain node 10a and blockchain node 10b, a data connection between blockchain node 10a and blockchain node 10c, and a data connection between blockchain node 10b and blockchain node 10c.

[0082] It can be understood that data or blocks can be transmitted between blockchain nodes through the above - mentioned data connections. The blockchain network can implement data connections between blockchain nodes based on node identifiers. For each blockchain node in the blockchain network, it has a corresponding node identifier, and each of the above - mentioned blockchain nodes can store the node identifiers of other blockchain nodes that are connected to itself, so as to broadcast the obtained data or generated blocks to other blockchain nodes according to the node identifiers of other blockchain nodes in the future.

[0083] For example, blockchain node 10a can maintain a node identifier list as shown in Table 1. This node identifier list stores the node names and node identifiers of other nodes:

[0084] Table 1

[0085] Node Name Node Identifier Node 10a AAA.AAA.AAA.AAA Node 10b BBB.BBB.BBB.BBB Node 10c CCC.CCC.CCC.CCC Node 10d DDD.DDD.DDD.DDD … … Node 10n EEE.EEE.EEE.EEE

[0086] Among them, the node identifier can be the Internet Protocol (IP) address for interconnection between networks and any other information that can be used to identify nodes in the blockchain network. Only the IP address is taken as an example in Table 1 for illustration. For example, blockchain node 10a can send information (such as a block) to blockchain node 10b through the node identifier BBB.BBB.BBB.BBB, and blockchain node 10b can determine that the information is sent by blockchain node 10a through the node identifier AAA.AAA.AAA.AAA.

[0087] In the blockchain, before a block is chained, the block must go through consensus by the consensus nodes in the blockchain network and can be added to the blockchain only after the consensus is passed. It can be understood that when the blockchain is used in some scenarios of commercial institutions, not all participating nodes in the blockchain (i.e., the blockchain nodes in the above blockchain network) have sufficient resources and necessity to become the consensus nodes of the blockchain. For example, in Figure 1 the shown blockchain network, blockchain nodes 10a, 10b, 10c, and 10d can be used as the consensus nodes in the blockchain network. The consensus nodes in the blockchain network participate in the consensus, that is, conduct consensus on the block (including a batch of transactions), that is, vote on the block; while the non-consensus nodes do not participate in the consensus but will help spread the block and voting messages, and synchronize the states with each other, etc.

[0088] It can be understood that when the blockchain network adopts the Byzantine consensus mechanism to achieve the consensus of the block, the assembly of the block and the initiation of the consensus are usually completed by the primary node (also called the block-producing node). In the embodiments of the present application, as Figure 1 shown, the blockchain network can adopt the Byzantine consensus mechanism to achieve the consensus of the block. At this time, a blockchain node with the consensus function, for example, blockchain node 10a, needs to determine the primary node corresponding to the block at the next block height after determining that the block at the current block height is successfully chained, in order to complete the consensus operation for the block at the next block height.

[0089] As Figure 1 shown, the platform server 100 (the server corresponding to the issuer) can have a communication connection with any terminal device in the terminal device cluster (the devices corresponding to the receivers, which can include terminal devices 200a, 200b,..., 200n), and there is also a communication connection between the platform server 100 and the blockchain network. Among them, the above communication connection is not limited to the connection method and can be directly or indirectly connected through a wired communication method, or can be directly or indirectly connected through a wireless communication method, or can also be connected through other methods, which are not limited in the present application.

[0090] The platform server 100 and the terminal device cluster (including terminal devices 200a, 200b, ……, 200n) can be installed with resource clients. When the resource client runs in the platform server 100, it can interact with any blockchain node in the above blockchain network, so that the above blockchain network can receive data requests from the platform server 100.

[0091] Among them, the resource client can be a game application, a video editing application, a social application, an instant messaging application, a live broadcast application, a short video application, a video application, a music application, a shopping application, a novel application, a payment application, a browser, etc., which have the function of displaying data information such as text, images, audio, and video, and can store digital resource identifiers through the resource management service function. Among them, the resource client can be an independent client or an embedded sub-client integrated in a certain client (such as an instant messaging client, a social client, a video client, etc.), which is not limited here.

[0092] The resource client can be used to implement the resource management service function and realize the communication connection with the decentralized application client based on this resource management service function.

[0093] The resource client is a tool for managing and storing user digital resources. For example, digital resources can be transferred to other accounts based on the resource client, and digital resources transferred from other accounts can also be received based on the resource client. The resource client can be a hardware device or a software program. In this application, the resource client of the target object can establish a communication connection with the decentralized application client to implement related operations such as authorized login of the target object.

[0094] It can be understood that with the wide deployment of various decentralized applications on the blockchain and the increase in user activities on the blockchain, when ordinary users use decentralized applications, they can use the blockchain key management tool for login. The address in the blockchain key management tool corresponds to a user on the blockchain, and the decentralized application can obtain the user address from the key management tool through some interfaces, solving the problem that the third-party background cannot trust the user address used when the decentralized application logs in.

[0095] The blockchain node in the embodiment of this application can be any blockchain node in the blockchain network. For ease of understanding, blockchain node 10a is taken as an example for detailed description.

[0096] Specifically, blockchain node 10a can obtain the issuance request from the issuer through the platform server 100. The issuance request can include the issuance information of the first digital resource.

[0097] Among them, the issuer can be a unit or institution that needs to issue the first digital resource, and the issuance information may include the issuance quota of the first digital resource.

[0098] The first digital resource can be a type of digital collectible, that is, a credible digital rights and interests certificate with unique characteristics in the blockchain network, and it is a data object that can record and process multi-dimensional and complex attributes on the blockchain. It is non-fungible and irreplaceable. When a user has the sole ownership right of the first digital resource, it can prove that the digital resource meta-item associated with the identifier of the first digital resource belongs to the user.

[0099] The blockchain node 10a can issue the first digital resource for the issuer based on the issuance information, and the blockchain node 10a can transfer the issued first digital resource to the first account address corresponding to the issuer on the resource client. The issuer has the sole ownership right to the first digital resource.

[0100] It can be understood that the issuance, circulation, storage, and trading of the first digital resource can be carried out in the blockchain network, making the circulation process of the first digital resource public and transparent, while ensuring the security of data transmission and access.

[0101] When the blockchain node 10a receives a transfer request for the first digital resource initiated by the issuer, the blockchain node 10a can transfer the first digital resource to the second account address of the recipient based on the first account address of the issuer (the address corresponding to the issuer on the resource client) and the second account address of the recipient (the address corresponding to the recipient on the resource client) in the transfer request.

[0102] Among them, the recipient can be a user on the issuer's trading platform. After the first digital resource is transferred to the second account address corresponding to the recipient, the recipient has the sole ownership right to the first digital resource.

[0103] It can be understood that the first digital resource can be bound to the account address of the recipient in the resource client through the tokenID in the metadata. For example, after the first digital resource a is transferred to the second account address of the recipient a, the first digital resource a can be bound to the second account address of the recipient a in the resource client through the tokenID in the metadata. After the binding is completed, the recipient a has the sole ownership right to the first digital resource a.

[0104] Digital resource items can be traded on a trading platform. The platform server 100 can be the back-end server of the trading platform. The digital resource items can be generated and issued based on blockchain technology, have passed content compliance reviews, and are digital assets with unique identifiers that can only be owned by blockchain accounts that have passed real-name authentication, or digital rights representing specific items. The digital resource items on the trading platform can report a reported resource value, which can represent the second digital resource required for trading, pre-set in the trading platform, for the digital resource items.

[0105] The second digital resource can be a type of digital asset that can be replaced, is unified, can be infinitely split, can be directly exchanged with each other, and the ownership of the second digital resource can be traced on the blockchain.

[0106] It can be understood that in the specific implementation manners of the present application, for the user data involved, when the present application and the following embodiments are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards in the relevant regions.

[0107] When the blockchain node 10a obtains a transaction request initiated by the recipient for a digital resource item on the issuer's trading platform, the blockchain node 10a can determine the resource value to be transferred of the second digital resource required by the recipient based on the reported resource value reported by the issuer for the digital resource item on the trading platform.

[0108] The blockchain node 10a can determine the target transfer resource value of the second digital resource required by the recipient based on the issuance quota of the first digital resource and the resource value to be transferred. For example, if the reported resource value reported for the digital resource item is 100.00, the recipient a chooses to use the first digital resource a, and the issuance quota of the first digital resource a is 1, the blockchain node 10a can determine the resource value to be transferred as 100.00, and determine the difference between the issuance quota of the first digital resource a and the resource value to be transferred as the target transfer resource value, and the target transfer resource value is 99.00.

[0109] The blockchain node 10a can transfer the first digital resource and the second digital resource with the target transfer resource value to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient.

[0110] It can be understood that by using the first digital resource as a trading medium for transferring digital resource items and the second digital resource, and leveraging blockchain technology, the first digital resource that is immutable, non-replicable, and traceable endows the user (the recipient) with full control and sole ownership of the first digital resource they possess. It realizes the automation, decentralization, and verifiability of transferring digital resource items and the second digital resource, ensuring the fairness, transparency, and security of transactions.

[0111] The trading medium can refer to the numerical assets that can reduce the amount of digital resource items to be transferred, giving certain discounts or concessions to the users holding them. For example, it can be coupons, vouchers, etc.

[0112] Optionally, the issuer and the trading platform can belong to different institutions or units. For example, they can be the issuing server and the trading server respectively, or they can be integrated into one server, namely the platform server 100. This application embodiment does not limit this here. When the issuer and the trading platform belong to different institutions or units, the issuer can transfer the first digital resource to the recipient, and the recipient can use it on the trading platform. The trading platform can be multiple different application platforms, that is, the first digital resource can be used across platforms, reducing the issuance cost of the first digital resource in multiple trading platforms and improving the trading efficiency of the first digital resource as a trading medium.

[0113] In the embodiment of this application, by the issuer issuing the first digital resource and transferring the first digital resource to the recipient, when the recipient initiates a transaction for digital resource items on the trading platform of the issuer, the first digital resource can be used as a trading medium to reduce the amount of the second digital resource to be transferred for trading digital resource items. The decentralized issuance and management of the trading medium can be achieved through the blockchain network, improving the efficiency and accuracy of trading medium management, reducing the issuance cost of the trading medium, endowing the recipient with full control and sole ownership of the first digital resource they possess, enabling the digital resource to be used as a trading medium, and improving the credibility and security of the trading medium.

[0114] Please refer to Figure 2a , Figure 2a which is a schematic diagram of a data processing scenario based on blockchain provided by the embodiment of this application. Figure 1 .

[0115] As Figure 2a shown, taking the issuer's intention to issue 100 copies of the first digital resource a and 100 copies of the first digital resource b as an example.

[0116] The blockchain node 10a can obtain the issuance request sent by the issuer through the platform server 100. The issuance request can include the issuance information of the first digital resource a and the first digital resource b.

[0117] Among them, the issuer can be a unit or institution that needs to issue the first digital resource. The first digital resource can be a type of digital collectible, that is, a trustworthy digital rights and interests certificate with unique characteristics in the blockchain network, and it is a data object that can record and process multi-dimensional and complex attributes on the blockchain. It is non-fungible and irreplaceable. When a user has the sole ownership of the first digital resource, it can prove that the digital resource meta-item associated with the identifier of the first digital resource belongs to the user.

[0118] The issuance information in the issuance request can be as shown in Table 2:

[0119] Table 2

[0120] Release Information First Digital Resource a First Digital Resource b Release Limit 1 2 Release Quantity 100 100

[0121] Among them, the issuer can issue 100 copies of the first digital resource a with an issuance quota of 1 and 100 copies of the first digital resource b with an issuance quota of 2 through the issuance information. The issuance quotas of the first digital resource a and the first digital resource b are different.

[0122] The blockchain node 10a can call the resource issuance contract based on the issuance information to issue the first digital resource a and the first digital resource b for the issuer.

[0123] Among them, the resource issuance contract can be a type of smart contract on the blockchain, and it can be an automated computer program running on the blockchain. It contains code functions for performing predefined operations under the contract terms, and it can also interact with other contracts, store data, and transfer business resources, etc. The trusted proxy contract is stored on the blockchain in the form of code and can be automatically executed by the blockchain nodes on the blockchain.

[0124] The blockchain node 10a can transfer the 100 copies of the first digital resource a and the 100 copies of the first digital resource b issued to the first account address corresponding to the issuer on the resource client.

[0125] The issuer has the sole ownership right to 100 copies of the first digital resource a and 100 copies of the first digital resource b.

[0126] It can be understood that the issuance, circulation, storage, and trading of the first digital resource can be carried out in the blockchain network, making the circulation process of the first digital resource open and transparent, and at the same time ensuring the security of data transmission and access.

[0127] Please also refer to Figure 2b , Figure 2b which is the second schematic diagram of a data processing scenario based on the blockchain provided by the embodiments of this application.

[0128] Such as Figure 2bAs shown, when blockchain node 10a receives a transfer request initiated by the issuer for the first digital resource a and the first digital resource b, blockchain node 10a can, based on the first account address of the issuer (the address corresponding to the issuer in the resource client) in the transfer request, the address a corresponding to the recipient a (corresponding terminal device 200a) in the resource client, and the address b corresponding to the recipient b (corresponding terminal device 200b) in the resource client.

[0129] Blockchain node 10a can transfer 1 copy of the first digital resource a to the address a of the recipient a, and transfer 1 copy of the first digital resource b to the address b of the recipient b.

[0130] Among them, the recipient a and the recipient b can be users of the issuer's trading platform. After the first digital resource a is transferred to the corresponding address a of the recipient a, the recipient a has the exclusive ownership right to this copy of the first digital resource a. After the first digital resource b is transferred to the corresponding address b of the recipient b, the recipient b has the exclusive ownership right to this copy of the first digital resource b.

[0131] It can be understood that the first digital resource a and the first digital resource b can be bound to the address of the holding user in the resource client through metadata. For example, the above-mentioned 1 copy of the first digital resource a is bound to the address a, and the above-mentioned 1 copy of the first digital resource b is bound to the address b.

[0132] Please also refer to Figure 2c , Figure 2c which is a schematic diagram of a data processing scenario based on blockchain provided by an embodiment of the present application. Figure 3 .

[0133] As Figure 2c shown, digital resource items can be traded in the trading platform, and the platform server 100 can be the back-end server of the trading platform. Digital resource items can be generated and issued based on blockchain technology, and have passed content compliance reviews, and are digital assets with unique identifiers that can only be owned by blockchain accounts that have passed real-name authentication, or digital rights representing specific items. The digital resource items in the trading platform can report reported resource values, and the reported resource values can represent the second digital resources required for trading, which are preset in the trading platform for the digital resource items.

[0134] The second digital resource can be a type of digital asset that can be replaced, has unity, can be infinitely split, can be directly exchanged with each other, and the ownership of the second digital resource can be traced on the blockchain.

[0135] It is understandable that in the specific embodiments of the present application, for the user data involved, when the above and below embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of the relevant regions.

[0136] For ease of understanding, take the example where the recipient a initiates a transaction request through the terminal device 200a.

[0137] When the blockchain node 10a obtains the transaction request initiated by the recipient for the digital resource item in the issuer's trading platform, the blockchain node 10a can determine the to-be-transferred resource value of the second digital resource that the recipient needs to transfer based on the reported resource value reported by the issuer for the digital resource item in the trading platform.

[0138] The blockchain node 10a can determine the target transfer resource value of the second digital resource that the recipient needs to transfer based on the issuance quota of the first digital resource and the to-be-transferred resource value. For example, the reported resource value reported for the digital resource item is 100.00, the recipient a selects to use the first digital resource a, and the issuance quota of the first digital resource a is 1. The blockchain node 10a can determine the to-be-transferred resource value as 100.00, and determine the difference between the issuance quota of the first digital resource a and the to-be-transferred resource value as the target transfer resource value, and the target transfer resource value is 99.00.

[0139] The blockchain node 10a transfers the first digital resource a and the second digital resource with a target transfer resource value of 99.00 to the first account address of the issuer, and transfers the digital resource item to the corresponding address a of the recipient a.

[0140] It is understandable that by using the first digital resource as the trading medium for transferring the digital resource item and the second digital resource, and leveraging blockchain technology, through the first digital resource that is immutable, non-replicable, and traceable, the user (recipient) is given full control and sole ownership of the first digital resource they possess. It realizes the automation, decentralization, and verifiability of transferring the digital resource item and the second digital resource, ensuring the fairness, transparency, and security of the transaction.

[0141] The trading medium can refer to something that can reduce the numerical assets required to be transferred for the digital resource item, giving certain discounts or concessions to the holding users. For example, it can be coupons, vouchers, etc.

[0142] Optionally, the issuer and the trading platform may belong to different institutions or entities. For example, they may be an issuing server and a trading server respectively, or may be integrated into one server, i.e., the platform server 100. The embodiments of the present application do not limit this here. When the issuer and the trading platform belong to different institutions or entities, the issuer may transfer the first digital resource to the recipient, and the recipient may use it on the trading platform. The trading platform may be multiple different application platforms, that is, the first digital resource can be used across platforms, reducing the issuance cost of the first digital resource in multiple trading platforms and improving the trading efficiency of the first digital resource as a trading medium.

[0143] In the embodiments of the present application, by issuing the first digital resource by the issuer and transferring the first digital resource to the recipient, when the recipient initiates a transaction for a digital resource item on the issuer's trading platform, the first digital resource can be used as a trading medium, reducing the value of the second digital resource required to be transferred for trading the digital resource item. The decentralized issuance and management of the trading medium can be achieved through the blockchain network, improving the efficiency and accuracy of trading medium management, reducing the issuance cost of the trading medium, endowing the recipient with full control and sole ownership of the first digital resource they own, and enabling the digital resource to be used as a trading medium, improving the credibility and security of the trading medium.

[0144] On the other hand, the first digital resource can be transferred between recipients, or can be exchanged for the second digital resource, improving the utilization rate of the first digital resource. A business threshold can also be set. When the value of the resource to be transferred of the second digital resource required to be transferred by the recipient is greater than or equal to the business threshold, the recipient has the right to use the first digital resource, expanding new application scenarios for the first digital resource as a trading medium. The first digital resource also supports being used as a trading medium for multiple digital assets, improving the flexibility and scope of use of the trading medium.

[0145] Please refer to Figure 3 , Figure 3 which is a schematic flowchart of a blockchain-based data processing method provided by the embodiments of the present application Figure 1 , and this blockchain-based data processing method can be executed by a blockchain node. The blockchain node can be any blockchain node in the blockchain network as shown in Figure 1 . For example, it is the blockchain node 10a. The following will take the execution of this data processing method by the blockchain node as an example for illustration. Among them, this blockchain-based data processing method can at least include the following steps S101 - step S104:

[0146] Step S101, obtain the issuance request of the issuer, and issue the first digital resource with the issuance amount in the issuance request by the issuer; the issuer has the sole ownership right to the first digital resource;

[0147] Specifically, the blockchain node can obtain the issuance request of the issuer. The issuance request may include the issuance information of the first digital resource.

[0148] Among them, the issuer can be a unit or institution that needs to issue the first digital resource, and the issuance information may include the issuance quota of the first digital resource.

[0149] The first digital resource can be a type of digital collectible, that is, a trustworthy digital rights and interests certificate with uniqueness characteristics in the blockchain network, and it is a data object that can record and process multi-dimensional and complex attributes on the blockchain. It is non-fungible and irreplaceable. When the user has the sole ownership right of the first digital resource, it can prove that the digital resource meta-item associated with the identifier of the first digital resource belongs to the user.

[0150] The blockchain node can issue the first digital resource to the issuer based on the issuance information, and the blockchain node can transfer the issued first digital resource to the first account address corresponding to the issuer on the resource client. The issuer has the sole ownership right to the first digital resource.

[0151] It can be understood that the issuance, circulation, storage, and trading of the first digital resource can be carried out in the blockchain network, making the circulation process of the first digital resource open and transparent, while ensuring the security of data transmission and access.

[0152] Step S102, when receiving the transfer request of the issuer for the first digital resource, transfer the first digital resource to the second account address based on the first account address of the issuer and the second account address of the recipient in the transfer request; after the first digital resource is transferred to the second account address, the recipient has the sole ownership right to the first digital resource;

[0153] Specifically, when the blockchain node receives the transfer request of the issuer for the first digital resource, the blockchain node can transfer the first digital resource to the second account address of the recipient based on the first account address of the issuer (the address corresponding to the issuer on the resource client) and the second account address of the recipient (the address corresponding to the recipient on the resource client) in the transfer request.

[0154] Among them, the recipient can be a user on the issuer's trading platform. After the first digital resource is transferred to the second account address corresponding to the recipient, the recipient has the sole ownership right to the first digital resource.

[0155] Digital resource items can be traded on the trading platform. The digital resource items can be generated and issued based on blockchain technology, have passed the content compliance review, and are unique-identified digital assets that can only be owned by blockchain accounts that have passed real-name authentication, or digital rights representing specific items. The digital resource items on the trading platform can report a reported resource value, which can represent the second digital resource required for trading, pre-set in the trading platform, for the digital resource items.

[0156] The second digital resource can be a digital asset that can be replaced, has unity, and can be infinitely split, can be directly exchanged with each other, and the ownership of the second digital resource can be traced on the blockchain.

[0157] It can be understood that the first digital resource can be bound to the account address of the recipient in the resource client through the tokenID in the metadata. For example, after transferring the first digital resource a to the second account address of the recipient a, the first digital resource a can be bound to the second account address of the recipient a in the resource client through the tokenID in the metadata. After the binding is completed, the recipient a has the exclusive ownership right to the first digital resource a. It can also be determined by other methods, and the embodiments of the present application do not limit this here.

[0158] The blockchain node can store the issuance information of the first digital resource as a trading medium through a multi-layer data structure on the blockchain, and the multi-layer data structure can have a format for data storage and reading and writing.

[0159] The blockchain node can assign a classid to each first digital resource. The classid can be determined based on the tokenID of the first digital resource and can be the type of the first digital resource, such as a voucher, coupon, discount coupon, etc. The type of the first digital resource is stored through the class metadata array mapped by the classid.

[0160] The multi-layer data structure can further assign multiple nonceids under each classid. The nonceid can be a resource type identifier, and the issuance information, including the issuance quantity, issuance amount, resource permissions, exchange value, etc., is stored through the nonce metadata array mapped by the nonceid.

[0161] Among them, all classes (all class IDs) share a class metadata array, and all nonces (all nonce IDs) under each class ID share a nonce metadata array. Both the class metadata array and the nonce metadata array can include information such as title, type, description, etc.

[0162] It can be understood that in the embodiments of the present application, the class ID and the nonce ID represent the type of the first digital resource and the specific distribution information, and the metadata of the first digital resource is stored on the chain through two types of nodes or depths. Therefore, different distribution information can be defined for different first digital resources, reducing the distribution threshold of the first digital resource.

[0163] On the other hand, both the class metadata array and the nonce metadata array can be stored and accessed on the chain, designing a new format for the blockchain network that can be uniformly read by both the on-chain smart contract and the off-chain front-end. Users can conveniently view the information of the first digital resource, improving the transparency of the first digital resource.

[0164] Step S103, when a transaction request initiated by the recipient for a digital resource item in the issuer's trading platform is obtained, based on the reported resource value reported by the issuer for the digital resource item in the trading platform, determine the resource value to be transferred of the second digital resource required by the recipient;

[0165] Specifically, when the blockchain node obtains a transaction request initiated by the recipient for a digital resource item in the issuer's trading platform, the blockchain node can determine the resource value to be transferred of the second digital resource required by the recipient based on the reported resource value reported by the issuer for the digital resource item in the trading platform.

[0166] Optionally, if the transaction address for the digital resource item in the transaction request is the second account address of the issuer, the blockchain node can determine that the transaction request is initiated by the recipient in the issuer's trading platform.

[0167] The reported resource value can be the second digital resource required for the transaction, which is pre-set for the digital resource item in the trading platform. The reported resource value can be equal to the resource value to be transferred. The issuer can also adjust the resource value to be transferred through business activities, the active level of users trading digital resource items in the trading platform, etc. The embodiments of the present application do not limit this here.

[0168] Step S104: Based on the issuance quota of the first digital resource and the value of the resource to be transferred, determine the target transfer resource value of the second digital resource that the recipient needs to transfer. Transfer the first digital resource and the second digital resource with the target transfer resource value to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient.

[0169] Specifically, the blockchain node can determine the target transfer resource value of the second digital resource that the recipient needs to transfer based on the issuance quota of the first digital resource and the value of the resource to be transferred. For example, the difference between the issuance quota of the first digital resource and the value of the resource to be transferred is determined as the target transfer resource value.

[0170] The blockchain node can transfer the first digital resource and the second digital resource with the target transfer resource value to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient.

[0171] It can be understood that by using the first digital resource as the trading medium for transferring the digital resource item and the second digital resource, and leveraging blockchain technology, the first digital resource, which is immutable, non-replicable, and traceable, endows the user (recipient) with full control and sole ownership of the first digital resource they possess. It realizes the automation, decentralization, and verifiability of transferring the digital resource item and the second digital resource, ensuring the fairness, transparency, and security of the transaction.

[0172] The trading medium can refer to something that can reduce the numerical assets required for transferring the digital resource item, giving certain discounts or concessions to the holding users. For example, it can be coupons, vouchers, etc.

[0173] Optionally, the issuer and the trading platform can belong to different institutions or units. For example, they can be the issuance server and the trading server respectively, or they can be integrated into one server, i.e., the platform server. This application embodiment does not limit this here. When the issuer and the trading platform belong to different institutions or units, the issuer can transfer the first digital resource to the recipient, and the recipient can use it on the trading platform. The trading platform can be multiple different application platforms, that is, the first digital resource can be used across platforms, reducing the issuance cost of the first digital resource in multiple trading platforms and improving the trading efficiency of the first digital resource as a trading medium.

[0174] In an embodiment of the present application, by obtaining an issuance request from an issuer, the issuer issues M first digital resources with the issuance amount in the issuance request; the issuer has the sole attribution right to the first digital resources; when a transfer request for the first digital resources initiated by the issuer is obtained, based on the first account address of the issuer and the second account address of the recipient in the transfer request, the first digital resources are transferred to the second account address; after the first digital resources are transferred to the second account address, the recipient has the sole attribution right to the first digital resources; when a transaction request for a digital resource item initiated by the recipient in the issuer's trading platform is obtained, based on the reported resource value of the digital resource item reported by the issuer in the trading platform, the pending transfer resource value of the second digital resources that the recipient needs to transfer is determined; based on the issuance amount of the first digital resources and the pending transfer resource value, the target transfer resource value of the second digital resources that the recipient needs to transfer is determined, the first digital resources and the second digital resources with the target transfer resource value are transferred to the first account address of the issuer, and the digital resource item is transferred to the second account address of the recipient. It can be seen that in an embodiment of the present application, by issuing the first digital resources by the issuer and transferring the first digital resources to the recipient, when the recipient initiates a transaction for a digital resource item in the issuer's trading platform, the first digital resources can be used as a trading medium, reducing the value of the second digital resources required to transfer the digital resource item. The decentralized issuance and management of the trading medium can be achieved through the blockchain network, improving the efficiency and accuracy of trading medium management, reducing the issuance cost of the trading medium, endowing the recipient with full control and sole attribution right to the first digital resources it owns, and using the digital resources as a trading medium, improving the credibility and security of the trading medium.

[0175] Please refer to Figure 4 , Figure 4 FIG. 2 is a second flowchart of a data processing method based on a blockchain provided by an embodiment of the present application. The data processing method based on the blockchain can be executed by a blockchain node, and the blockchain node can be any blockchain node in a blockchain network as shown in Figure 1 , for example, blockchain node 10a. The following will be described by taking the execution of this data processing method by a blockchain node as an example. Among them, the data processing method based on the blockchain can at least include the following steps S201-S206:

[0176] Step S201, obtain an issuance request from an issuer; the issuance request includes an issuance contract identifier and issuance information; the issuance information includes an issuance quantity M, an issuance amount, and a resource right; call a resource issuance contract based on the issuance contract identifier in the issuance request, and issue M first digital resources with the issuance amount and the resource right to the issuer; the resource right is used to indicate the transfer right of the first digital resources among recipients.

[0177] Specifically, the blockchain node can obtain the issuance request of the issuer. The issuance request may include an issuance contract identifier and the issuance information of the first digital resource.

[0178] Among them, the issuance contract identifier can be used to call the resource issuance contract in the blockchain network. The issuer can be a unit or institution that needs to issue the first digital resource. The first digital resource can be a type of digital collectible, that is, a trustworthy digital rights and interests certificate with unique characteristics in the blockchain network, and it is a data object that can record and process multi-dimensional and complex attributes on the blockchain. It is non-interchangeable and non-substitutable. When a user has the sole ownership right of the first digital resource, it can prove that the digital resource meta-item associated with the identifier of the first digital resource belongs to the user.

[0179] Among them, the resource issuance contract can be a smart contract on the blockchain, which can be an automated computer program running on the blockchain. It contains code functions for performing predefined operations under the contract terms, and can also interact with other contracts, store data, transfer business resources, etc. The trusted proxy contract is stored on the blockchain in the form of code and can be automatically executed by blockchain nodes on the blockchain.

[0180] The issuance information may include the issuance quantity M of the first digital resource, the issuance amount, and the resource permission. The resource permission can be used to indicate the transfer permission of the first digital resource among the recipients, that is, the first digital resource with the transfer permission can be transferred among different recipients.

[0181] The blockchain node can call the resource issuance contract based on the issuance contract identifier in the issuance request, and issue M first digital resources with the issuance amount and resource permission to the issuer. The blockchain node can transfer the issued first digital resources to the first account address corresponding to the issuer on the resource client. The issuer has the sole ownership right to the first digital resource. Issuing the first digital resource with resource permission means that the first digital resource can be transferred among different recipients.

[0182] It can be understood that the issuance, circulation, storage, and trading of the first digital resource can be carried out in the blockchain network, making the circulation process of the first digital resource public and transparent, while ensuring the security of data transmission and access.

[0183] Step S202, when receiving the transfer request of the issuer for the first digital resource, transfer the first digital resource to the second account address based on the first account address of the issuer and the second account address of the recipient in the transfer request; after the first digital resource is transferred to the second account address, the recipient has the sole ownership right to the first digital resource;

[0184] Specifically, when a blockchain node receives a transfer request for the first digital resource initiated by the issuer, the blockchain node can transfer the first digital resource to the second account address of the recipient based on the first account address of the issuer (the address corresponding to the issuer on the resource client) and the second account address of the recipient (the address corresponding to the recipient on the resource client) in the transfer request.

[0185] Among them, the recipient can be a user of the issuer's trading platform. After the first digital resource is transferred to the corresponding second account address of the recipient, the recipient has the sole ownership right to the first digital resource.

[0186] Digital resource items can be traded in the trading platform. Digital resource items can be generated and issued based on blockchain technology, have passed content compliance reviews, and are unique-identified digital assets that can only be owned by blockchain accounts that have passed real-name authentication, or digital rights representing specific items. The digital resource items in the trading platform can report a reported resource value, and the reported resource value can represent the second digital resource required for trading, which is pre-set in the trading platform for the digital resource items.

[0187] The second digital resource can be a type of digital asset that can be replaced, has unity, can be infinitely split, can be directly exchanged with each other, and the ownership of the second digital resource can be traced on the blockchain.

[0188] The process of the blockchain node transferring the first digital resource can be as follows: Based on the proxy contract identifier in the transfer request, call the trusted proxy contract, and use the authorization function in the trusted proxy contract to verify the signature information in the transfer request; the signature information is obtained by signing the first digital resource with the private key of the issuer; when the signature verification is successful, authorize the first digital resource to the trusted proxy contract, call the transfer function in the trusted proxy contract, and based on the first account address of the issuer and the second account address of the recipient in the transfer request, transfer the authorized first digital resource to the second account address.

[0189] Specifically, the transfer request can include a proxy contract identifier, and the blockchain node can call the trusted proxy contract through the proxy contract identifier, and use the authorization function in the trusted proxy contract to verify the signature information in the transfer request.

[0190] Among them, the signature information is obtained by the issuer signing the first digital resource with the private key of the issuer. The trusted proxy contract can be a type of smart contract on the blockchain, which can be an automated computer program running on the blockchain, and can contain execution functions for performing predefined operations under the contract terms, such as including authorization functions, transfer functions, etc.

[0191] The authorization function can be a method in the trusted proxy contract that supports signature parameters, used to verify and execute the conditions stipulated in the contract for trusted transactions. The transfer function can be used to transfer the exclusive ownership right of digital resources based on the first account address and the second account address in the transfer request.

[0192] The process of signature verification can be as follows: Obtain the public key of the first account address through the authorization function in the trusted proxy contract, and based on the public key of the first account address, perform a decryption operation on the signature information to obtain the hash value to be verified; Generate the target hash value of the first digital resource; If the hash value to be verified is the same as the target hash value, it is determined that the signature verification is successful; If the hash value to be verified is different from the target hash value, it is determined that the signature verification fails, and an error prompt message is returned to the issuer.

[0193] Specifically, the blockchain node obtains the public key of the first account address through the authorization function in the trusted proxy contract, and based on the public key of the first account address, performs a decryption operation on the signature information to obtain the hash value to be verified. The blockchain node can calculate the hash digest of the first digital resource to obtain the target hash value of the first digital resource.

[0194] The blockchain node can compare the hash value to be verified with the target hash value.

[0195] If the hash value to be verified is the same as the target hash value, it is determined that the signature verification is successful; If the hash value to be verified is different from the target hash value, it is determined that the signature verification fails, and the blockchain node can return an error prompt message to the issuer.

[0196] If the signature verification is successful, the blockchain node can authorize the first digital resource for the trusted proxy contract, call the transfer function in the trusted proxy contract, and the blockchain node can transfer the authorized first digital resource to the second account address based on the first account address of the issuer and the second account address of the recipient in the transfer request.

[0197] It can be understood that the first digital resource can be bound to the account address of the recipient in the resource client through the tokenID in the metadata. For example, after transferring the first digital resource a to the second account address of the recipient a, the first digital resource a can be bound to the second account address of the recipient a in the resource client through the tokenID in the metadata. After the binding is completed, the recipient a has the exclusive ownership right to the first digital resource a. It can also be determined by other methods, and the embodiments of the present application do not limit this here.

[0198] Step S203: If the value of the resource to be transferred of the second digital resource required by the recipient is greater than or equal to the service threshold, then the difference between the issuance quota of the first digital resource and the value of the resource to be transferred is determined as the target transfer resource value of the second digital resource required by the recipient; the service threshold is set by the issuer for the first digital resource.

[0199] Specifically, the issuer can set the service threshold and the reported resource value for using the first digital resource for digital resource items in the trading platform. Only when the value of the resource to be transferred determined by the recipient is greater than or equal to the service threshold does the recipient have the right to use the first digital resource.

[0200] When the blockchain node obtains a transaction request initiated by the recipient for a digital resource item in the issuer's trading platform, the blockchain node can determine the value of the resource to be transferred of the second digital resource required by the recipient based on the reported resource value reported by the issuer for the digital resource item in the trading platform.

[0201] Among them, the reported resource value can be the second digital resource required for the transaction, which is pre-set for the digital resource item in the trading platform. The reported resource value can be equal to the value of the resource to be transferred. The issuer can also adjust the value of the resource to be transferred through business activities, the active level of users trading digital resource items in the trading platform, etc. This application embodiment does not limit this here.

[0202] If the value of the resource to be transferred of the second digital resource required by the recipient is greater than or equal to the service threshold, then the blockchain node can determine the difference between the issuance quota of the first digital resource and the value of the resource to be transferred as the target transfer resource value of the second digital resource required by the recipient.

[0203] Optionally, if the value of the resource to be transferred of the second digital resource required by the recipient is greater than or equal to the service threshold, and the recipient holds multiple first digital resources. For example, the recipient holds 1 copy of the first digital resource a and 1 copy of the first digital resource b. The issuance quota of the first digital resource a is 1, and the issuance quota of the second digital resource b is 2. The recipient can select the digital resource to be used between the first digital resource a and the second digital resource b. If the reported resource value reported by the issuer for the digital resource item in the trading platform is 100, when the recipient selects to use the first digital resource a, the blockchain node can determine that the target transfer resource value is 99, and when the recipient selects to use the first digital resource b, the blockchain node can determine that the target transfer resource value is 98.

[0204] The blockchain node can determine the target transfer resource value of the second digital resource that the recipient needs to transfer based on the issuance quota of the first digital resource and the value of the resource to be transferred. For example, the difference between the issuance quota of the first digital resource and the value of the resource to be transferred is determined as the target transfer resource value.

[0205] The blockchain node can transfer the first digital resource and the second digital resource with the target transfer resource value to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient.

[0206] Optionally, if the transaction address for the digital resource item in the transaction request is the second account address of the issuer, the blockchain node can determine that the transaction request is a request initiated by the recipient on the issuer's trading platform.

[0207] It can be understood that by using the first digital resource as the trading medium for transferring the digital resource item and the second digital resource, and leveraging blockchain technology, through the first digital resource that is immutable, non-replicable, and traceable, the user (recipient) is given full control and sole ownership of the first digital resource they possess. It realizes the automation, decentralization, and verifiability of transferring the digital resource item and the second digital resource, ensuring the fairness, transparency, and security of the transaction.

[0208] The trading medium can refer to something that can reduce the numerical assets required for the transfer of the digital resource item, giving certain discounts or concessions to the users holding it. For example, it can be coupons, vouchers, etc.

[0209] Optionally, the issuer and the trading platform can belong to different institutions or units. For example, they can be a distribution server and a trading server respectively, or they can be integrated into one server, i.e., a platform server. This application embodiment does not limit this here. When the issuer and the trading platform belong to different institutions or units, the issuer can transfer the first digital resource to the recipient, and the recipient can use it on the trading platform. The trading platform can be multiple different application platforms, that is, the first digital resource can be used across platforms, reducing the distribution cost of the first digital resource in multiple trading platforms and improving the trading efficiency of the first digital resource as a trading medium.

[0210] Step S204, if the value of the resource to be transferred of the second digital resource that the recipient needs to transfer is less than the service threshold, it is determined that the first digital resource does not have the usage permission for the transaction request, transfer the second digital resource with the value of the resource to be transferred to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient.

[0211] Specifically, if the value of the resource to be transferred of the second digital resource required by the recipient is less than the service threshold, the blockchain network may determine that the first digital resource does not have the usage permission for the transaction request, and the recipient cannot use the first digital resource when trading the above digital resource item.

[0212] The recipient may choose not to use the first digital resource and continue the transaction. The blockchain node may transfer the second digital resource with the value of the resource to be transferred to the first account address of the issuer and transfer the digital resource item to the second account address of the recipient.

[0213] Step S205: When the first digital resource held by the recipient has the transfer permission and the blockchain node obtains a transfer request initiated by the recipient for the first digital resource, transfer the first digital resource to the third account address based on the second account address of the recipient and the third account address of the transferee in the transfer request; after the first digital resource is transferred to the third account address, the transferee has the sole ownership permission for the first digital resource.

[0214] Specifically, the first digital resource issued by the discoverer has the transfer permission, which means the first digital resource can be transferred between different recipients. For example, recipient a can transfer the first digital resource held by it to transferee c.

[0215] When the first digital resource held by the recipient has the transfer permission and the blockchain node obtains a transfer request initiated by the recipient for the first digital resource, the blockchain node transfers the first digital resource to the third account address based on the second account address of the recipient and the third account address of the transferee in the transfer request.

[0216] For example, if recipient a holds the first digital resource with the transfer permission, recipient a can send a transfer request for the first digital resource. The blockchain node can determine the address of recipient a (the second account address) and the address of transferee c (the third account address) in the transfer request, and the blockchain node can transfer the first digital resource to the third account address. After the first digital resource is transferred to the third account address, transferee c has the sole ownership permission for the first digital resource.

[0217] During the process of transferring the first digital resource, the signature information of the recipient will also be verified. The transfer process and the signature verification process can refer to the specific description in step S202 above and will not be elaborated here.

[0218] It can be understood that the first digital resource can be transferred among recipients, improving the utilization rate of the first digital resource. A business threshold can also be set. When the value of the resource to be transferred of the second digital resource required by the recipient is greater than or equal to the business threshold, the recipient will have the right to use the first digital resource, expanding new application scenarios for the first digital resource as a trading medium. The first digital resource also supports being used as a trading medium for various digital assets, improving the flexibility and scope of use of the trading medium.

[0219] Step S206: When a redemption request for the first digital resource initiated by the recipient is obtained, the second digital resource with a redemption value is issued to the second account address in the redemption request, and the first digital resource is cancelled; the redemption value is determined based on the first digital resource.

[0220] Specifically, the issuer can set the redemption value of the first digital resource in the issuance information. After the first digital resource with the set redemption value is issued, a redemption request can be sent to exchange the first digital resource for the second digital resource with the redemption value.

[0221] When the blockchain node obtains a redemption request for the first digital resource initiated by the recipient, the blockchain node can issue the second digital resource with the redemption value to the second account address in the redemption request. After issuing the second digital resource with the redemption value, the blockchain node can cancel the first digital resource.

[0222] In an embodiment of the present application, by obtaining an issuance request from an issuer, the issuer issues a first digital resource with an issuance amount in the issuance request; the issuer has the sole attribution right to the first digital resource; when a transfer request for the first digital resource initiated by the issuer is obtained, based on the first account address of the issuer and the second account address of the recipient in the transfer request, the first digital resource is transferred to the second account address; after the first digital resource is transferred to the second account address, the recipient has the sole attribution right to the first digital resource; when a transaction request for a digital resource item initiated by the recipient in the issuer's trading platform is obtained, based on the reported resource value of the digital resource item reported by the issuer in the trading platform, the pending transfer resource value of the second digital resource to be transferred by the recipient is determined; based on the issuance amount of the first digital resource and the pending transfer resource value, the target transfer resource value of the second digital resource to be transferred by the recipient is determined, the first digital resource and the second digital resource with the target transfer resource value are transferred to the first account address of the issuer, and the digital resource item is transferred to the second account address of the recipient. Thus, in the embodiment of the present application, by issuing the first digital resource by the issuer and transferring the first digital resource to the recipient, when the recipient initiates a transaction for a digital resource item in the issuer's trading platform, the first digital resource can be used as a trading medium, reducing the value of the second digital resource required to transfer the digital resource item. The decentralized issuance and management of the trading medium can be achieved through the blockchain network, improving the efficiency and accuracy of trading medium management, reducing the issuance cost of the trading medium, endowing the recipient with full control and sole attribution right to the first digital resource it owns, using the digital resource as a trading medium, and improving the credibility and security of the trading medium.

[0223] On the other hand, the first digital resource can be transferred between recipients, or exchanged for the second digital resource, improving the utilization rate of the first digital resource. A service threshold can also be set. When the pending transfer resource value of the second digital resource to be transferred by the recipient is greater than or equal to the service threshold, the recipient has the right to use the first digital resource, expanding new application scenarios for the first digital resource as a trading medium. The first digital resource also supports being used as a trading medium for multiple digital assets, improving the flexibility and scope of use of the trading medium.

[0224] Please refer to Figure 5 , Figure 5 which is a schematic structural diagram of a data processing device based on blockchain provided by an embodiment of the present application. As Figure 5As shown in the figure, the data processing device 1 includes a resource issuance module 500, a resource transfer module 510, a resource trading module 520, a resource processing module 530, a request determination module 540, a threshold trading module 550, a resource transfer module 560, and a resource exchange module 570. Among them, the resource transfer module 510 includes a contract call unit 511 and a signature verification unit 512. Among them, the signature verification unit 512 includes a hash calculation subunit 512a and a hash judgment subunit 512b.

[0225] The resource issuance module 500 is used to obtain the issuance request of the issuer and issue the first digital resource with the issuance amount in the issuance request for the issuer; the issuer has the sole ownership right to the first digital resource;

[0226] For the specific functions of the resource issuance module 500, reference can be made to the specific description of step S101 in the corresponding embodiment above, which will not be elaborated here. Figure 3 For the specific functions of the resource issuance module 500, reference can be made to the specific description of step S101 in the corresponding embodiment above, which will not be elaborated here.

[0227] The resource transfer module 510 is used to, when receiving a transfer request for the first digital resource initiated by the issuer, transfer the first digital resource to the second account address based on the first account address of the issuer and the second account address of the recipient in the transfer request; after the first digital resource is transferred to the second account address, the recipient has the sole ownership right to the first digital resource;

[0228] For the specific functions of the resource transfer module 510, reference can be made to the specific description of step S102 in the corresponding embodiment above, which will not be elaborated here. Figure 3 For the specific functions of the resource transfer module 510, reference can be made to the specific description of step S102 in the corresponding embodiment above, which will not be elaborated here.

[0229] The resource trading module 520 is used to, when receiving a trading request for a digital resource item initiated by the recipient on the issuer's trading platform, determine the pending transfer resource value of the second digital resource that the recipient needs to transfer based on the reported resource value of the digital resource item reported by the issuer on the trading platform;

[0230] For the specific functions of the resource trading module 520, reference can be made to the specific description of step S103 in the corresponding embodiment above, which will not be elaborated here. Figure 3 For the specific functions of the resource trading module 520, reference can be made to the specific description of step S103 in the corresponding embodiment above, which will not be elaborated here.

[0231] The resource processing module 530 is used to determine the target transfer resource value of the second digital resource that the recipient needs to transfer based on the issuance amount of the first digital resource and the pending transfer resource value, transfer the first digital resource and the second digital resource with the target transfer resource value to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient. For the specific functions of the resource processing module 530, reference can be made to the above Figure 3The specific description of step S104 of the corresponding embodiment will not be elaborated here.

[0232] Among them, the resource issuance module 500 is specifically configured to obtain an issuance request from an issuer; the issuance request includes an issuance contract identifier and issuance information; the issuance information includes an issuance quantity M, an issuance amount, and resource permissions; based on the issuance contract identifier in the issuance request, it calls a resource issuance contract to issue M first digital resources with the issuance amount and resource permissions to the issuer; the resource permissions are used to indicate the transfer permissions of the first digital resources among the recipients.

[0233] For the specific functions of the resource issuance module 500, reference can be made to the above Figure 4 The specific description of step S201 of the corresponding embodiment will not be elaborated here.

[0234] Among them, the resource transfer module 510 includes:

[0235] A contract call unit 511, which is configured to, based on the proxy contract identifier in the transfer request, call a trusted proxy contract, and verify the signature information in the transfer request through an authorization function in the trusted proxy contract; the signature information is obtained by signing the first digital resource based on the private key of the issuer.

[0236] For the specific functions of the contract call unit 511, reference can be made to the above Figure 4 The specific description of step S202 of the corresponding embodiment will not be elaborated here.

[0237] A signature verification unit 512, which is configured to, when the signature verification is successful, authorize the first digital resource for the trusted proxy contract, call a transfer function in the trusted proxy contract, and transfer the authorized first digital resource to the second account address based on the first account address of the issuer and the second account address of the recipient in the transfer request.

[0238] For the specific functions of the signature verification unit 512, reference can be made to the above Figure 4 The specific description of step S202 of the corresponding embodiment will not be elaborated here.

[0239] Among them, the signature verification unit 512 includes:

[0240] A hash calculation subunit 512a, which is configured to obtain the public key of the first account address through an authorization function in the trusted proxy contract, and decrypt the signature information based on the public key of the first account address to obtain a hash value to be verified.

[0241] The hash calculation subunit 512a is further configured to generate a target hash value of the first digital resource.

[0242] The hash judgment subunit 512b is used to determine that the signature verification is successful if the hash value to be verified is the same as the target hash value;

[0243] The hash judgment subunit 512b is further used to determine that the signature verification fails and return an error prompt message to the issuer if the hash value to be verified is different from the target hash value.

[0244] For the specific functions of the hash calculation subunit 512a and the hash judgment subunit 512b, reference can be made to the specific description of step S202 in the corresponding embodiment above, which will not be elaborated here. Figure 4

[0245] Among them, it further includes:

[0246] The request determination module 540 is used to determine that the transaction request is a request initiated by the recipient on the issuer's trading platform if the trading address for the digital resource item in the transaction request is the second account address of the issuer.

[0247] For the specific function of the request determination module 540, reference can be made to the specific description of step S103 in the corresponding embodiment above, which will not be elaborated here. Figure 3

[0248] Among them, the resource trading module 520 is specifically used to, if the resource value to be transferred of the second digital resource required by the recipient is greater than or equal to the service threshold, determine the difference between the issuance quota of the first digital resource and the resource value to be transferred as the target transfer resource value of the second digital resource required by the recipient; the service threshold is set by the issuer for the first digital resource.

[0249] For the specific function of the resource trading module 520, reference can be made to the specific description of step S203 in the corresponding embodiment above, which will not be elaborated here. Figure 4

[0250] Among them, it further includes:

[0251] The threshold trading module 550 is used to, if the resource value to be transferred of the second digital resource required by the recipient is less than the service threshold, determine that the first digital resource does not have the usage right for the transaction request, transfer the second digital resource with the resource value to be transferred to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient.

[0252] Figure 4 For the specific function of the threshold trading module 550, reference can be made to the specific description of step S204 in the corresponding embodiment above, which will not be elaborated here.

[0253] Among them, it further includes:​​​​

[0254] The resource transfer module 560 is used to transfer the first digital resource to the third account address based on the second account address of the recipient and the third account address of the transferee in the transfer request when the first digital resource held by the recipient has the transfer permission and a transfer request for the first digital resource initiated by the recipient is obtained; after the first digital resource is transferred to the third account address, the transferee has the sole ownership right to the first digital resource.

[0255] For the specific functions of the resource transfer module 560, reference can be made to the specific description of step S205 in the corresponding embodiment above. Figure 4 Details are not described herein again.

[0256] Among them, it further includes:

[0257] The resource exchange module 570 is used to issue a second digital resource with an exchange value to the second account address in the exchange request and cancel the first digital resource when an exchange request for the first digital resource initiated by the recipient is obtained; the exchange value is determined based on the first digital resource.

[0258] For the specific functions of the resource exchange module 570, reference can be made to the specific description of step S206 in the corresponding embodiment above. Figure 4 Details are not described herein again.

[0259] Please refer to Figure 6 , Figure 6 which is a schematic structural diagram of a computer device provided by an embodiment of the present application. As Figure 6 shown, the computer device 1000 may include: a processor 1001, a network interface 1004, and a memory 1005. In addition, the computer device 1000 may further include: a user interface 1003 and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display) and a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. Optionally, the memory 1005 may further be at least one storage device located far from the aforementioned processor 1001. As Figure 6 shown, the memory 1005, as a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.

[0260] In a computer device 1000 as shown in Figure 6 , the network interface 1004 can provide a network communication network element; the user interface 1003 is mainly used to provide an input interface for users; and the processor 1001 can be used to call the device control application program stored in the memory 1005 to implement:

[0261] Obtain the issuance request of the issuer, and the issuer issues the first digital resource with the issuance amount in the issuance request; the issuer has the sole attribution right to the first digital resource;

[0262] When receiving a transfer request initiated by the issuer for the first digital resource, based on the first account address of the issuer and the second account address of the recipient in the transfer request, transfer the first digital resource to the second account address; after the first digital resource is transferred to the second account address, the recipient has the sole attribution right to the first digital resource;

[0263] When receiving a transaction request initiated by the recipient for the digital resource item in the issuer's trading platform, based on the reported resource value reported by the issuer for the digital resource item in the trading platform, determine the pending transfer resource value of the second digital resource that the recipient needs to transfer;

[0264] Based on the issuance amount of the first digital resource and the pending transfer resource value, determine the target transfer resource value of the second digital resource that the recipient needs to transfer, transfer the first digital resource and the second digital resource with the target transfer resource value to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient.

[0265] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the description of the data processing method in any one of the previous Figure 3 and Figure 4 corresponding embodiments, which will not be elaborated here. In addition, the description of the beneficial effects of adopting the same method will not be elaborated either.

[0266] In addition, it should be pointed out here that: the embodiments of the present application also provide a computer-readable storage medium, and a computer program is stored in the above computer-readable storage medium. When the above processor executes the above computer program, it can execute the description of the above data processing method in any one of the previous Figure 3 and Figure 4 corresponding embodiments, so it will not be elaborated here. In addition, the description of the beneficial effects of adopting the same method will not be elaborated either. For the technical details not disclosed in the embodiments of the computer-readable storage medium involved in the present application, please refer to the description of the method embodiments of the present application.

[0267] The above computer-readable storage medium may be the data processing device provided in any of the foregoing embodiments or the internal storage unit of the above computer device, such as the hard disk or memory of the 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 media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit and the external storage device of the computer 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 the data that has been displayed or is to be displayed.

[0268] In addition, it should be noted here that: The embodiments of the present application also provide a computer program product, which includes a computer program stored in a computer-readable storage medium. The processor of the 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 any one of the foregoing Figure 3 and Figure 4 corresponding embodiments.

[0269] 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 variations thereof are intended to cover non-exclusive inclusion. 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 may optionally further include steps or modules not listed, or may optionally further include other step units inherent to these processes, methods, devices, products or equipment.

[0270] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of network elements in the above description. Whether these network elements are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described network elements for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0271] The method and related devices provided by the embodiments of this application are described with reference to the method flowcharts and / or structural schematic diagrams provided by the embodiments of this application. Specifically, each process and / or block of the method flowchart and / or structural schematic diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable devices generate a device for implementing the functions specified in one process Figure 1 one process or multiple processes and / or structural schematic Figure 1 one block or multiple blocks. These computer program instructions can also be stored in a computer-readable memory that can guide the computer or other programmable devices to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured product including an instruction device, and the instruction device implements the functions specified in one process Figure 1 one process or multiple processes and / or structural schematic Figure 1 one block or multiple blocks. These computer program instructions can also be loaded onto the computer or other programmable devices, so that a series of operation steps are executed on the computer or other programmable devices to generate a computer-implemented process. Therefore, the instructions executed on the computer or other programmable devices provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or structural schematic one block or multiple blocks.

[0272] The steps in the method of the embodiments of this application can be adjusted, combined, and deleted according to actual needs.

[0273] The modules in the devices of the embodiments of this application can be combined, divided, and deleted according to actual needs.

[0274] The above-disclosed are only the preferred embodiments of this application. Of course, the scope of rights of this application cannot be limited thereby. Therefore, equivalent changes made according to the claims of this application still fall within the scope covered by this application.

Claims

1. A blockchain-based data processing method, characterized in that, Including: Obtain the issuance request of the issuer, and issue the first digital resource with the issuance amount in the issuance request to the issuer; The issuer has the sole ownership right to the first digital resource; When receiving the transfer request initiated by the issuer for the first digital resource, based on the first account address of the issuer and the second account address of the recipient in the transfer request, transfer the first digital resource to the second account address; After the first digital resource is transferred to the second account address, the recipient has the sole ownership right to the first digital resource; When receiving the transaction request initiated by the recipient for the digital resource item on the transaction platform of the issuer, based on the reported resource value reported by the issuer for the digital resource item on the transaction platform, determine the pending transfer resource value of the second digital resource that the recipient needs to transfer; Based on the issuance amount of the first digital resource and the pending transfer resource value, determine the target transfer resource value of the second digital resource that the recipient needs to transfer, transfer the first digital resource and the second digital resource with the target transfer resource value to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient.

2. The method according to claim 1, wherein The obtaining the issuance request of the issuer and issuing the first digital resource with the issuance amount in the issuance request to the issuer includes: Obtain the issuance request of the issuer; the issuance request includes an issuance contract identifier and issuance information; the issuance information includes an issuance quantity M, an issuance amount, and a resource right; Based on the issuance contract identifier in the issuance request, call the resource issuance contract, and issue M first digital resources with the issuance amount and the resource right to the issuer; the resource right is used to indicate the transfer right of the first digital resource among recipients.

3. The method according to claim 1, characterized in that, The transferring the first digital resource to the second account address based on the first account address of the issuer and the second account address of the recipient in the transfer request includes: Based on the proxy contract identifier in the transfer request, call the trusted proxy contract, and verify the signature information in the transfer request through the authorization function in the trusted proxy contract; the signature information is obtained by signing the first digital resource based on the private key of the issuer; When the signature verification is successful, authorize the first digital resource for the trusted proxy contract, call the transfer function in the trusted proxy contract, and based on the first account address of the issuer and the second account address of the recipient in the transfer request, transfer the authorized first digital resource to the second account address.

4. The method according to claim 3, wherein The verifying the signature information in the transfer request through the authorization function in the trusted proxy contract includes: Obtain the public key of the first account address through the authorization function in the trusted proxy contract, and based on the public key of the first account address, perform a decryption operation on the signature information to obtain the hash value to be verified; Generate the target hash value of the first digital resource; If the hash value to be verified is the same as the target hash value, it is determined that the signature verification is successful; If the hash value to be verified is different from the target hash value, it is determined that the signature verification fails, and an error prompt message is returned to the issuer.

5. The method according to claim 1, wherein It further includes: If the transaction address for the digital resource item in the transaction request is the second account address of the issuer, it is determined that the transaction request is a request initiated by the recipient on the issuer's trading platform.

6. The method according to claim 1, wherein The determination of the target transfer resource value of the second digital resource that the recipient needs to transfer based on the issuance quota of the first digital resource and the value of the resource to be transferred includes: If the value of the resource to be transferred of the second digital resource that the recipient needs to transfer is greater than or equal to the service threshold, the difference between the issuance quota of the first digital resource and the value of the resource to be transferred is determined as the target transfer resource value of the second digital resource that the recipient needs to transfer; the service threshold is set by the issuer for the first digital resource.

7. The method according to claim 6, characterized in that, It further includes: If the value of the resource to be transferred of the second digital resource that the recipient needs to transfer is less than the service threshold, it is determined that the first digital resource does not have the usage permission for the transaction request, the second digital resource with the value of the resource to be transferred is transferred to the first account address of the issuer, and the digital resource item is transferred to the second account address of the recipient.

8. The method according to claim 1, wherein It further includes: When the first digital resource held by the recipient has the transfer permission and a transfer request for the first digital resource initiated by the recipient is obtained, based on the second account address of the recipient and the third account address of the transferee in the transfer request, the first digital resource is transferred to the third account address; after the first digital resource is transferred to the third account address, the transferee has the sole ownership permission for the first digital resource.

9. The method according to claim 1, characterized in that, It further includes: When a redemption request for the first digital resource initiated by the recipient is obtained, a second digital resource with a redemption value is issued to the second account address in the redemption request, and the first digital resource is cancelled; the redemption value is determined based on the first digital resource.

10. A data processing device based on a blockchain, characterized in that It includes: A resource issuance module, configured to obtain an issuance request from the issuer and issue a first digital resource with the issuance quota in the issuance request to the issuer; The issuer has the sole ownership permission for the first digital resource; A resource transfer module, configured to, when a transfer request for the first digital resource initiated by the issuer is obtained, transfer the first digital resource to the second account address based on the first account address of the issuer and the second account address of the recipient in the transfer request; After the first digital resource is transferred to the second account address, the recipient has the sole ownership permission for the first digital resource; A resource trading module, configured to, when receiving a trading request initiated by the recipient for a digital resource item on the issuer's trading platform, determine the to-be-transferred resource value of the second digital resource that the recipient needs to transfer based on the reported resource value of the digital resource item reported by the issuer on the trading platform; A resource processing module, configured to determine the target transfer resource value of the second digital resource that the recipient needs to transfer based on the issuance quota of the first digital resource and the to-be-transferred resource value, transfer the first digital resource and the second digital resource with the target transfer resource value to the first account address of the issuer, and transfer the digital resource item to the second account address of the recipient.

11. A computer device, characterized in that, Comprising: A processor, a memory, and a network interface; The processor is connected to the memory and the network interface. Among them, the network interface is used to provide data communication functions, the memory is used to store computer programs, and the processor is used to call the computer programs so that the computer device executes the method according to any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, and the computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the method according to any one of claims 1-9.

13. A computer program product, characterized in that, The computer program product includes a computer program, the computer program is stored in a computer-readable storage medium, and 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-9.