CN114328731A - Information processing method, device, electronic equipment and storage medium - Google Patents

Information processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114328731A
CN114328731A CN202111628937.XA CN202111628937A CN114328731A CN 114328731 A CN114328731 A CN 114328731A CN 202111628937 A CN202111628937 A CN 202111628937A CN 114328731 A CN114328731 A CN 114328731A
Authority
CN
China
Prior art keywords
transaction
information
transaction information
request
blockchain
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
CN202111628937.XA
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202111628937.XA priority Critical patent/CN114328731A/en
Publication of CN114328731A publication Critical patent/CN114328731A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The disclosure provides an information processing method, an information processing device, electronic equipment and a storage medium, and relates to the technical field of block chains, in particular to the technical field of cloud computing and the technical field of cloud service. The specific implementation mode of the information processing method is as follows: in response to receiving the first transaction information, adding a first transaction request including the first transaction information to a cache queue; obtaining an unprocessed second transaction request from the buffer queue in response to the block chain network being in an idle state; and sending the second transaction request to the blockchain network so as to store second transaction information included in the second transaction request to the blockchain.

Description

Information processing method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of block chaining technologies, and in particular, to a method and an apparatus for processing information, an electronic device, and a storage medium.
Background
With the accelerated development of the internet and computer technology, the development of digital economy is gradually accelerated, the radiation range is gradually enlarged, and the influence degree is gradually deepened, so that higher requirements are provided for reliable transmission of information. The conventional internet mainly uses a form of duplication for information transmission, which is not suitable for the transfer of digital assets in digital economy.
Disclosure of Invention
Based on this, the present disclosure provides an information processing method, apparatus, electronic device, and storage medium that improve user experience.
According to an aspect of the present disclosure, there is provided an information processing method including: in response to receiving the first transaction information, adding a first transaction request including the first transaction information to a cache queue; obtaining an unprocessed second transaction request from the buffer queue in response to the block chain network being in an idle state; and sending the second transaction request to the blockchain network so as to store second transaction information included in the second transaction request to the blockchain.
According to another aspect of the present disclosure, there is provided an information processing apparatus including: the request adding module is used for responding to the received first transaction information and adding a first transaction request comprising the first transaction information to the cache queue; the request acquisition module is used for responding to the idle state of the block chain network and acquiring an unprocessed second transaction request from the cache queue; and the request sending module is used for sending the second transaction request to the blockchain network so as to store the second transaction information included in the second transaction request to the blockchain.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the information processing method provided by the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform an information processing method provided by the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the information processing method provided by the present disclosure.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic view of an application scenario of an information processing method and apparatus according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow diagram of an information processing method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an information processing method according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an information processing method according to another embodiment of the present disclosure;
FIG. 5 is a block diagram of a server implementing an information processing method according to an embodiment of the present disclosure;
fig. 6 is a block diagram of the structure of an information processing apparatus according to an embodiment of the present disclosure; and
fig. 7 is a block diagram of an electronic device for implementing the information processing method of the embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The disclosure provides an information processing method, which comprises a request adding stage, a request acquiring stage and a request sending stage. In the request adding stage, in response to receiving the first transaction information, a first transaction request including the first transaction information is added to a buffer queue. In the request acquisition phase, in response to the blockchain network being in an idle state, an unprocessed second transaction request is acquired from the cache queue. In the request sending phase, sending the second transaction request to the blockchain network so as to store the second transaction information included in the second transaction request to the blockchain.
An application scenario of the method and apparatus provided by the present disclosure will be described below with reference to fig. 1.
Fig. 1 is a schematic view of an application scenario of an information processing method and apparatus according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 of this embodiment may include a terminal device 110, a server 120, a blockchain network 130, and a server 140.
Terminal device 110 may be communicatively coupled to server 120 via a network, and server 120 may be communicatively coupled to the blockchain nodes in blockchain network 130 via the network. Or the server 120 may be communicatively coupled to the server 140 via a network to enable communication with the blockchain network 130 via the server 140. The blockchain network 130 may include a plurality of blockchain nodes communicatively coupled to each other via a network. The network may include wired or wireless communication links, among others.
Terminal device 110 may be a smartphone, tablet, laptop or desktop computer, or the like. The terminal device 110 may be installed with a game application, a shopping application, a video playing application, and the like. A user may employ, for example, terminal device 110 to use various types of applications, and the user may also hold, for example, digital assets in at least one of the applications. The digital assets can be game props, electronic art, non-homogenization certificates corresponding to sold houses, and the like.
Server 120 may be, for example, a background management server that supports the running of applications in terminal device 110. A user may initiate a transaction request for a digital asset, for example, through terminal device 110, so that other users of the blockchain network may view their digital asset and conduct a transfer transaction for the digital asset. For example, the terminal device 110 may send transaction information to the server 140 via the backend management server 120 in response to a user operation, and the server 140 may forward the transaction information to the blockchain network 130, so that the blockchain network 130 generates blocks according to the transaction information of the digital assets and adds the blocks to the blockchain, thereby implementing decentralized registration and transfer of the digital assets.
The server 140 may be, for example, a Software as a Service (SaaS) platform, a Backend as a Service (BaaS) platform, or the like. The server 140 may provide enterprise-level platform services based on blockchain technology, for example, to provide reliability services for transactions of digital assets.
In one embodiment, the server 140 may maintain accounts of at least two applications in the terminal device, for example, and provide blockchain accounts for the at least two applications. The terminal device may initiate a transaction request, for example, via the blockchain account. The server 140 may also have access to an asset regulatory authority or the like to verify the legitimacy of each digital asset requesting a transaction, allowing only transaction requests to be initiated for legitimate digital assets. Thus, the server 140 is beneficial to the healthy development of digital economy.
The blockchain network 130 may implement decentralized management of digital assets, for example, through distributed ledger and byzantine fault-tolerant consensus, in combination with techniques such as cryptography and peer-to-peer communication.
According to an embodiment of the present disclosure, the terminal device 110 may also send a query request in response to a user operation to query historical transaction information from a blockchain maintained by the blockchain network 130.
According to an embodiment of the present disclosure, in a case where the server 120 is directly communicatively connected to the blockchain network 130, the server 120 may also directly transmit a transaction request of the digital asset initiated by the user through the terminal device 110 to the blockchain network 130. To resolve the link uncertainty, the server 120 may determine that the transaction information is successfully stored after waiting a predetermined number of out-of-block times, and then send a new transaction request to the blockchain network 130.
It should be noted that an information processing method provided by the present disclosure may be generally executed by the server 140. Accordingly, an information processing apparatus provided by the present disclosure may be provided in the server 140.
It should be understood that the number and types of terminal devices, servers, and blockchain networks in fig. 1 are merely illustrative. There may be any number and type of terminal devices, servers, and blockchain networks, as desired for an implementation.
The information processing method provided by the present disclosure will be described in detail below with reference to fig. 1 through fig. 2 to 5.
Fig. 2 is a flowchart illustrating an information processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the information processing method 200 of this embodiment may include operations S210 to S230. The information processing method 200 may be executed by a server, and may specifically be executed by various types of cloud platforms, which is not limited in this disclosure.
In operation S210, in response to receiving the first transaction information, a first transaction request including the first transaction information is added to a buffer queue.
According to an embodiment of the present disclosure, the first transaction information may be transmitted by the user via the terminal device using the blockchain account. The first transaction information may include, for example, information of digital assets that need to be published to the blockchain, or may include information of digital assets that need to be transferred. The information for the digital asset may include, for example, asset holder accounts, asset description information, asset categories, asset transaction types, etc. It is understood that the information that needs to be published to the blockchain may be any tradable object in addition to digital assets, and is not limited by this disclosure.
The embodiment may treat the first transaction information as a first transaction request and add the first transaction request to the buffer queue. For example, the server may be provided with a cache space for caching all transaction requests or unprocessed transaction requests. Unprocessed transaction requests include transaction requests that are not sent to the blockchain network, and transaction requests that include transaction information that was not successfully stored to the blockchain.
In operation S220, in response to the blockchain network being in an idle state, an unprocessed second transaction request is obtained from the cache queue.
According to the embodiment of the disclosure, the server may determine that the blockchain network is in an idle state after a predetermined time after sending the transaction request to the blockchain network. Or, after receiving the source tracing code fed back by the blockchain network for the transaction information in the newly sent transaction request, the server may determine that the blockchain network is in an idle state. The predetermined time length may be n block times, n is an integer greater than 1, a value of n may be set according to an actual requirement, and the block time may be determined according to an average computation power of a block chain node in the block chain network.
According to the embodiment of the disclosure, the transaction requests in the buffer queue may be arranged in sequence from front to back according to the receiving sequence, and only unprocessed transaction requests may be stored in the buffer queue. The embodiment may retrieve the transaction request queued at the top position from the cache queue as the second transaction request. Alternatively, the transaction request with the earliest reception time may be acquired as the second transaction request according to the timestamp of the transaction request with the unprocessed status in the buffer queue.
For example, the server may remove the sent transaction request from the buffer queue after determining that the transaction information included in the sent transaction request is successfully stored in the blockchain. Alternatively, the server may assign status information for the transaction request. For example, after adding a transaction request including newly received transaction information to the buffer queue, a transaction request not newly added is assigned status information indicating unprocessed, i.e., the status of the newly added transaction request is determined to be unprocessed. After determining that the transaction information in the sent transaction request is stored in the blockchain, allocating state information representing processed state for the sent transaction request, namely changing the state of the sent transaction request from the unprocessed state to the processed state. The server may determine that the transaction information in the sent transaction request is stored in the blockchain after receiving the source tracing code fed back by the blockchain network for the transaction information in the sent transaction request. Or the transaction information in the transmitted transaction request is determined to be stored in the blockchain if the storage failure information is not received within m blockchain times after the transaction request is transmitted.
In operation S230, the second transaction request is sent to the blockchain network to store second transaction information included in the second transaction request to the blockchain.
According to an embodiment of the present disclosure, the blockchain network may add the second transaction information in the second transaction request to the blockchain in a form of a block after the second transaction request is verified by using the smart contract. The smart contract may be used, for example, to verify the integrity and authenticity of transaction information. This embodiment may incorporate a consensus mechanism, such as a byzantine consensus, etc., which is not limited by this disclosure, to determine whether the second transaction request passes the verification.
For example, the block link point in the block chain network may encrypt the transaction information, the time information, and the encrypted data of the latest block in the block chain first, and add the encrypted data as a new block to the end of the block chain according to the encrypted data, thereby completing the storage of the transaction information.
The block link point for adding the second transaction information to the block chain in the form of a block may be the following node: a blockchain node associated with an application to which the transaction request account belongs or any blockchain node in the blockchain network determined via election as a consensus node. For example, each blockchain node in the blockchain network may be associated with at least one application in the terminal device, and may specifically be associated with a blockchain account provided by the at least one application.
According to the information processing method, the server is arranged on the terminal equipment for sending the transaction information and the blockchain network for storing the transaction information, and the cache queue is arranged for the transaction request, so that a user does not need to submit new transaction information after waiting for the latest submitted transaction information to be linked. Therefore, the complexity of services caused by asynchronous and uncertain uplink operation can be reduced, the uplink cost of transaction information is reduced, and the user experience is improved.
According to an embodiment of the present disclosure, any of the aforementioned transaction requests may be a first request to publish a digital asset to a blockchain and may also be a second request to transfer a digital asset from a first blockchain account to a second blockchain account. That is, the transaction request may include a request to issue a new digital asset, and may also include a request to grant or transfer a digital asset. Wherein the transaction information in the transaction request can be sent by the terminal device in response to a user operation.
For example, the digital assets may be virtual assets or certificates corresponding to physical assets. The digital assets can be either homogeneous evidence or non-homogeneous evidence (N)on-Fungible Token,NFT)。
In an embodiment, the transaction information included in the aforementioned received first transaction information and any transaction request may include a signature of the transaction request account and a public key of the transaction request account. Therefore, the transaction information is prevented from being tampered at the service end, and the security of transaction information forwarding is ensured. Correspondingly, when the block chain node verifies the transaction request, the intelligent contract can be called, and the transaction information is verified according to the signature and the public key included in the transaction information in the transaction request. For example, the signature may be decrypted by using a public key, and if the decryption is successful, it is determined that the transaction information passes the verification.
Taking the transaction request as a first request for issuing the digital asset to the blockchain as an example, the present disclosure can perform standardized representation on various types of digital assets to be issued, so that the blockchain network can perform transaction circulation between different types of digital assets according to the transaction information sent by the terminal device. For example, the standardized representation may include a number of the digital asset, a number of copies of the digital asset, description information of the digital asset, a unique random number used for signature deduplication, a blockchain account from which the digital asset was published, a public key of the blockchain account from which the digital asset was published, a signature of the blockchain account from which the digital asset was published, and the like. It is understood that the information included in the standardized representation may be set according to actual requirements, which are not limited by the present disclosure. For example, the transaction information sent by the terminal device includes a standardized representation of the digital asset.
The number of the digital asset and the unique random number may be assigned by an application to which the blockchain account belongs, for example. The number of the digital asset may for example comprise an identification of the application, thereby ensuring global uniqueness of the number. The signature may be derived, for example, by encrypting a string of transaction information derived using digital digest techniques and a unique random number using the private key of the blockchain account. The encryption may be performed by using an elliptic curve encryption algorithm, which is not limited in this disclosure. The description information of the digital asset may include a title of the digital asset, a category of the digital asset, an acquisition address of the digital asset, picture information of the digital asset and/or text information of the digital asset, etc. The description information of the digital asset may be selected according to actual requirements, which is not limited by the present disclosure. It should be noted that, when the digital asset is a non-homogenous certification, the standardized representation may further include, for example, a number of each sub-asset in the digital asset.
Fig. 3 is a schematic diagram of an information processing method according to an embodiment of the present disclosure.
According to the embodiment of the disclosure, the server may further store data stored in the blockchain, for example, synchronously, and provide a transaction information query service for the blockchain account in response to a query request of the blockchain account. Therefore, when the information needs to be inquired by the blockchain account, the communication with the blockchain network is not needed, the complexity of data reading can be reduced, and the data reading efficiency is improved. Meanwhile, the situation that the latest uplink transaction data cannot be read due to communication delay can be avoided.
As shown in fig. 3, in this embodiment 300, the server 320 may subscribe to an event from the blockchain network 330, so that the blockchain network 330 performs operation S331 to send an update notification to the server 320 after a new block is added to the blockchain. As such, the server 320 may determine that the blockchain is updated upon receiving the update notification.
The server may then execute operation S321 to obtain the transaction information stored in the updated blockchain in response to the blockchain being updated. Specifically, the server 320 may determine the digital asset number included in the transaction information in the transaction request that is sent recently, and then send the query request including the digital asset number to the blockchain network 330. The blockchain network 330 may determine the latest block in the blockchain matching the query request in response to the query request, and perform operation S332 to send information of the newly added block to the server 320. In this way, the server 320 may obtain the transaction information stored in the updated blockchain, where the transaction information is the transaction information included in the latest block. Alternatively, the server 320 may send a blockchain synchronization request to the blockchain network 330, and the blockchain network 330 sends the blockchain to the server 320 in response to the synchronization request. In this way, the server 320 may obtain the transaction information stored in the updated blockchain, where the transaction information is the transaction information included in all the blocks in the blockchain.
After obtaining the transaction information, the server 320 may store the obtained transaction information for querying by the blockchain account 310. For example, the server 320 may perform operation S322 using the acquired transaction information to update the transaction information locally stored by the server 320. For example, the server 320 may store, to the local, transaction information that is not stored to the local in the acquired transaction information. It can be understood that the transaction information obtained by the server is substantially a block in the block chain, and is encrypted information of the transaction information in the transaction request.
In an embodiment, after receiving an information query request sent by any blockchain account 310 of any application by performing operation S311, the server 320 may query locally stored transaction information according to the information query request, and determine target information matching the information query request by operation S323. After the target information is determined, the target information is transmitted to the any blockchain account 310 by performing operation S324.
According to an embodiment of the present disclosure, the information query request sent by the blockchain account 310 may include, for example, query key information: an account identification of a blockchain account or a number of a digital asset, etc. The server 320 may use, for example, the latest acquired transaction information among the plurality of transaction information including the query key information as the target information. In this way, after receiving the target information, the blockchain account 310 may decrypt the transaction information using its private key, for example, to obtain the detailed information of the transaction information. It will be appreciated that the determined target information is essentially transaction information encrypted by accounting nodes of the blockchain network.
In an embodiment, the server 320 may also periodically count the stored transaction information and classify the transaction information according to the object to which the transaction information relates, so as to obtain the transaction data for each object in the plurality of objects. The transaction data may include all transaction information for the digital asset to which each object corresponds. Wherein the plurality of objects may include blockchain accounts and digital assets. In this way, when the server 320 determines the target information matching the information query request, the transaction data of the object corresponding to the query key information in the information query request can be directly used as the target information. For example, if the query key information is the number of the digital asset a, the determined target information includes an information list composed of all the transaction information of the digital asset a stored on the blockchain. Therefore, the query efficiency can be improved, the comprehensiveness of the transaction information obtained by query is improved, and a higher-level data reading function is provided for the blockchain account.
For example, the aforementioned digital assets may include non-homogenous certificates. As such, the server 320 may determine transaction data for each sub-asset included in the digital asset when accounting for the stored transaction information. The aforementioned query key information may also include the number of the sub-asset.
In an embodiment, after the server 320 obtains the transaction information stored in the blockchain, format conversion may be performed on the transaction information. The acquired transaction information may be converted into transaction information in a predetermined format, for example. In general, transaction information is stored in a key-value pair format in the blockchain, and the server 320 may convert the stored transaction information in the key-value pair format into a format supported by a relational database or a non-relational database, for example, convert the transaction information represented by the key-value pair into transaction information represented by MySQL statements. The converted transaction information in the predetermined format is then stored. Through the format conversion of the transaction information, the information expression capacity can be improved, the stored transaction information can be conveniently counted and processed according to actual requirements, and the diversified and flexible information query function can be provided for the block chain account.
Fig. 4 is a schematic diagram of an information processing method according to another embodiment of the present disclosure.
According to the embodiment of the disclosure, after the server receives the transaction information sent by the blockchain account through the terminal device, for example, integrity verification can be performed on the transaction information, so that smooth transaction is ensured, and waste of computing resources is avoided.
For example, the information processing method of this embodiment 400 may perform integrity check on the first transaction information 410 via operation S401 in response to receiving the first transaction information 410. For example, for the transaction information in the aforementioned first request, the criterion for passing the integrity check may be to include all of the information in the aforementioned standardized representation. For the transaction information in the aforementioned second request, the criteria passing the integrity check may be a number of the digital asset to be transferred, an identification of the blockchain account currently holding the digital asset, an identification of the blockchain account receiving the digital asset, a public key of the blockchain account currently holding the digital asset, a signature of the blockchain account currently holding the digital asset, and the like. It is to be understood that the above-mentioned standards for passing integrity check are only examples to facilitate understanding of the present disclosure, and the present disclosure is not limited thereto.
After the first transaction information 410 passes the integrity check, the first transaction request including the first transaction information is added to the buffer queue.
According to the embodiment of the disclosure, after the server receives the transaction information sent by the blockchain account via the terminal device, for example, incentive information may be added to the transaction information, so that a transaction request is formed by the transaction information and the incentive information, and the transaction request is added to the cache queue. Therefore, the block chain link point for storing the transaction information into the block chain in the block chain network is conveniently stimulated, and the stimulated block chain link point participates in maintenance of normal operation of the block chain network.
For example, in embodiment 400, in the event that the first transaction information 410 is integrity checked and the check passes, the incentive information 420 for that first transaction information 410 may be determined. The excitation information may comprise, for example, the number of digital resources or credits. Wherein, the number of the digital resources or the points can have a mapping relation with the asset transaction type. Alternatively, the number of digital assets or points may be a predetermined value for any type of transaction. The asset transaction types may include a type of publishing the digital asset and a type of transferring the digital asset, etc.
For example, in the case that the verification fails, the server may feed back prompt information or check a page to the terminal device via the background management server to prompt the transaction request account to supplement the transaction information.
After obtaining the incentive information 420, the first transaction information 410 and the incentive information 420 may be packaged as a first transaction request 430, and the first transaction request 430 may be added to the buffer queue 440.
The structure of a server implementing the information processing method provided by the present disclosure will be described below with reference to fig. 5.
Fig. 5 is a block diagram of a server implementing an information processing method according to an embodiment of the present disclosure.
As shown in fig. 5, in this embodiment 500, a server 510 may be provided with an operation pool 511 and a state machine 512.
According to an embodiment of the present disclosure, a buffer queue may be disposed in the operation pool 511, and is used for buffering the transaction request obtained according to the transaction information sent by the service layer 520. The transaction requests in the buffer queue may be sent to the blockchain network 530 through the uplink agent, for example, to store the transaction information in the transaction request into the blockchain, thereby completing the uplink transaction operation of the transaction information, i.e., completing the operation of writing the transaction information requested by the service layer 520. The business layer 520 may be, for example, a background management server for at least two applications.
According to an embodiment of the present disclosure, an asset library may be disposed in the state machine 512, and a transaction history is stored, which is used to provide transaction information for the read operation request of the business layer 520. The state machine 512 may, for example, subscribe to events from the blockchain network 530 to obtain blocks in an updated blockchain in the blockchain network 530 and synchronize the updated blockchain to the asset library. The state machine 512 may also count the obtained blocks (which may represent transaction information) to obtain the transaction data for each object as described above, and use the transaction data as a transaction history.
According to an embodiment of the present disclosure, the server 510 may be provided with the following service interfaces:
the system comprises a digital asset issuing interface, wherein the incoming parameters can comprise a blockchain account for issuing the digital asset, the number of copies of the digital asset, the number of the digital asset, a unique random number for signature deduplication, a public key of the blockchain account for issuing the digital asset, a signature of the blockchain account for issuing the digital asset, an identification of an application to which the blockchain account for issuing the digital asset belongs, and the like. The incoming parameters are the parameters included in the transaction information described above. It should be noted that, when the issued digital asset is a non-homogenous certification, the number of the self asset may also be transmitted for each sub asset included in the digital asset. Wherein, the non-homogeneous general evidence can represent assets with unique characteristics such as houses and the like. When a certain user has a plurality of houses, a number that is different from other types of assets may be set for the house type asset as the number of the digital asset. Meanwhile, a number different from other houses can be set for each house in the plurality of houses, so that the number of the sub-asset is obtained.
Digital asset grant interface: for granting ownership of the digital asset to the blockchain account. The incoming parameters may include a number of the digital asset, a number of a sub-asset included with the digital asset being non-homogeneous certified, a unique random number used for signature deduplication, an identification of a blockchain account that issued the digital asset, an identification of a blockchain account that received the digital asset, a public key of a blockchain account that issued the digital asset, a signature of a blockchain account that issued the digital asset, an identification of an application to which the blockchain account that issued the digital asset belongs, and so forth.
Digital asset transfer interface: for providing functionality for transferring digital assets from a first blockchain account to a second blockchain account. The incoming parameters include a number of the digital asset, a number of sub-assets included for the non-homogeneous certified digital asset, a unique random number used for signature deduplication, an identification of the blockchain account currently holding the digital asset, an identification of the blockchain account receiving the digital asset, a public key of the blockchain account currently holding the digital asset, a signature of the blockchain account currently holding the digital asset, an identification of an application to which the blockchain account currently holding the digital asset belongs, and so on.
Digital asset query interface: for querying transaction information for a specified digital asset. The incoming parameters may include: a number of the digital asset, an identification of the application to which the digital asset belongs, etc.
Sub-asset query interface: for querying transaction information for a specified sub-asset in a specified digital asset. The incoming parameters may include: the number of the digital asset, the number of the sub-asset, the identification of the application to which the digital asset belongs, etc.
Digital asset query interface for accounts: for querying digital assets owned by a given blockchain account. The incoming parameters may include: identification information of the blockchain account, identification of an application to which the blockchain account belongs, and the like.
Based on the information processing method provided by the disclosure, the disclosure also provides an information processing device. The information processing apparatus will be described in detail below with reference to fig. 6.
FIG. 6 is a block diagram of an information processing apparatus according to an embodiment of the present disclosure
As shown in fig. 6, the information processing apparatus 600 of this embodiment may include a request adding module 610, a request acquiring module 620, and a request transmitting module 630. The information processing apparatus 600 may be disposed at the server side described above.
The request adding module 610 is configured to add a first transaction request including first transaction information to the buffer queue in response to receiving the first transaction information. In an embodiment, the request adding module 610 may be configured to perform the operation S210 described above, and is not described herein again.
The request obtaining module 620 is configured to obtain the unprocessed second transaction request from the cache queue in response to the blockchain network being in an idle state. In an embodiment, the request obtaining module 620 may be configured to perform the operation S220 described above, which is not described herein again.
The request sending module 630 is configured to send the second transaction request to the blockchain network, so as to store the second transaction information included in the second transaction request to the blockchain. In an embodiment, the request sending module 630 may be configured to perform the operation S230 described above, which is not described herein again.
According to an embodiment of the present disclosure, the information processing apparatus 600 may further include a state determination module and a state change module. The state determination module is used for determining that the state of the first transaction request is an unprocessed state after the first transaction request is added to the buffer queue. The state changing module is used for responding to the transaction information included in the second transaction request and storing the transaction information into the block chain, and changing the state of the second transaction request from the unprocessed state to the processed state.
According to an embodiment of the present disclosure, the information processing apparatus 600 may further include an information obtaining module, an information determining module, and an information transmitting module. The information acquisition module is used for responding to the updated blockchain, acquiring the transaction information stored in the updated blockchain and storing the acquired transaction information. The information determining module is used for responding to the received information inquiry request and determining target information matched with the information inquiry request in the stored transaction information. The information sending module is used for sending the target information to the block chain account which sends the information inquiry request.
According to an embodiment of the present disclosure, the information processing apparatus 600 may further include an information statistics module configured to count the stored transaction information and determine transaction data for each of the plurality of objects. The information determining module is used for determining transaction data matched with a target object in the information query request; the plurality of objects includes: blockchain accounts, digital assets.
According to an embodiment of the present disclosure, the digital asset includes a non-homogenous certification, and the plurality of objects further includes sub-assets included in the digital asset.
According to an embodiment of the present disclosure, the information obtaining module may include a format conversion sub-module and a storage sub-module. The format conversion submodule is used for converting the acquired transaction information into transaction information in a preset format. The storage submodule is used for storing the transaction information in the preset format obtained by conversion.
According to an embodiment of the present disclosure, the first transaction information includes a signature of the transaction request account and a public key of the transaction request account.
According to an embodiment of the present disclosure, the request adding module 610 may include a checking submodule and a first adding submodule. The verification submodule is used for responding to the received first transaction information and conducting integrity verification on the first transaction information. The first adding submodule is used for adding a first transaction request comprising first transaction information to the cache queue in response to the first transaction information passing the integrity check.
According to an embodiment of the present disclosure, the request adding module 610 may include an incentive determining submodule and a second adding submodule. The incentive determining sub-module is configured to determine incentive information for the first transaction information in response to receiving the first transaction information. The second adding submodule is used for adding the first transaction request comprising the first transaction information and the incentive information to the buffer queue.
In the technical scheme of the present disclosure, the processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the related users all conform to the regulations of the related laws and regulations, and do not violate the good custom of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
Fig. 7 shows a schematic block diagram of an example electronic device 700 that may be used to implement the information processing methods of embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 701 executes the respective methods and processes described above, such as an information processing method. For example, in some embodiments, the information processing method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the information processing method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the information processing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server may be a cloud Server, which is also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in a traditional physical host and a VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (21)

