CN114565461A - Method and device for processing digital resources by system based on block chain - Google Patents

Method and device for processing digital resources by system based on block chain Download PDF

Info

Publication number
CN114565461A
CN114565461A CN202210189131.3A CN202210189131A CN114565461A CN 114565461 A CN114565461 A CN 114565461A CN 202210189131 A CN202210189131 A CN 202210189131A CN 114565461 A CN114565461 A CN 114565461A
Authority
CN
China
Prior art keywords
application platform
account
channel
digital resource
transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210189131.3A
Other languages
Chinese (zh)
Inventor
王吉元
夏凝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ant Blockchain Technology Shanghai Co Ltd
Original Assignee
Ant Blockchain Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ant Blockchain Technology Shanghai Co Ltd filed Critical Ant Blockchain Technology Shanghai Co Ltd
Priority to CN202210189131.3A priority Critical patent/CN114565461A/en
Publication of CN114565461A publication Critical patent/CN114565461A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The present specification provides a method and apparatus for processing digital resources for a blockchain based system, the system including at least a first application platform, a service platform and blockchain nodes, the method being performed by the service platform, the method including: receiving, from the first application platform, a first transaction sent by a first account; the first account is an account in the blockchain; the first transaction is for a processing operation on a first digital resource in the blockchain; determining whether the first account is a registered account of the first application platform; sending the first transaction to the blockchain node if the first account is determined to be a registered account of the first application platform.

Description