1. An information processing method comprising:
in response to receiving first transaction information, adding a first transaction request including the first transaction information to a cache queue;
obtaining an unprocessed second transaction request from the cache queue in response to the blockchain network being in an idle state; and
and sending the second transaction request to the blockchain network so as to store second transaction information included in the second transaction request to a blockchain.
2. The method of claim 1, further comprising:
after the first transaction request is added to the cache queue, determining that the state of the first transaction request is an unprocessed state; and
and changing the state of the second transaction request from the unprocessed state to the processed state in response to the transaction information included in the second transaction request being stored in the blockchain.
3. The method of claim 1, further comprising:
in response to the blockchain being updated, obtaining transaction information stored by the updated blockchain and storing the obtained transaction information;
in response to receiving an information query request, determining target information matched with the information query request in the stored transaction information; and
and sending the target information to the blockchain account which sends the information query request.
4. The method of claim 3, further comprising:
counting the stored transaction information, determining transaction data for each of a plurality of objects,
wherein, determining the target information matched with the information query request in the stored transaction information comprises: determining transaction data matched with a target object in the information query request; the plurality of objects includes: blockchain accounts, digital assets.
5. The method of claim 4, wherein the digital asset comprises a non-homogenous certification; the plurality of objects further comprises: the digital assets include sub-assets.
6. The method of claim 3, wherein the obtaining updated blockchain stored transaction information and storing the obtained transaction information in response to the blockchain being updated comprises:
converting the acquired transaction information into transaction information in a predetermined format; and
and storing the transaction information in the predetermined format obtained by conversion.
7. The method of claim 1, wherein the first transaction information includes a signature of a transaction requesting account and a public key of a transaction requesting account.
8. The method of claim 1, wherein the adding, in response to receiving first transaction information, a first transaction request including the first transaction information to a cache queue comprises:
in response to receiving the first transaction information, performing integrity check on the first transaction information; and
in response to the first transaction information passing the integrity check, adding a first transaction request including the first transaction information to the cache queue.
9. The method of claim 1, wherein the adding, in response to receiving first transaction information, a first transaction request including the first transaction information to a cache queue comprises:
in response to receiving the first transaction information, determining incentive information for the first transaction information; and
adding a first transaction request including the first transaction information and the incentive information to the cache queue.
10. An information processing apparatus comprising:
the request adding module is used for responding to the received first transaction information and adding a first transaction request comprising the first transaction information to a cache queue;
the request acquisition module is used for responding to the idle state of the block chain network and acquiring an unprocessed second transaction request from the cache queue; and
and the request sending module is used for sending the second transaction request to the blockchain network so as to store second transaction information included in the second transaction request to a blockchain.
11. The apparatus of claim 10, further comprising:
the state determination module is used for determining that the state of the first transaction request is an unprocessed state after the first transaction request is added to the cache queue; and
and the state changing module is used for responding to the transaction information included by the second transaction request and storing the transaction information into the block chain, and changing the state of the second transaction request from the unprocessed state to the processed state.
12. The apparatus of claim 10, further comprising:
the information acquisition module is used for responding to the updated block chain, acquiring the transaction information stored in the updated block chain and storing the acquired transaction information;
the information determining module is used for responding to the received information query request and determining target information matched with the information query request in the stored transaction information; and
and the information sending module is used for sending the target information to the block chain account which sends the information inquiry request.
13. The apparatus of claim 12, further comprising:
an information statistics module for counting the stored transaction information, determining transaction data for each of a plurality of objects,
wherein the information determination module is to: determining transaction data matched with a target object in the information query request; the plurality of objects includes: blockchain accounts, digital assets.
14. The apparatus of claim 13, wherein the digital asset comprises a non-homogenous certification; the plurality of objects further comprises: the digital assets include sub-assets.
15. The apparatus of claim 12, wherein the information acquisition module comprises:
the format conversion submodule is used for converting the acquired transaction information into transaction information in a preset format; and
and the storage submodule is used for storing the transaction information in the preset format obtained by conversion.
16. The apparatus of claim 10, wherein the first transaction information comprises a signature of a transaction requesting account and a public key of a transaction requesting account.
17. The apparatus of claim 10, wherein the request addition module comprises:
the verification submodule is used for responding to the received first transaction information and carrying out integrity verification on the first transaction information; and
and the first adding submodule is used for adding a first transaction request comprising the first transaction information to the cache queue in response to the first transaction information passing the integrity check.
18. The apparatus of claim 10, wherein the request addition module comprises:
an incentive determining sub-module for determining incentive information for the first transaction information in response to receiving the first transaction information; and
a second adding submodule, configured to add the first transaction request including the first transaction information and the incentive information to the cache queue.
19. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.
20. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of claims 1-9.
21. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 9.
CN202111628937.XA 2021-12-28 2021-12-28 Information processing method, device, electronic equipment and storage medium Pending CN114328731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111628937.XA CN114328731A (en) 2021-12-28 2021-12-28 Information processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111628937.XA CN114328731A (en) 2021-12-28 2021-12-28 Information processing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114328731A true CN114328731A (en) 2022-04-12