Method and device for processing digital resources by system based on block chain
Technical Field
One or more embodiments of the present disclosure relate to the field of blockchain technologies, and in particular, to a method and an apparatus for processing digital resources in a system based on blockchain.
Background
The Blockchain (Blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The data blocks are combined into a chain data structure in a block chain in a time sequence in a sequential connection mode, and the data blocks are guaranteed to be not falsifiable and not forged in a cryptographic mode. Because the blockchain has the characteristics of decentralization, information non-tampering, autonomy and the like, the blockchain is also paid more and more attention and is applied by people.
Currently, there is a need for a solution that can manage account permissions on the same blockchain on different platforms.
Disclosure of Invention
One or more embodiments of the present specification provide a method and apparatus for processing a digital resource in a blockchain-based system.
According to a first aspect, there is provided a method of processing a digital resource in a blockchain based system, the system comprising at least a first application platform, a service platform and a blockchain node, the method being performed by the service platform, the method comprising:
receiving, from the first application platform, a first transaction sent by a first account; the first account is an account in the blockchain; the first transaction is for a processing operation on a first digital resource in the blockchain;
determining whether the first account is a registered account of the first application platform;
sending the first transaction to the blockchain node if the first account is determined to be a registered account of the first application platform.
Optionally, if the first account is a registered account of the first application platform, before receiving the first transaction, the method further includes:
receiving a first request from the first application platform; the first request is sent by the first application platform under the trigger of a registration event; the registration event is an event that the first account is registered in the first application platform;
in response to the first request, the first account is marked as a registered account of the first application platform.
Optionally, the first transaction is for purchasing the first digital resource;
wherein the method further comprises: determining whether the first application platform publishes the first digital resource;
wherein the sending the first transaction to the blockchain node if the first account is determined to be a registered account of the first application platform comprises:
and sending the first transaction to the blockchain node under the condition that the first account is determined to be a registered account of the first application platform and the first digital resource is distributed by the first application platform.
Optionally, if the first application platform issues the first digital resource, before receiving the first transaction, the method further includes:
receiving a second request from the first application platform; the second request is sent by the first application platform under the trigger of a first issuing event; the first issuing event is an event that the first application platform issues the first digital resource;
and responding to the second request, and recording the information of the first digital resource issued by the first application platform.
Optionally, the system further comprises a second application platform, wherein the method further comprises:
receiving a third request from the second application platform; the third request is sent by the second application platform under the trigger of a second release event; the second publishing event is an event of the second application platform publishing the first digital resource;
and responding to the third request, and recording the information of the first digital resource issued by the second application platform.
Optionally, after sending the first transaction to the blockchain node, the method further comprises:
receiving a first receipt which is sent by the blockchain node and is obtained by executing the first transaction;
and sending the message that the first digital resource is sold to the second application platform according to the first receipt.
Optionally, the first transaction to purchase the first digital resource comprises the first transaction to purchase the first digital resource at a first channel in the first application platform;
wherein the method further comprises: determining whether the first channel is legally opened in the first application platform;
wherein the determining whether the first application platform publishes the first digital resource comprises determining whether the first channel publishes the first digital resource under the condition that the first application platform legally opens the first channel;
determining whether the first account is the registered account of the first application platform comprises determining whether the first account is the registered account of the first channel under the condition that the first application platform legally opens the first channel.
Optionally, the determining whether the first channel is legally opened in the first application platform includes:
acquiring a first identifier corresponding to the first application platform;
determining a channel associated with the first application platform based on the first identification and a first corresponding relation between the platform and the channel;
and determining that the first application platform legally opens the first channel under the condition that the channels associated with the first application platform comprise the first channel.
Optionally, the determining whether the first account is a registered account of the first channel includes:
acquiring a second identifier corresponding to the first account;
and if the first account is determined to be associated with the first channel based on the second identification and the second corresponding relation between the account and the channel, determining that the first account is a registered account of the first channel.
According to a second aspect, there is provided an apparatus for processing digital resources for a blockchain based system, the system comprising at least a first application platform, a service platform and blockchain nodes, the apparatus being deployed at the service platform, the apparatus comprising:
a receiving module for receiving a first transaction sent by a first account from the first application platform; the first account is an account in the blockchain; the first transaction is for a processing operation on a first digital resource in the blockchain;
a determination module to determine whether the first account is a registered account of the first application platform;
a sending module, configured to send the first transaction to the blockchain node when it is determined that the first account is a registered account of the first application platform.
Optionally, the apparatus further comprises:
a first logging module, configured to, in response to receiving the first request from the first application platform, mark the first account as a registered account of the first application platform; the first request is sent by the first application platform under the trigger of a registration event; the registration event is an event that the first account is registered in the first application platform.
Optionally, the first transaction is for purchasing the first digital resource; wherein the apparatus further comprises: the first judgment module is used for determining whether the first application platform issues the first digital resource;
wherein the sending module is configured to: and if the first account is determined to be the registered account of the first application platform and the first digital resource is distributed by the first application platform, sending the first transaction to the block chain node.
Optionally, the apparatus further comprises:
a second recording module, configured to record, in response to receiving a second request from the first application platform, information of the first digital resource issued at the first application platform; the second request is sent by the first application platform under the trigger of a first issuing event; the first issuing event is an event that the first application platform issues the first digital resource.
Optionally, the system further includes a second application platform, wherein the apparatus further includes:
a third recording module, configured to record, in response to receiving a third request from the second application platform, information for issuing the first digital resource at the second application platform; the third request is sent by the second application platform under the trigger of a second release event; the second publishing event is an event that the second application platform publishes the first digital resource.
Optionally, the apparatus further comprises:
a receipt receiving module, configured to receive a first receipt obtained by executing the first transaction and sent by the blockchain node;
and the message sending module is used for sending the message that the first digital resource is sold to the second application platform according to the first receipt.
Optionally, the first transaction to purchase the first digital resource comprises the first transaction to purchase the first digital resource at a first channel in the first application platform;
wherein the apparatus further comprises: the second judging module is used for determining whether the first channel is legally opened in the first application platform;
wherein the first determining module is configured to: determining whether the first channel issues the first digital resource or not under the condition that the first application platform legally opens the first channel;
wherein the determining module is configured to: and determining whether the first account is a registered account of the first channel or not under the condition that the first channel is legally opened by the first application platform.
Optionally, the second determining module is configured to:
acquiring a first identifier corresponding to the first application platform;
determining a channel associated with the first application platform based on the first identification and a first corresponding relation between the platform and the channel;
and determining that the first application platform legally opens the first channel under the condition that the channels associated with the first application platform comprise the first channel.
Optionally, the determining module determines whether the first account is a registered account of the first channel by:
acquiring a second identifier corresponding to the first account;
and if the first account is determined to be associated with the first channel based on the second identification and the second corresponding relation between the account and the channel, determining that the first account is a registered account of the first channel.
According to a third aspect, there is provided a computer readable storage medium, storing a computer program which, when executed by a processor, implements the method of any of the first aspects above.
According to a fourth aspect, there is provided a computing device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any of the first aspects when executing the program.
The technical scheme provided by the embodiment of the specification can have the following beneficial effects:
the method and the device for processing digital resources by a system based on a blockchain provided by the embodiments of the present specification check the permissions of blockchain accounts involved in transactions from an application platform through a service platform, thereby realizing management of the permissions of blockchain accounts on different application platforms.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and it is obvious for a person skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a system architecture diagram of a blockchain to which embodiments of the present disclosure are applied;
FIG. 2 is an interaction flow diagram illustrating a method for processing a digital resource by a blockchain based system in accordance with an exemplary embodiment of the present specification;
FIG. 3 is an interaction flow diagram illustrating another method for processing a digital resource by a blockchain based system in accordance with an exemplary embodiment of the present specification;
fig. 4 is a block diagram illustrating an apparatus for processing digital resources for a blockchain based system according to an exemplary embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without making any creative effort shall fall within the protection scope of the present specification.
Digital resources, which are generally characterized by irreplaceability, limitation, etc., and are not divisible, can be generated in a block chain based on Non-homogeneous Tokens (NFT) technology. Different block chains may use different NFT protocol standards to generate the digital resource. The current mainstream protocol standards include ERC721, ERC1155, ERC998, and the like. The ERC721 is the most common NFT protocol standard, and under the ERC721 standard, each generated digital resource has a unique identifier, and different digital resources are not replaceable with each other. Under the ERC1155 standard, the resource identifier does not correspond to one resource but corresponds to one type of resource, different types of resources are not replaceable, different resources in one type of resource are not different and can be replaced mutually, and the number of types of resources is finite. In the ERC998 standard, digital resources generated based on NFT technology may be bundled or combined with digital resources generated based on the homogenization certification (FT) technology (e.g., ETH coins). The solution of the embodiments of the present specification is applicable to various NFT protocol standards.
Fig. 1 is a system architecture diagram of a block chain applied in the embodiment of the present disclosure.
In fig. 1, a system of a blockchain may include a blockchain 101, a service platform 102, and a plurality of application platforms 103. The plurality of application platforms 103 are all in communication connection with the service platform 102, and the service platform 102 is in communication connection with the blockchain 101.
The block chain 101 includes 8 nodes, for example, from node 1 to node 8. Each node may be implemented as any device having computing, processing, capabilities, server or cluster of devices, etc. It is to be understood that although fig. 1 illustrates 8 nodes included in the blockchain 101, embodiments of the present specification are not limited thereto and may include other numbers of nodes. The lines between the nodes schematically represent P2P (Peer-to-Peer) connections. All the nodes store the full account book, namely the states of all the blocks and all the accounts. Wherein each node in the blockchain generates the same state in the blockchain by performing the same transaction, each node in the blockchain storing the same state database. Each node may be responsible for receiving transactions from clients and initiating consensus proposals to each slave node, including information such as the number of transactions in the tile to be blocked (e.g., tile B1) and the order of submission of each transaction. After the node in the blockchain successfully agrees on the consensus proposal, the nodes may perform the transactions according to the order of submission in the consensus proposal, thereby generating block B1.
It is to be appreciated that the blockchain shown in fig. 1 is merely exemplary and that embodiments of the present description are not limited to application to the blockchain shown in fig. 1. In addition, although fig. 1 shows that 8 nodes are included in the blockchain, the embodiments of the present specification are not limited thereto, and may include other numbers of nodes. Specifically, the nodes included in the block chain may satisfy the Byzantine Fault Tolerance (BFT) requirement. The byzantine fault tolerance requirement can be understood as that byzantine nodes can exist in a block chain, and the block chain does not show the byzantine behavior to the outside. Generally, some Byzantine Fault tolerance algorithms require the number of nodes to be greater than 3f +1, where f is the number of Byzantine nodes, such as the practical Byzantine Fault tolerance algorithm pbft (practical Byzantine Fault tolerance).
The application platform 103 may be an e-commerce application platform capable of providing shopping services for users (e.g., providing services for purchasing digital resources). Any application platform can create and publish the digital resources, and also can publish the digital resources created by other application platforms, and the published digital resources are used for selling. A user may create a blockchain account in blockchain 101 through either application platform and then may register the blockchain account as a registered account for either application platform. After the blockchain account is registered as a registered account for an application platform, the blockchain account can purchase digital resources published on the application platform.
Optionally, each application platform may be configured with multiple channels, different channels may be different versions of the application platform, and any channel may publish digital resources. The blockchain account can also be registered as a registered account of any channel under the application platform. The blockchain account may purchase digital resources published on the application platform.
The service platform 102 may receive the transaction sent by the application platform 103 to the blockchain 101 between the application platform 103 and the blockchain 101, verify the transaction, and verify the authorization of the application platform and the blockchain account involved in the transaction. After the verification is passed, the transaction from the application platform 103 is sent to the blockchain 101.
In the related art, digital resources issued based on a block chain have the characteristics of openness, non-falsification, free circulation and the like, in actual application services, different platforms based on the same block chain need to consider the problems of authority and data governance, which is also the reason that block chain services cannot be transversely expanded and applied to different platforms. Therefore, different application platforms can only interface different blockchains, and digital resources on the same blockchain cannot be shared among the platforms. The solution provided by the embodiment of this specification for processing digital resources in the system with blockchains as shown in fig. 1 can achieve the goal of sharing digital resources on the same blockchain among platforms.
The embodiments provided in the present specification will be described in detail with reference to specific examples.
As shown in fig. 2, fig. 2 is an interactive flowchart illustrating a method for processing a digital resource by a blockchain-based system, which describes processes of a user registering an account in an application platform and publishing the digital resource by the application platform, according to an exemplary embodiment. The method comprises the following steps:
in step 201, account a (account a may be created on the blockchain through application platform T1, or may be created on the blockchain through another application platform) on application platform T1 is registered, and then account a may purchase a product such as a digital resource published by application platform T1 through application platform T1. After the registration is completed, the application platform T1 sends a request R1 to the service platform, where the request R1 carries the information that account a is registered on the application platform T1. In response to receiving the request R1, the service platform records information that account a is registered on the application platform T1, that is, records a correspondence relationship between account a and application platform T1.
Optionally, the application platform T1 is configured with a plurality of channels, including channel C1, account a is specifically registered on channel C1 of the application platform T1, and then account a may purchase products such as digital resources published by channel C1 through channel C1 of the application platform T1. The request R1 also carries information of channel C1, and the service platform records information that account a is registered on channel C1 of application platform T1, that is, records the correspondence between account a and channel C1, for example, in a core field of a data model on the blockchain, in response to the request R1. In addition, when the application platform T1 configures a channel, the information of the configured channel is also sent to the service platform, and the service platform records the correspondence between the application platform T1 and the configured channel, for example, specifically in the core field of the data model on the block chain.
In step 202, the application platform T1 publishes a digital resource a (which may be created on the blockchain through the application platform T1 or created on the blockchain through other application platforms) to sell the digital resource a to the user through the application platform T1. After the release of the digital resource a is completed, the application platform T1 sends a request R2 to the service platform, where the request R2 carries the information of the application platform T1 and the digital resource a. The service platform records information publishing digital asset a on application platform T1 in response to receiving request R2.
Optionally, the application platform T1 is configured with a plurality of channels, including channel C1, and the application platform T1 publishes the digital resource a specifically on channel C1 to sell the digital resource a to the user through channel C1. The request R2 also carries information of channel C1, and the service platform records information of the user publishing the digital resource a on channel C1 of the application platform T1 in response to the request R2, for example, in a core field of a data model on the block chain.
In step 203, the application platform T2 may also publish digital resource a, and may also sell digital resource a to the user through application platform T2. After the release of the digital resource a is completed, the application platform T2 sends a request R3 to the service platform, where the request R3 carries the information of the application platform T2 and the digital resource a. The service platform records information publishing digital asset a on application platform T2 in response to receiving request R3.
Optionally, the application platform T2 is configured with a plurality of channels, including channel C2, and the application platform T2 publishes the digital resource a specifically on channel C2 to sell the digital resource a to the user through channel C2. The request R3 also carries information of channel C2, and the service platform records information of the user publishing the digital resource a on channel C2 of the application platform T1 in response to the request R3, for example, in a core field of a data model on the block chain.
It should be noted that although in the above embodiments, the operations of the methods of the embodiments of the present specification have been described in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Rather, the steps depicted in the flowcharts may change order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As shown in fig. 3, fig. 3 is an interactive flowchart illustrating another method for processing a digital resource by a blockchain-based system according to an exemplary embodiment, which describes a process of purchasing a digital resource at an application platform based on the embodiment illustrated in fig. 2. The method comprises the following steps:
in step 301, account a on the blockchain purchases digital resource a through application platform T1, and application platform T1 may send transaction Tx1 for purchasing digital resource a to the blockchain nexus through the service platform after receiving a request for account a to purchase digital resource a. Optionally, a gateway is further connected between the application platform T1 and the service platform, and the application platform T1 may sign the transaction Tx1 first and send the signed transaction Tx1 to the gateway, for example. The gateway may check the signed transaction Tx1 and send the transaction Tx1 to the service platform after the check passes.
In step 302, the service platform performs a verification operation for the transaction Tx1 after receiving the transaction Tx 1. Specifically, the service platform may determine whether the account a is a registered account of the application platform T1, and further, the service platform may determine whether the application platform T1 issues the digital resource a. If the account a is determined to be the registered account of the application platform T1 and the application platform T1 issues the digital resource A, the verification is determined to be passed.
Optionally, the application platform T1 is configured with channel C1, the application platform T1 publishes the digital resource a specifically on channel C1, and account a purchases the digital resource a on channel C1 through transaction Tx 1. After receiving the transaction Tx1, the service platform performs a verification operation specifically to determine whether the channel C1 is legally opened in the application platform T1, determine whether the account a is a registered account of the channel C1 in the case that the channel C1 is legally opened in the application platform T1, and determine whether the channel C1 issues the digital resource a. If it is determined that the account a is a registered account of the channel C1 and the channel C1 issues the digital resource a, it is determined that the check is passed.
In this embodiment, it may be determined whether the channel C1 is legally opened in the application platform T1, whether the account a is a registered account of the channel C1, and whether the channel C1 issues the digital resource a through the core field of the data model recorded on the service platform. The core fields of the data model recorded on the service platform may include, but are not limited to, a blockchain identifier, a service scenario identifier (e.g., whether NFT service or IP service is available), an application platform identifier, a channel identifier, a digital resource identifier issued by a channel, an opening state of the application platform to the channel, an account identifier on the blockchain, a registration state of the account to the channel, a registration state of the account to the application platform, and the like. Therefore, the core field of the data model on the service platform records the corresponding relation among the application platform, the channel, the account on the chain and the digital resource. The verification operation for transaction Tx1 may be performed through the core field of the data model on the service platform.
In step 303, after the check for transaction Tx1 passes, the service platform sends transaction Tx1 to the blockchain node, which executes transaction Tx1 to complete the sale of digital resource a to account a. In step 304, after the block link point executes the completed transaction Tx1, the block link point returns a receipt of the executed transaction Tx1 to the service platform, and then returns the receipt to the application platform T1, and the application platform T1 may execute an operation such as the off-shelf digital resource a according to the receipt.
In step 305, the service platform may update records based on the receipt obtained by the transaction Tx1, for example, the correspondence between the application platform, the channel, the on-chain account, and the digital resource that update the core field records of the data model on the service platform. In addition, the service platform may also send a message to the application platform T2 that digital resource a has been sold, so that the application platform T2 may perform operations such as the off-shelf digital resource a.
In the method for processing digital resources by a system based on a blockchain provided in the above embodiments of the present specification, a service platform is connected between a plurality of application platforms and the blockchain, and the service platform maintains and manages correspondence information between the application platforms, accounts on the chain, and digital resources issued by the application platforms, and verifies a transaction from the application platform and permissions of the blockchain account and the application platform involved in the transaction, thereby not only achieving a purpose of sharing digital resources on the same blockchain among the application platforms, but also achieving permission management for the application platforms and the accounts.
It should be noted that although in the above embodiments, the operations of the methods of the embodiments of the present specification have been described in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Rather, the steps depicted in the flowcharts may change order of execution. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
In correspondence with the foregoing method embodiments for processing digital resources by a blockchain-based system, the present specification also provides embodiments of an apparatus for processing digital resources by a blockchain-based system.
As shown in fig. 4, fig. 4 is a block diagram of an apparatus for processing digital resources in a blockchain based system according to an exemplary embodiment, the system including at least a first application platform, a service platform and a blockchain node, the apparatus being deployed in the service platform, and the apparatus may include: a receiving module 401, a determining module 402 and a sending module 403.
The receiving module 401 is configured to receive, from the first application platform, a first transaction sent by a first account, where the first account is an account in the blockchain, and the first transaction is used for processing a first digital resource in the blockchain.
A determination module 402 is configured to determine whether the first account is a registered account of the first application platform.
A sending module 403, configured to send the first transaction to the blockchain node if it is determined that the first account is a registered account of the first application platform.
In some embodiments, the apparatus may further comprise: a first recording module (not shown).
The first recording module is used for recording a first account as a registered account of the first application platform in response to receiving a first request from the first application platform, wherein the first request is sent by the first application platform under the trigger of a registration event, and the registration event is an event registered by the first account on the first application platform.
In other embodiments, the first transaction is for the purchase of a first digital resource.
Wherein, the device can also include: a first determining module (not shown in the figure) for determining whether the first application platform issues the first digital resource.
Wherein the sending module is configured to: and if the first account is determined to be the registered account of the first application platform and the first application platform sends the first digital resource, sending the first transaction to the block chain node.
In other embodiments, the apparatus may further comprise: a second recording module (not shown).
The second recording module is configured to record information of issuing the first digital resource on the first application platform in response to receiving a second request from the first application platform, where the second request is sent by the first application platform under the trigger of a first issuing event, and the first issuing event is an event of issuing the first digital resource by the first application platform.
In some embodiments, the system further includes a second application platform, and the apparatus further includes: a third recording module (not shown).
The third recording module is configured to record information of the first digital resource issued at the second application platform in response to receiving the third request from the second application platform. The third request is sent by the second application platform under the trigger of a second release event, and the second release event is an event for the second application platform to release the first digital resource.
In other embodiments, the apparatus may further include: a receipt receiving module and a message sending module (not shown in the figure).
The receipt receiving module is used for receiving a first receipt which is sent by the blockchain node and obtained by executing the first transaction.
And the message sending module is used for sending the message that the first digital resource is sold to the second application platform according to the first receipt.
In still other embodiments, wherein the first transaction is for purchasing a first digital resource comprises the first transaction is for purchasing a first digital resource at a first channel in the first application platform.
Wherein, the device can also include: and a second determining module (not shown in the figure) for determining whether the first channel is legally opened in the first application platform.
Wherein the first determining module is configured to: and under the condition that the first channel is legally opened by the first application platform, determining whether the first channel is distributed with the first digital resources.
Wherein the determining module is configured to: and under the condition that the first channel is legally opened by the first application platform, determining whether the first account is a registered account of the first channel.
In other embodiments, the second determination module is configured to: the method comprises the steps of obtaining a first identification corresponding to a first application platform, determining a channel associated with the first application platform based on the first identification and a first corresponding relation between the platform and the channel, and determining that the first application platform legally opens the first channel under the condition that the channel associated with the first application platform comprises the first channel.
In other embodiments, the determination module determines whether the first account is a registered account for the first channel by: and acquiring a second identifier corresponding to the first account, and if the first account is determined to be associated with the first channel based on the second identifier and a second corresponding relation between the account and the channel, determining that the first account is a registered account of the first channel.
It should be understood that the above-mentioned apparatus may be preset in the service platform, and may also be loaded in the service platform by downloading or the like. The corresponding modules in the device can be matched with the modules in the service platform to realize the scheme of processing the digital resources by the system based on the block chain.
For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of one or more embodiments of the present specification. One of ordinary skill in the art can understand and implement it without inventive effort.
One or more embodiments of the present specification further provide a computer-readable storage medium storing a computer program, where the computer program can be used to execute the method for processing a digital resource by using the system based on a block chain provided in any one of fig. 2 to fig. 3.
One or more embodiments of the present specification further provide a computing device, which includes a memory and a processor, where the memory stores executable code, and the processor executes the executable code to implement the method for processing digital resources by using the system based on the block chain provided in any one of fig. 2 to 3.
In the 90's of the 20 th century, improvements to a technology could clearly distinguish between improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements to process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, apparatuses, modules or units described in the above embodiments may be specifically implemented by a computer chip or an entity, or implemented by a product with certain functions. One typical implementation device is a server system. Of course, this application does not exclude that with future developments in computer technology, the computer implementing the functionality of the above described embodiments may be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device or a combination of any of these devices.
Although one or more embodiments of the present description provide method operational steps as described in the embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive approaches. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or end product executes, it may execute sequentially or in parallel (e.g., parallel processors or multi-threaded environments, or even distributed data processing environments) according to the method shown in the embodiment or the figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded. For example, if the terms first, second, etc. are used to denote names, they do not denote any particular order.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, when implementing one or more of the present description, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of multiple sub-modules or sub-units, etc. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage, graphene storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Moreover, various embodiments or examples and features of various embodiments or examples described in this specification can be combined and combined by one skilled in the art without being mutually inconsistent.
The above description is merely exemplary of one or more embodiments of the present disclosure and is not intended to limit the scope of one or more embodiments of the present disclosure. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present specification should be included in the scope of the claims.

Claims (20)

1. A method of processing a digital resource in a blockchain based system, the system including at least a first application platform, a service platform and a blockchain node, the method being performed by the service platform, the method comprising:
receiving, from the first application platform, a first transaction sent by a first account; the first account is an account in the blockchain; the first transaction is for a processing operation on a first digital resource in the blockchain;
determining whether the first account is a registered account of the first application platform;
sending the first transaction to the blockchain node if the first account is determined to be a registered account of the first application platform.
2. The method of claim 1, wherein, if the first account is a registered account of the first application platform, prior to receiving the first transaction, the method further comprises:
receiving a first request from the first application platform; the first request is sent by the first application platform under the trigger of a registration event; the registration event is an event that the first account is registered in the first application platform;
in response to the first request, the first account is marked as a registered account of the first application platform.
3. The method of claim 1, wherein the first transaction is for purchasing the first digital resource;
wherein the method further comprises: determining whether the first application platform publishes the first digital resource;
wherein the sending the first transaction to the blockchain node if the first account is determined to be a registered account of the first application platform comprises:
and sending the first transaction to the blockchain node under the condition that the first account is determined to be a registered account of the first application platform and the first digital resource is distributed by the first application platform.
4. The method of claim 3, wherein if the first application platform has the first digital resource distributed, prior to receiving the first transaction, the method further comprises:
receiving a second request from the first application platform; the second request is sent by the first application platform under the trigger of a first issuing event; the first issuing event is an event that the first application platform issues the first digital resource;
and responding to the second request, and recording the information of the first digital resource issued by the first application platform.
5. The method of claim 3, the system further comprising a second application platform, wherein the method further comprises:
receiving a third request from the second application platform; the third request is sent by the second application platform under the trigger of a second release event; the second publishing event is an event of the second application platform publishing the first digital resource;
and responding to the third request, and recording the information of the first digital resource issued by the second application platform.
6. The method of claim 5, wherein after sending the first transaction to the blockchain node, the method further comprises:
receiving a first receipt sent by the blockchain node for executing the first transaction;
and sending the message that the first digital resource is sold to the second application platform according to the first receipt.
7. The method of claim 3, wherein the first transaction for purchasing the first digital resource comprises the first transaction for purchasing the first digital resource at a first channel in the first application platform;
wherein the method further comprises: determining whether the first channel is legally opened in the first application platform;
wherein the determining whether the first application platform publishes the first digital resource comprises determining whether the first channel publishes the first digital resource under the condition that the first application platform legally opens the first channel;
determining whether the first account is the registered account of the first application platform comprises determining whether the first account is the registered account of the first channel under the condition that the first application platform legally opens the first channel.
8. The method of claim 7, wherein said determining whether said first channel is legally opened in said first application platform comprises:
acquiring a first identifier corresponding to the first application platform;
determining a channel associated with the first application platform based on the first identification and a first corresponding relation between the platform and the channel;
and determining that the first application platform legally opens the first channel under the condition that the channels associated with the first application platform comprise the first channel.
9. The method of claim 7, wherein the determining whether the first account is a registered account of the first channel comprises:
acquiring a second identifier corresponding to the first account;
and if the first account is determined to be associated with the first channel based on the second identification and the second corresponding relation between the account and the channel, determining that the first account is a registered account of the first channel.
10. An apparatus for processing a digital resource in a blockchain based system that includes at least a first application platform, a service platform and blockchain nodes, the apparatus being deployed at the service platform, the apparatus comprising:
a receiving module for receiving a first transaction sent by a first account from the first application platform; the first account is an account in the blockchain; the first transaction is for a processing operation on a first digital resource in the blockchain;
a determination module to determine whether the first account is a registered account of the first application platform;
a sending module, configured to send the first transaction to the blockchain node when it is determined that the first account is a registered account of the first application platform.
11. The apparatus of claim 10, wherein the apparatus further comprises:
a first logging module to log the first account as a registered account of the first application platform in response to receiving the first request from the first application platform; the first request is sent by the first application platform under the trigger of a registration event; the registration event is an event that the first account is registered in the first application platform.
12. The apparatus of claim 10, wherein the first transaction is for purchasing the first digital resource; wherein the apparatus further comprises: the first judgment module is used for determining whether the first application platform issues the first digital resource;
wherein the sending module is configured to: and if the first account is determined to be the registered account of the first application platform and the first digital resource is distributed by the first application platform, sending the first transaction to the block chain node.
13. The apparatus of claim 12, wherein the apparatus further comprises:
a second recording module, configured to record, in response to receiving a second request from the first application platform, information of the first digital resource issued at the first application platform; the second request is sent by the first application platform under the trigger of a first issuing event; the first issuing event is an event that the first application platform issues the first digital resource.
14. The apparatus of claim 12, the system further comprising a second application platform, wherein the apparatus further comprises:
a third recording module, configured to record, in response to receiving a third request from the second application platform, information for issuing the first digital resource at the second application platform; the third request is sent by the second application platform under the trigger of a second release event; the second publishing event is an event that the second application platform publishes the first digital resource.
15. The apparatus of claim 14, wherein the apparatus further comprises:
a receipt receiving module, configured to receive a first receipt obtained by executing the first transaction and sent by the blockchain node;
and the message sending module is used for sending the message that the first digital resource is sold to the second application platform according to the first receipt.
16. The apparatus of claim 12, wherein the first transaction to purchase the first digital resource comprises the first transaction to purchase the first digital resource at a first channel in the first application platform;
wherein the apparatus further comprises: the second judging module is used for determining whether the first channel is legally opened in the first application platform;
wherein the first determining module is configured to: determining whether the first channel issues the first digital resource or not under the condition that the first application platform legally opens the first channel;
wherein the determining module is configured to: and determining whether the first account is a registered account of the first channel or not under the condition that the first channel is legally opened by the first application platform.
17. The apparatus of claim 16, wherein the second determining means is configured to:
acquiring a first identifier corresponding to the first application platform;
determining a channel associated with the first application platform based on the first identification and a first corresponding relation between the platform and the channel;
and determining that the first application platform legally opens the first channel under the condition that the channels associated with the first application platform comprise the first channel.
18. The apparatus of claim 16, wherein the means for determining determines whether the first account is a registered account for the first channel by:
acquiring a second identifier corresponding to the first account;
and if the first account is determined to be associated with the first channel based on the second identification and the second corresponding relation between the account and the channel, determining that the first account is a registered account of the first channel.
19. A computer-readable storage medium, having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method of any one of claims 1-9.
20. A computing device comprising a memory having executable code stored therein and a processor that, when executing the executable code, implements the method of any of claims 1-9.
CN202210189131.3A 2022-02-28 2022-02-28 Method and device for processing digital resources by system based on block chain Pending CN114565461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210189131.3A CN114565461A (en) 2022-02-28 2022-02-28 Method and device for processing digital resources by system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210189131.3A CN114565461A (en) 2022-02-28 2022-02-28 Method and device for processing digital resources by system based on block chain

Publications (1)

Publication Number Publication Date
CN114565461A true CN114565461A (en) 2022-05-31

Family

ID=81716341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210189131.3A Pending CN114565461A (en) 2022-02-28 2022-02-28 Method and device for processing digital resources by system based on block chain

Country Status (1)

Country Link
CN (1) CN114565461A (en)

Similar Documents

Publication Publication Date Title
CN109919586B (en) Multi-layer secure mobile transaction enabled platform
CN112241506B (en) User behavior backtracking method, device, equipment and system
CN111967849A (en) Task processing flow arrangement method and device and electronic equipment
CN111340631A (en) Asset transfer method, device, equipment and system
US11244311B2 (en) Decentralized smart resource sharing between different resource providers
CN110278264B (en) Block chain-based cross-link communication method and device and transaction system
CN110992162A (en) Resource processing method, device, equipment and system
CN113495797A (en) Message queue and consumer dynamic creation method and system
CN115098594A (en) Method for executing transaction in block chain system, block chain system and node
CN112291321B (en) Service processing method, device and system
CN110992039B (en) Transaction processing method, device and equipment
CN114708093A (en) Block chain-based digital resource processing method and device
CN115983997A (en) Block chain-based collection management method, block chain node and system
CN115860884A (en) Method and device for processing digital resources in block chain system
CN114565461A (en) Method and device for processing digital resources by system based on block chain
CN112434347B (en) Rental business processing method, device, equipment and system
CN112613063B (en) Data verification system construction method and device
CN107135191B (en) Method and device for checking integrity of distributed service processing
CN115018499A (en) Block chain-based digital certificate issuing method, device and system
GB2604000A (en) Blockchain selective world state database
CN116997895A (en) Reducing transaction aborts in an execution ordering validation blockchain model
CN110533406B (en) Payment calling method, device and system
JP2023538497A (en) editable blockchain
PG et al. Blockchain based verification of vehicle history for pre-owned vehicle industry
US20230298064A1 (en) Systems and methods for facilitating redemption of unique digital asset utility

Legal Events

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