Family

ID=81015130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111628937.XA Pending CN114328731A (en) 2021-12-28 2021-12-28 Information processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114328731A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117455568A (en) * 2023-08-31 2024-01-26 广州市玄武无线科技股份有限公司 Transaction incentive resource transmitting method, device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117455568A (en) * 2023-08-31 2024-01-26 广州市玄武无线科技股份有限公司 Transaction incentive resource transmitting method, device, computer equipment and storage medium
CN117455568B (en) * 2023-08-31 2024-05-14 广州市玄武无线科技股份有限公司 Transaction incentive resource transmitting method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11899629B2 (en) Decentralized database associating public keys and communications addresses
US12093247B2 (en) Blockchain system and method
CN111344706B (en) Method and system for managing transactions on blockchain
CN110199302B (en) Event-driven blockchain workflow processing
US10536416B2 (en) Intelligent message queue management
WO2018076760A1 (en) Block chain-based transaction processing method, system, electronic device, and storage medium
US20210083856A1 (en) Improved hardware security module management
US20210304201A1 (en) Transaction verification method and apparatus, storage medium, and electronic device
WO2021217863A1 (en) Order identifier generation method and apparatus, server, and storage medium
US20220239496A1 (en) Blockchain consensus method, device and system
US12105735B2 (en) Asynchronous accounting method and apparatus for blockchain, medium and electronic device
US11038685B1 (en) Correcting blockchain transactions with cryptocurrency type mistakes
US20200120039A1 (en) Systems and methods for controlling access to broker resources
CN109002349B (en) Application program interaction method, implementation method, device, equipment and medium
US20210089517A1 (en) Communication device and communication system
US20230134162A1 (en) Method of processing information, electronic device, and storage medium
CN112511316A (en) Single sign-on access method and device, computer equipment and readable storage medium
CN113793139A (en) Payment abnormity processing method, processing device, storage medium and electronic equipment
CN114328731A (en) Information processing method, device, electronic equipment and storage medium
CN115619395A (en) Data processing method based on block chain and related equipment
WO2023207529A1 (en) Data processing method and apparatus, device, medium, and product
CN113592645B (en) Data verification method and device
US10430488B2 (en) Managing systems hosted at data centers
CN113689296A (en) Contract scheduling method and device for asynchronous trusted computing and electronic equipment
CN113179273A (en) Block chain side chain-based block header verification method and device and computer-readable storage medium

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