Virtual resource transaction method and device, electronic equipment and readable medium
By using the password machine signature and blockchain payment information of the transaction initiator account in virtual resource transactions, the inefficiency problem caused by multiple authorization confirmations in virtual resource transactions is solved, and automatic transfer and efficiency improvement are achieved.
Patent Information
- Application Number
- CN202310597247.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-24
- Publication Date
- 2024-11-26
AI Technical Summary
In virtual resource transactions, when faced with a large number of accounts, financial personnel need to make multiple authorization confirmations, which leads to a long payment process and reduces transaction efficiency.
By obtaining virtual resource payment information, responding to authorization verification results, using the password machine of the transaction initiator's account to sign, and sending the payment information and signature to the blockchain, automatic transfer is realized and manual authorization steps are reduced.
It reduces the workload and time-consuming in the payment process of virtual resource, improves transaction efficiency, and realizes the automatic transfer function of virtual resource.
Smart Images

Figure CN119027120A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a virtual resource transaction method, device, electronic device and readable medium. Background Art
[0002] When using virtual resources as a payment method for transactions such as work remuneration, it is usually necessary to use the blockchain key of the payment blockchain account to perform payment transfer operations.
[0003] However, during the payment process, financial personnel are usually required to use an offline password application to perform the payment authorization confirmation process.
[0004] However, when faced with the situation where virtual resources need to be paid to a large number of accounts, the process of financial personnel using wallet applications to authorize each payment is labor-intensive and time-consuming, which reduces the execution efficiency of virtual resource transactions. Summary of the invention
[0005] Based on the above technical problems, the present application provides a virtual resource transaction method, device, electronic device and readable medium to reduce the workload and time consumption in the virtual resource payment process and improve the execution efficiency of virtual resource transactions.
[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0007] According to one aspect of an embodiment of the present application, a virtual resource transaction method is provided, comprising:
[0008] Acquire virtual resource payment information, wherein the virtual resource payment information includes virtual resource payment information paid by a transaction initiator account to a resource receiver account;
[0009] In response to the virtual resource payment information, obtaining the authorization verification result of the transaction initiator account for the cryptographic machine;
[0010] According to the authorization verification result, the virtual resource payment information is signed by the transaction key contained in the cryptographic machine authorized by the transaction initiator account to obtain a transaction signature;
[0011] The virtual resource payment information and the transaction signature are sent to the blockchain to transfer the virtual resource from the transaction initiator account to the resource recipient account according to the virtual resource payment information.
[0012] According to one aspect of an embodiment of the present application, a virtual resource transaction device is provided, including:
[0013] A transaction acquisition module, used to acquire virtual resource payment information, wherein the virtual resource payment information includes virtual resource payment information paid by a transaction initiator account to a resource receiver account;
[0014] An authorization verification module, used to obtain the authorization verification result of the transaction initiator account for the cryptographic machine in response to the virtual resource payment information;
[0015] A transaction signature module, used to sign the virtual resource payment information according to the authorization verification result through the transaction key contained in the cryptographic machine authorized by the transaction initiator account to obtain a transaction signature;
[0016] The transaction on-chain module is used to send the virtual resource payment information and the transaction signature to the blockchain, so as to transfer the virtual resources from the transaction initiator account to the resource recipient account according to the virtual resource payment information.
[0017] In some embodiments of the present application, based on the above technical solution, the authorization verification module is also configured to: in response to the virtual resource payment information, perform account verification on the transaction initiator account; if the account verification is successful, obtain the key verification information of the transaction initiator account; based on the key verification information, perform cryptographic machine authorization verification on the transaction initiator account, and obtain the authorization verification result of the transaction initiator account for the cryptographic machine.
[0018] In some embodiments of the present application, based on the above technical solution, the virtual resource payment information is initiated by the client to the payment management service; the authorization verification module is also configured to: in response to the virtual resource payment information, perform account verification on the transaction initiator account logged in on the client through the payment management service; if the account verification is successful, send a signature request to the key management service through the payment management service, and the signature request includes the virtual resource payment information; obtain the key verification information of the transaction initiator account from the client through the key management service, wherein the key management service includes the key verification information corresponding to the transaction initiator account; perform authorization verification on the key verification information according to the key verification information in the key management service, and obtain the authorization verification result of the transaction initiator account for the cryptographic machine.
[0019] In some embodiments of the present application, based on the above technical solution, the transaction acquisition module is also configured to: receive a key generation request initiated by the client through the key management service; based on the key generation request, call the cryptographic machine through the key management service to generate a transaction key for the transaction initiator account; and obtain the key verification information of the transaction initiator account from the client through the key management service.
[0020] In some embodiments of the present application, based on the above technical solution, the transaction acquisition module is also configured to: obtain the access permission information of the transaction initiator account to the key management service through the key management service according to the key generation request; if the access permission information indicates that the transaction initiator account has access authorization to the key management service, then call the cryptographic machine through the key management service to generate the transaction key of the transaction initiator account.
[0021] In some embodiments of the present application, based on the above technical solution, the transaction acquisition module is also configured to: send a connection request to the key management service through the payment management service; in response to the connection request, obtain the authorization verification information corresponding to the transaction initiator account through the key management service; verify the authorization verification information according to the key verification information of the transaction initiator account in the key management service to obtain a key verification result; if the key verification passes, establish a connection between the payment management service and the key management service.
[0022] In some embodiments of the present application, based on the above technical solution, the connection request includes summary information of the payment management service, and the key management service also includes summary verification information of the payment management service; the transaction acquisition module is also configured to: verify the summary information through the summary verification information of the payment management service in the key management service to obtain a summary verification result; if both the key verification and the summary verification are passed, a connection between the payment management service and the key management service is established.
[0023] In some embodiments of the present application, based on the above technical solution, the payment management service includes a message agent for the key management service; the transaction acquisition module is also configured to: generate a connection request according to a key generation instruction and send the connection request to the key management service through the message agent; when sending the connection request, obtain summary information of the payment management service through the message agent and send it to the key management service together with the connection request.
[0024] In some embodiments of the present application, based on the above technical solution, the transaction acquisition module is also configured to: send a verification graphic code to the client that logs in to the transaction initiator account through the key management service; sign the verification graphic code according to the transaction key of the transaction initiator account by the client, generate authorization verification information, and send the authorization verification information to the key management service; receive the authorization verification information sent by the client through the key management service.
[0025] In some embodiments of the present application, based on the above technical solution, the transaction acquisition module is further configured to: sign the verification graphic code by the client using the transaction key of the transaction initiator account to obtain an authorization graphic code; identify the authorization graphic code by the online client application of the key management service included on the client to obtain authorization verification information; and send the authorization verification information to the key management service by the online client application on the client.
[0026] In some embodiments of the present application, based on the above technical solution, the virtual resource payment information includes multiple resource recipient accounts; the transaction signature module is further configured to: generate a transaction request between the transaction initiator account and each resource recipient account according to the virtual resource payment information, and obtain multiple transaction requests; sign each transaction request with the transaction key of the transaction initiator account in the cryptographic machine authorized by the transaction initiator account, and obtain a transaction signature for each transaction request;
[0027] The transaction chain module is also configured to: package each transaction request and the corresponding transaction signature into a blockchain transaction to obtain multiple blockchain transactions, wherein the blockchain transaction includes the transaction initiator account, the resource recipient account and virtual resource information; send the multiple blockchain transactions to the blockchain to chain the multiple blockchain transactions in the blockchain.
[0028] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute a method for trading virtual resources as in the above technical solution by executing the executable instructions.
[0029] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the trading method of virtual resources in the above technical solution is implemented.
[0030] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the transaction method of virtual resources provided in the above various optional implementations.
[0031] In the embodiment of the present application, when making a virtual resource payment, the transaction initiator first confirms the authorization verification result of the cryptographic machine by the transaction initiator. After confirming that the cryptographic machine has obtained the authorization of the transaction initiator's account, the transaction key in the transaction cryptographic machine is used to sign the virtual resource payment information, and then the virtual resource payment information and the obtained transaction signature are sent to the blockchain for chaining. The automatic transfer function of virtual resources is realized by combining the online service of the cryptographic machine with the virtual resource payment process, and there is no need to perform a separate manual authorization process for each transaction, which reduces the workload and time consumption in the virtual resource payment process and improves the execution efficiency of virtual resource transactions.
[0032] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0034] In the attached picture:
[0035] Figure 1 The system architecture of a transaction solution applied to virtual resources according to an embodiment of the present application.
[0036] Figure 2 This is a schematic diagram of a blockchain network in an embodiment of the present application.
[0037] Figure 3 This is a schematic diagram of blocks in a blockchain network in an embodiment of the present application.
[0038] Figure 4 The present invention is a flowchart of a method for trading virtual resources according to an embodiment of the present application.
[0039] Figure 5 The present invention is a flowchart of a method for trading virtual resources according to an embodiment of the present application.
[0040] Figure 6 This is an overall flow chart of the financial system paying virtual resources in an embodiment of the present application.
[0041] Figure 7 The present invention is a flowchart of a method for trading virtual resources according to an embodiment of the present application.
[0042] Figure 8 This is a schematic flowchart of deploying a key management server and a cryptographic machine in an embodiment of the present application.
[0043] Fig. 9 This is a schematic flowchart of deploying a key management server and a cryptographic machine in an embodiment of the present application.
[0044] Fig.10 The present invention is a flowchart of a method for trading virtual resources according to an embodiment of the present application.
[0045] Fig.11 This is a schematic diagram of the connection process between the payment management service and the key management service in an embodiment of the present application.
[0046] Fig.12 The block diagram schematically shows the composition of the virtual resource transaction device in the embodiment of the present application.
[0047] Fig.13 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0048] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0049] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0050] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0051] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0052] It should be understood that the scheme of the present application can be applied to the scenario of virtual resource transactions, especially in the scenario where the holder of virtual resources pays virtual resources to one or more recipients, such as salary payment, reward issuance or account setting and resource delivery. In such scenarios, the holder of virtual resources or the payer usually needs to pay virtual resources to the accounts of one or more recipients, and when paying to multiple recipients, the amount of virtual resources paid to different recipients may also be different. In the scheme of the present application, the holder of virtual resources, that is, the payer, can make payments through an online management system, by entering the relevant content of the payment transaction to be completed in the management system, such as entering the account address of the recipient and the amount of virtual resources to be paid, and the management system calls the cryptographic machine authorized by the resource holder to sign the payment and then chain it. The resource holder only needs to complete the configuration process of the cryptographic machine in advance, and can directly execute the payment process without the need for the payer of the virtual resources to sign the process separately when paying.
[0053] A cryptographic machine is a device, service or virtual device used to manage and use keys. When using a cryptographic machine, you need to authorize the machine first to allow it to generate and save the key of the authorized party. When the user needs to use the key, the cryptographic machine calls the cryptographic machine, and the cryptographic machine uses the key it saves to perform operations such as signing, without the user having to provide a separate offline key.
[0054] Based on this, the technical solution of the embodiment of the present application proposes a trading solution for virtual resources. Specifically, Figure 1 As shown, the system architecture of the transaction scheme applied to virtual resources according to the embodiment of the present application may include a terminal device 110, a payment server 120, a key server 130 and a blockchain server 140. The terminal device 110 may include a smart phone, a tablet computer, a laptop computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc. The payment server 120, the key server 130 and the blockchain server 140 may be servers that provide various services, which may be independent physical servers, or server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network) and big data and artificial intelligence platforms. There may be various types of communication media for the communication link between the terminal device 110, the payment server 120, the key server 130 and the blockchain server 140, such as a wired communication link or a wireless communication link.
[0055] According to the implementation needs, the system architecture in the embodiment of the present application can have any number of terminal devices and servers. For example, the payment server 120 and the key server 130 can be a server group composed of multiple server devices. In addition, the technical solution provided in the embodiment of the present application can be applied to the payment server 120 and the key server 130, or can be implemented by the terminal device 110, the payment server 120, the key server 130 and the blockchain server 140, and the present application does not make any special restrictions on this.
[0056] In one embodiment of the present application, the payment server 120 obtains virtual resource payment information from the terminal device 110 , where the virtual resource payment information includes virtual resource payment information paid by the transaction initiator account to the resource recipient account.
[0057] The payment server 120 will respond to the virtual resource payment information and obtain the authorization verification result of the transaction initiator account for the cryptographic machine. The cryptographic machine is usually deployed in the key server 130 or the key server 130 itself. After the authorization verification is passed, the payment server 120 signs the virtual resource payment information with the transaction key of the transaction initiator account in the key server 130 to obtain the transaction signature. Subsequently, the payment server 120 sends the virtual resource payment information and the transaction signature to the blockchain server 140. The blockchain server 140 puts the transaction on the chain according to the virtual resource payment information and the transaction signature, thereby executing the payment process of transferring the virtual resources from the transaction initiator account to the resource recipient account.
[0058] Specifically, blockchain is a blockchain that provides virtual resource transaction services. It is deployed with smart contracts for managing virtual resources, such as smart contracts for executing financial-related business management to register financial entry (registration) personnel, labor remuneration registration, labor remuneration approval and other functions. The financial registrant enters financial remuneration information through smart contracts. The financial smart contract sets the address of the contract manager (i.e., the financial manager) as the address corresponding to the account key. The financial manager can use smart contracts to set financial registration personnel, approve labor remuneration orders, etc.
[0059] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks (i.e. blocks) generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain is maintained by the nodes in the blockchain network. For example, in Figure 2The blockchain network shown may include multiple nodes 201, and the multiple nodes 201 may be the various clients forming the blockchain network. Each node 201 may receive input information during normal operation, and maintain the shared data in the blockchain network based on the received input information. In order to ensure the information intercommunication within the blockchain network, there may be an information connection between each node in the blockchain network, and information may be transmitted between nodes through the above information connection. For example, when any node in the blockchain network receives input information, other nodes in the blockchain network obtain the input information according to the consensus algorithm, and store the input information as shared data, so that the data stored on all nodes in the blockchain network are consistent.
[0060] Each node in the blockchain network has a corresponding node identifier, and each node in the blockchain network can store the node identifiers of other nodes, so that the generated blocks can be broadcast to other nodes in the blockchain network according to the node identifiers of other nodes. A node identifier list can be maintained in each node, and the node name and node identifier are stored in the node identifier list accordingly. The node identifier can be an IP (Internet Protocol, a protocol for interconnecting networks) address or any other information that can be used to identify the node.
[0061] Each node in the blockchain network stores the same blockchain. The blockchain consists of multiple blocks, see Figure 3 As shown, the blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores input information feature values, version numbers, timestamps, and difficulty values, and the block body stores input information. The next block of the genesis block uses the genesis block as its parent block. The next block also includes a block header and a block body. The block header stores input information feature values of the current block, feature values of the block header of the parent block, version numbers, timestamps, and difficulty values, and so on. This ensures that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, thereby ensuring the security of the input information in the block.
[0062] The virtual resource payment information and transaction signature sent by the payment server 120 to the blockchain server 140 may be located at Figure 3 in the block body shown.
[0063] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0064] Figure 4 A flowchart of a virtual resource transaction method according to an embodiment of the present application is shown. The virtual resource transaction method can be executed by a device with a computing and processing function, such as a server. Figure 4 As shown, the method for processing virtual resources at least includes steps S410 to S440, which are described in detail as follows:
[0065] Step S410, obtaining virtual resource payment information, wherein the virtual resource payment information includes virtual resource payment information paid by the transaction initiator account to the resource receiver account.
[0066] Virtual resource payment information is usually a transaction generated by the client to request payment of virtual resources to the resource recipient account. The virtual resource payment information contains payment information for virtual resources from the transaction initiator account to the resource recipient account. The transaction initiator account and the resource recipient account are usually the account addresses of both parties in the blockchain, or they can be accounts in the payment management system, but each account in the payment management system will be uniquely associated with the address of a blockchain account. It is understandable that the amount of virtual resources to be paid in the virtual resource payment information can be an agreed fixed value, or it can be directly included in the virtual resource payment information. In a specific embodiment, such as an embodiment in which virtual resources are used as labor remuneration, the manager of the transaction initiator account will log in to the financial system and enter the payment information through the front-end interface of the financial system, such as which accounts to pay and how much virtual resources to pay. The front-end interface of the financial system forwards the payment information to the back-end system, and the back-end system generates virtual resource payment information based on the entered payment information.
[0067] Step S420, in response to the virtual resource payment information, obtaining the authorization verification result of the transaction initiator account for the cryptographic machine.
[0068] After obtaining the virtual resource payment information, the financial system used for payment will respond to the virtual resource payment information and obtain the authorization verification result of the transaction initiator's account for the cryptographic machine. The virtual resource payment information usually does not contain the transaction initiator's authorization of the cryptographic machine or related information. The process of the transaction initiator authorizing the cryptographic machine to use its key can be completed separately in advance after the cryptographic machine is connected to the financial system. The financial system determines that the transaction initiator's account has authorized the use of the cryptographic machine based on the relevant authorization records recorded in the local storage, and then executes the authorization verification process. In the authorization verification process, the verification certificate provided by the transaction initiator is obtained, and the transaction initiator is required to provide information such as a password, verification information or key as a certificate, and the certificate provided by the transaction initiator is verified based on the locally stored verification information. The authorization verification result is determined based on the verification result.
[0069] Step S430: According to the authorization verification result, the virtual resource payment information is signed by the transaction key contained in the cryptographic machine authorized by the transaction initiator account to obtain a transaction signature.
[0070] If the authorization verification result is passed, it means that the transaction initiator is indeed the owner of the account and has the correct authorization to use the cryptographic machine. Then the financial system can sign the virtual resource payment information through the cryptographic machine authorized by the transaction initiator's account. The transaction key of the transaction initiator's account will be saved in the cryptographic machine, and the cryptographic machine can directly use the transaction key for signing. It can be understood that the transaction initiator usually holds an offline key, and the effect of signing with the offline key and the transaction key in the cryptographic machine is the same, which can prove that the virtual resource payment information is a legal transaction confirmed by the correct transaction initiator.
[0071] Step S440: sending the virtual resource payment information and the transaction signature to the blockchain to transfer the virtual resources from the transaction initiator account to the resource recipient account according to the virtual resource payment information.
[0072] The financial system sends the virtual resource payment information and transaction signature to the blockchain. Before sending, the virtual resource payment information and transaction signature will be packaged into a blockchain transaction according to the blockchain for easy on-chaining. After verifying the signature and consensus, the blockchain will upload the virtual resource payment information and transaction signature to the chain, thereby transferring the virtual resources from the transaction initiator's account to the resource recipient's account according to the virtual resource payment information.
[0073] In the embodiment of the present application, when making a virtual resource payment, the transaction initiator first confirms the authorization verification result of the cryptographic machine by the transaction initiator. After confirming that the cryptographic machine has obtained the authorization of the transaction initiator's account, the transaction key in the transaction cryptographic machine is used to sign the virtual resource payment information, and then the virtual resource payment information and the obtained transaction signature are sent to the blockchain for chaining. The automatic transfer function of virtual resources is realized by combining the online service of the cryptographic machine with the virtual resource payment process, and there is no need to perform a separate manual authorization process for each transaction, which reduces the workload and time consumption in the virtual resource payment process and improves the execution efficiency of virtual resource transactions.
[0074] In some optional embodiments, the virtual resource payment information includes multiple resource receiver accounts. In the process of signing the virtual resource payment information with the transaction key of the transaction initiator account in the cryptographic machine authorized by the transaction initiator account according to the authorization verification result, the financial system will generate a transaction request between the transaction initiator account and each resource receiver account according to the virtual resource payment information, and obtain multiple transaction requests. That is, the one-to-many transaction between a transaction initiator account and multiple resource receiver accounts is split into a one-to-one transaction between a transaction initiator account and a resource receiver account. Subsequently, the financial system signs each transaction request with the transaction key of the transaction initiator account in the cryptographic machine authorized by the transaction initiator account, and obtains a transaction signature for each transaction request. In the process of sending the virtual resource payment information and the transaction signature to the blockchain to transfer the virtual resources from the transaction initiator account to the resource receiver account according to the virtual resource payment information, the financial system will package each transaction request with the corresponding transaction signature as a blockchain transaction, and obtain multiple blockchain transactions, which include the transaction initiator account, the resource receiver account and the virtual resource information, and then send the multiple blockchain transactions to the blockchain to chain the multiple blockchain transactions in the blockchain. In the case of submitting a one-to-many payment transaction at one time, it is split into one-to-one transactions, and then each transaction is signed, so that when the transaction is submitted to the blockchain, it can be directly traded without the need for re-splitting and verification, which is beneficial to the execution efficiency of the transaction process in the blockchain.
[0075] In the embodiments of the present application, it is also proposed to Figure 4 Other embodiments that refine the technical solution of the embodiment shown in the figure are as follows Figure 5 As shown, in a virtual resource transaction method of an embodiment of the present application, the virtual resource transaction method may include the following steps:
[0076] Step S510, obtaining virtual resource payment information, wherein the virtual resource payment information includes virtual resource payment information paid by the transaction initiator account to the resource recipient account.
[0077] Optionally, the implementation details of step S510 are the same as Figure 4 The step S410 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0078] Step S520: In response to the virtual resource payment information, account verification is performed on the transaction initiator account.
[0079] Account verification is the identity verification of the account holder of the transaction initiator account. In this verification, the client initiating the virtual resource payment is usually required to provide relevant account identity proof, such as a password, verification information or token, so as to verify that the user currently initiating the virtual resource payment is indeed the holder of the transaction initiator account.
[0080] If the account verification is successful, step S530 is executed. If the account verification fails, the payment process is directly stopped and a prompt message is sent to the client that initiated the payment.
[0081] Step S530, obtaining key verification information of the transaction initiator account.
[0082] The key verification information is verification information used to confirm whether the transaction initiator's account is authorized by the cryptographic machine. When the financial system is connected to the cryptographic machine, the financial personnel will be required to provide the offline key of the transaction initiator's account as a verification credential. When submitting the virtual resource payment information, the financial personnel can submit the relevant verification information of the offline key of the transaction initiator's account as the key verification information, or the financial system will initiate a request to the client currently logged in to the financial system after the account is verified to request the relevant verification information. It can be understood that both the account verification and key verification information are required for the virtual resource payment information, that is, no matter how many payments need to be executed in the virtual resource payment information, the process of account verification and obtaining key verification information only needs to be performed once to complete the verification process.
[0083] Step S540: Perform cryptographic machine authorization verification on the transaction initiator account according to the key verification information to obtain the authorization verification result of the transaction initiator account on the cryptographic machine.
[0084] After obtaining the key verification information, the financial system performs a cryptographic machine authorization verification on the transaction initiator account. Cryptographic machine authorization verification is used to verify whether the transaction initiator account authorizes the use of the cryptographic machine to manage its transaction key. If not authorized, the payment initiator needs to provide the transaction key when signing. If the transaction initiator account authorizes the cryptographic machine to manage its transaction key, the financial system can use the cryptographic machine to sign the transaction.
[0085] Step S550: According to the authorization verification result, the virtual resource payment information is signed by the transaction key contained in the cryptographic machine authorized by the transaction initiator account to obtain a transaction signature.
[0086] Optionally, the implementation details of step S550 are the same as Figure 4 The step S430 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0087] Step S560: Send the virtual resource payment information and the transaction signature to the blockchain to transfer the virtual resources from the transaction initiator account to the resource recipient account according to the virtual resource payment information.
[0088] Optionally, the implementation details of step S560 are the same as Figure 4 The step S440 shown in FIG. 1 is consistent with the step S440 shown in FIG. 1 and will not be
[0089] In the embodiment of the present application, when making a virtual resource payment, the transaction initiator first confirms the authorization verification result of the cryptographic machine by the transaction initiator. After confirming that the cryptographic machine has obtained the authorization of the transaction initiator's account, the transaction key in the transaction cryptographic machine is used to sign the virtual resource payment information, and then the virtual resource payment information and the obtained transaction signature are sent to the blockchain for chaining. The automatic transfer function of virtual resources is realized by combining the online service of the cryptographic machine with the virtual resource payment process, and there is no need to perform a separate manual authorization process for each transaction, which reduces the workload and time consumption in the virtual resource payment process and improves the execution efficiency of virtual resource transactions.
[0090] In some optional embodiments, the virtual resource payment information includes multiple resource receiver accounts. In the process of signing the virtual resource payment information with the transaction key of the transaction initiator account in the cryptographic machine authorized by the transaction initiator account according to the authorization verification result, the financial system will generate a transaction request between the transaction initiator account and each resource receiver account according to the virtual resource payment information, and obtain multiple transaction requests. That is, the one-to-many transaction between a transaction initiator account and multiple resource receiver accounts is split into a one-to-one transaction between a transaction initiator account and a resource receiver account. Subsequently, the financial system signs each transaction request with the transaction key of the transaction initiator account in the cryptographic machine authorized by the transaction initiator account, and obtains a transaction signature for each transaction request. In the process of sending the virtual resource payment information and the transaction signature to the blockchain to transfer the virtual resources from the transaction initiator account to the resource receiver account according to the virtual resource payment information, the financial system will package each transaction request with the corresponding transaction signature as a blockchain transaction, and obtain multiple blockchain transactions, which include the transaction initiator account, the resource receiver account and the virtual resource information, and then send the multiple blockchain transactions to the blockchain to chain the multiple blockchain transactions in the blockchain. In the case of submitting a one-to-many payment transaction at one time, it is split into one-to-one transactions, and then each transaction is signed, so that when the transaction is submitted to the blockchain, it can be directly traded without the need for re-splitting and verification, which is beneficial to the execution efficiency of the transaction process in the blockchain.
[0091] In some optional embodiments, the virtual resource payment information is initiated by the client to the payment management service. In the process of performing account verification on the transaction initiator account in response to the virtual resource payment information, it specifically includes performing account verification on the transaction initiator account logged in on the client through the payment management service in response to the virtual resource payment information. When the account verification is successful and the key verification information of the transaction initiator account is obtained, if the account verification is successful, the financial system will send a signature request to the key management service through the payment management service, and the signature request includes the virtual resource payment information. Then, the key verification information of the transaction initiator account is obtained from the client through the key management service, wherein the key management service includes the key verification information corresponding to the transaction initiator account; in the process of performing cryptographic machine authorization verification on the transaction initiator account according to the key verification information and obtaining the authorization verification result of the transaction initiator account for the cryptographic machine, the financial system performs authorization verification on the key verification information according to the key verification information in the key management service and obtains the authorization verification result of the transaction initiator account for the cryptographic machine. Please refer to Figure 6 , Figure 6 This is an overall flow chart of the financial system paying virtual resources in the embodiment of the present application. Figure 6 As shown in the figure, the financial system generally includes a financial website, a payment management server, a key management server and a cryptographic machine. The payment management service is deployed in the payment management server, and the key management service is deployed in the key management server. The financial staff first logs in to the financial website and enters the payment information of the virtual resources. After obtaining the payment information, the payment management server first obtains the account authorization information of the account logged in by the financial staff, so as to determine that the account belongs to the financial staff. Then, the payment management server requests a signature from the key management server. The key management server obtains the authorization information of the payment account for the cryptographic machine to determine that the account can use the cryptographic machine to sign. Then the key management system signs through the cryptographic machine and returns the signature result to the payment management server. The payment management server sends the payment transaction and the transaction signature to the blockchain for chaining. Through the two verifications of account verification and key verification, it can be ensured that the applicant for payment and the account itself have legal authorization to sign with the cryptographic machine, which is conducive to improving the security of the solution.
[0092] In the embodiments of the present application, it is also proposed to Figure 5 Other embodiments that refine the technical solution of the embodiment shown in the figure are as follows Figure 7 As shown, in a virtual resource transaction method of an embodiment of the present application, the virtual resource transaction method may include the following steps:
[0093] Step S710, receiving a key generation request initiated by the client through the key management service;
[0094] Step S720, according to the key generation request, calling the cryptographic machine through the key management service to generate a transaction key for the transaction initiator account;
[0095] Step S730: Obtain key verification information of the transaction initiator account from the client through the key management service.
[0096] When deploying the financial system, the key management server and the cryptographic machine will be deployed separately first, and then the connection between the two will be established. Figure 8 and Fig. 9 , Figure 8 and Fig. 9 This is a schematic flow chart of deploying a key management server and a cryptographic machine in an embodiment of the present application. Figure 8 As shown in the figure, the server operation and maintenance personnel will deploy the key management server and the cipher machine in the financial system computer room respectively, and then connect the two. This connection usually refers to communication connection, that is, wired or wireless communication connection, but it does not mean that the key management server can call the cipher machine to perform operations. Fig. 9 As shown, the financial staff will log in to the user system in the financial system through the client, and then receive the key generation request initiated by the client through the key management service. According to the key generation request, the financial system calls the cryptographic machine through the key management service to generate the transaction key of the transaction initiator's account, and then obtains the key verification information of the transaction initiator's account from the client through the key management service. The key verification information can be an offline key address or other types of key information, such as the signature information obtained by signing the specified information with the offline key. By generating the key by the cryptographic machine and providing the key verification information by the client, only the financial staff who apply to generate the key can operate the cryptographic machine, while the operation and maintenance personnel cannot use the cryptographic machine because they do not have the key verification information, thereby improving the key security.
[0097] Step S740, obtaining virtual resource payment information, wherein the virtual resource payment information includes virtual resource payment information paid by the transaction initiator account to the resource recipient account.
[0098] Optionally, the implementation details of step S740 are the same as Figure 4 The step S410 shown in FIG. 1 is consistent with the step S410 shown in FIG. 1 and will not be
[0099] Step S750: In response to the virtual resource payment information, account verification is performed on the transaction initiator account.
[0100] Optionally, the implementation details of step S750 are the same as Figure 5 The step S520 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0101] If the account verification is successful, step S760 is executed. If the account verification fails, the payment process will be directly stopped and a prompt message will be sent to the client that initiated the payment.
[0102] Step S760, obtaining key verification information of the transaction initiator account.
[0103] Optionally, the implementation details of step S760 are the same as Figure 5 The step S530 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0104] Step S770: Perform cryptographic machine authorization verification on the transaction initiator account according to the key verification information to obtain the authorization verification result of the transaction initiator account on the cryptographic machine.
[0105] Optionally, the implementation details of step S770 are the same as Figure 5 The step S540 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0106] Step S780: Based on the authorization verification result, the virtual resource payment information is signed by the transaction key contained in the cryptographic machine authorized by the transaction initiator account to obtain a transaction signature.
[0107] Optionally, the implementation details of step S780 are the same as Figure 4 The step S430 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0108] Step S790: Send the virtual resource payment information and the transaction signature to the blockchain to transfer the virtual resources from the transaction initiator account to the resource recipient account according to the virtual resource payment information.
[0109] Optionally, the implementation details of step S790 are the same as Figure 4 The step S440 shown in FIG. 1 is consistent with the step S440 shown in FIG. 1 and will not be
[0110] In the embodiment of the present application, when making a virtual resource payment, the transaction initiator first confirms the authorization verification result of the cryptographic machine by the transaction initiator. After confirming that the cryptographic machine has obtained the authorization of the transaction initiator's account, the transaction key in the transaction cryptographic machine is used to sign the virtual resource payment information, and then the virtual resource payment information and the obtained transaction signature are sent to the blockchain for chaining. The automatic transfer function of virtual resources is realized by combining the online service of the cryptographic machine with the virtual resource payment process, and there is no need to perform a separate manual authorization process for each transaction, which reduces the workload and time consumption in the virtual resource payment process and improves the execution efficiency of virtual resource transactions.
[0111] In some optional embodiments, in the process of generating the transaction key of the transaction initiator account through the key management service by calling the cryptographic machine according to the key generation request, the financial system will obtain the access permission information of the transaction initiator account to the key management service through the key management service according to the key generation request. If the access permission information indicates that the transaction initiator account has the access authorization to the key management service, the cryptographic machine is called by the key management service to generate the transaction key of the transaction initiator account. The key management service access permission information is used to confirm that the transaction initiator account has the access authorization to the key management service, thereby preventing accounts without permission from generating keys through the key management service, which is conducive to improving the security of the solution.
[0112] In some optional embodiments, the virtual resource payment information includes multiple resource receiver accounts. In the process of signing the virtual resource payment information with the transaction key of the transaction initiator account in the cryptographic machine authorized by the transaction initiator account according to the authorization verification result, the financial system will generate a transaction request between the transaction initiator account and each resource receiver account according to the virtual resource payment information, and obtain multiple transaction requests. That is, the one-to-many transaction between a transaction initiator account and multiple resource receiver accounts is split into a one-to-one transaction between a transaction initiator account and a resource receiver account. Subsequently, the financial system signs each transaction request with the transaction key of the transaction initiator account in the cryptographic machine authorized by the transaction initiator account, and obtains a transaction signature for each transaction request. In the process of sending the virtual resource payment information and the transaction signature to the blockchain to transfer the virtual resources from the transaction initiator account to the resource receiver account according to the virtual resource payment information, the financial system will package each transaction request with the corresponding transaction signature as a blockchain transaction, and obtain multiple blockchain transactions, which include the transaction initiator account, the resource receiver account and the virtual resource information, and then send the multiple blockchain transactions to the blockchain to chain the multiple blockchain transactions in the blockchain. In the case of submitting a one-to-many payment transaction at one time, it is split into one-to-one transactions, and then each transaction is signed, so that when the transaction is submitted to the blockchain, it can be directly traded without the need for re-splitting and verification, which is beneficial to the execution efficiency of the transaction process in the blockchain.
[0113] In the embodiments of the present application, it is also proposed to Figure 5 Other embodiments that refine the technical solution of the embodiment shown in the figure are as follows Fig.10 As shown, in a virtual resource transaction device of an embodiment of the present application, the virtual resource transaction device may include the following steps:
[0114] Step S1010: Send a connection request to the key management service through the payment management service.
[0115] The operation and maintenance personnel will deploy the backend server of the financial system, which includes the payment management service, and the key management service runs on the server of the key management system. The payment management service initiates a connection request to the key management service, thereby connecting the two.
[0116] Step S1020: In response to the connection request, obtaining authorization verification information corresponding to the transaction initiator account through the key management service.
[0117] Step S1030: verify the authorization verification information according to the key verification information of the transaction initiator account in the key management service to obtain a key verification result.
[0118] If the key verification passes, step S1040 is executed, otherwise, the connection process between the payment management service and the key management service is stopped.
[0119] Step S1040: If the key verification is successful, a connection between the payment management service and the key management service is established.
[0120] In the process of establishing a connection between the payment management service and the key management service, the key management service verifies the authorization verification information according to the key verification information of the transaction initiator account stored therein. The key verification information is obtained from the client during the process of establishing a connection between the key management service and the cryptographic machine. In some embodiments, the key verification information is the offline key information or signature uploaded by the financial personnel through the client and the address of the online payment application and other information.
[0121] Step S1050, obtaining virtual resource payment information, wherein the virtual resource payment information includes virtual resource payment information paid by the transaction initiator account to the resource recipient account.
[0122] Optionally, the implementation details of step S1050 are the same as Figure 4 The step S410 shown in FIG. 1 is consistent with the step S410 shown in FIG. 1 and will not be
[0123] Step S1060: In response to the virtual resource payment information, account verification is performed on the transaction initiator account.
[0124] Optionally, the implementation details of step S1060 are the same as Figure 5 The step S520 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0125] If the account verification is successful, step S1070 is executed. If the account verification fails, the payment process is directly stopped and a prompt message is sent to the client that initiated the payment.
[0126] Step S1070, obtaining key verification information of the transaction initiator account.
[0127] Optionally, the implementation details of step S1070 are the same as Figure 5 The step S530 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0128] Step S1080, based on the key verification information, perform cryptographic machine authorization verification on the transaction initiator account to obtain the authorization verification result of the transaction initiator account on the cryptographic machine.
[0129] Optionally, the implementation details of step S1080 are the same as Figure 5 The step S540 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0130] Step S1090: According to the authorization verification result, the virtual resource payment information is signed by the transaction key contained in the cryptographic machine authorized by the transaction initiator account to obtain a transaction signature.
[0131] Optionally, the implementation details of step S1090 are the same as Figure 4 The step S430 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.
[0132] Step S1091, sending the virtual resource payment information and the transaction signature to the blockchain to transfer the virtual resources from the transaction initiator account to the resource recipient account according to the virtual resource payment information.
[0133] Optionally, the implementation details of step S1091 are the same as Figure 4 The step S440 shown in FIG. 1 is consistent with the step S440 shown in FIG. 1 and will not be
[0134] In the embodiment of the present application, when making a virtual resource payment, the transaction initiator first confirms the authorization verification result of the cryptographic machine by the transaction initiator. After confirming that the cryptographic machine has obtained the authorization of the transaction initiator's account, the transaction key in the transaction cryptographic machine is used to sign the virtual resource payment information, and then the virtual resource payment information and the obtained transaction signature are sent to the blockchain for chaining. The automatic transfer function of virtual resources is realized by combining the online service of the cryptographic machine with the virtual resource payment process, and there is no need to perform a separate manual authorization process for each transaction, which reduces the workload and time consumption in the virtual resource payment process and improves the execution efficiency of virtual resource transactions.
[0135] In some optional embodiments, the connection request includes summary information of the payment management service, and the key management service also includes summary verification information of the payment management service; in the process of establishing a connection between the payment management service and the key management service, the financial system verifies the summary information through the summary verification information of the payment management service in the key management service to obtain a summary verification result. If both the key verification and the summary verification pass, a connection between the payment management service and the key management service is established. The summary verification information of the payment management service is the MD5 information of the payment management service uploaded by the client. The summary information is the MD5 information of the payment management service currently running on the payment management server collected when the connection request is generated. If these two MD5 information match, it means that the payment management service predetermined by the financial personnel is running on the payment management server, thereby avoiding the generation of keys for disguised offensive services and improving security.
[0136] In some optional embodiments, the payment management service includes a message agent for the key management service; in the process of sending a connection request to the key management service through the payment management service, the financial system generates a connection request according to the key generation instruction and sends the connection request to the key management service through the message agent, and when sending the connection request, the summary information of the payment management service is obtained through the message agent and sent to the key management service together with the connection request. In this embodiment, the message agent of the key management service is integrated in the payment management service. The message agent is used to communicate with the key management service. The summary information of the payment management service is collected and sent by the message agent of the key management service when sending the connection request, thereby preventing the summary information from being forged and improving security.
[0137] In some optional embodiments, in response to a connection request, in the process of obtaining authorization verification information corresponding to the transaction initiator account through the key management service, the financial system sends a verification graphic code to the client that logs in to the transaction initiator account through the key management service, and then the client signs the verification graphic code according to the transaction key pair of the transaction initiator account, generates authorization verification information, and sends the authorization verification information to the key management service, and then receives the authorization verification information sent by the client through the key management service. The key management service displays the graphic code, and then the client signs the verification graphic code according to the transaction key pair of the transaction initiator account, so that it can be verified whether the current user of the client has an offline key, which is conducive to preventing the client from being impersonated.
[0138] In some optional embodiments, in the process of signing the verification graphic code by the client using the transaction key of the transaction initiator account to generate authorization verification information and sending the authorization verification information to the key management service, the financial system signs the verification graphic code by the client using the transaction key of the transaction initiator account to obtain the authorization graphic code, and then identifies the authorization graphic code through the online client application of the key management service included on the client to obtain the authorization verification information, and then sends the authorization verification information to the key management service through the online client application on the client. Fig.11 , Fig.11 Schematic diagram of the connection process between the payment management service and the key management service in the embodiment of the present application. Fig.11 As shown in the figure, after the payment management service is deployed, the payment management service requests a connection from the key management service, and the key management service displays the verification graphic code to the client. The client signs the verification graphic code through the offline key application to obtain the authorization graphic code, and then identifies the authorization graphic code through the online client application to obtain the authorization verification information, which is then sent to the payment management system to complete the connection process. By signing with the offline transaction key and uploading the authorization verification information through the online client application, it is possible to prevent the authorization verification information from being tampered with during the communication process, thereby improving security.
[0139] In some optional embodiments, the virtual resource payment information includes multiple resource receiver accounts. In the process of signing the virtual resource payment information with the transaction key of the transaction initiator account in the cryptographic machine authorized by the transaction initiator account according to the authorization verification result, the financial system will generate a transaction request between the transaction initiator account and each resource receiver account according to the virtual resource payment information, and obtain multiple transaction requests. That is, the one-to-many transaction between a transaction initiator account and multiple resource receiver accounts is split into a one-to-one transaction between a transaction initiator account and a resource receiver account. Subsequently, the financial system signs each transaction request with the transaction key of the transaction initiator account in the cryptographic machine authorized by the transaction initiator account, and obtains a transaction signature for each transaction request. In the process of sending the virtual resource payment information and the transaction signature to the blockchain to transfer the virtual resources from the transaction initiator account to the resource receiver account according to the virtual resource payment information, the financial system will package each transaction request with the corresponding transaction signature as a blockchain transaction, and obtain multiple blockchain transactions, which include the transaction initiator account, the resource receiver account and the virtual resource information, and then send the multiple blockchain transactions to the blockchain to chain the multiple blockchain transactions in the blockchain. In the case of submitting a one-to-many payment transaction at one time, it is split into one-to-one transactions, and then each transaction is signed, so that when the transaction is submitted to the blockchain, it can be directly traded without the need for re-splitting and verification, which is beneficial to the execution efficiency of the transaction process in the blockchain.
[0140] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0141] The following introduces the device implementation of the present application, which can be used to execute the transaction method of virtual resources in the above-mentioned embodiments of the present application. Fig.12 The block diagram schematically shows the composition of the virtual resource transaction device in the embodiment of the present application. Fig.12 As shown, the virtual resource transaction device 1200 may mainly include:
[0142] The transaction acquisition module 1210 is used to acquire virtual resource payment information, wherein the virtual resource payment information includes virtual resource payment information paid by the transaction initiator account to the resource receiver account;
[0143] The authorization verification module 1220 is used to obtain the authorization verification result of the transaction initiator account for the cryptographic machine in response to the virtual resource payment information;
[0144] The transaction signature module 1230 is used to sign the virtual resource payment information according to the authorization verification result through the transaction key contained in the cryptographic machine authorized by the transaction initiator account to obtain a transaction signature;
[0145] The transaction on-chain module 1240 is used to send the virtual resource payment information and the transaction signature to the blockchain to transfer the virtual resources from the transaction initiator account to the resource recipient account according to the virtual resource payment information.
[0146] In some embodiments of the present application, based on the above technical solution, the authorization verification module 1220 is also configured to: in response to the virtual resource payment information, perform account verification on the transaction initiator account; if the account verification is successful, obtain the key verification information of the transaction initiator account; based on the key verification information, perform cryptographic machine authorization verification on the transaction initiator account, and obtain the authorization verification result of the transaction initiator account for the cryptographic machine.
[0147] In some embodiments of the present application, based on the above technical solution, the virtual resource payment information is initiated by the client to the payment management service; the authorization verification module 1220 is also configured to: in response to the virtual resource payment information, perform account verification on the transaction initiator account logged in on the client through the payment management service; if the account verification is successful, send a signature request to the key management service through the payment management service, and the signature request includes the virtual resource payment information; obtain the key verification information of the transaction initiator account from the client through the key management service, wherein the key management service includes the key verification information corresponding to the transaction initiator account; perform authorization verification on the key verification information according to the key verification information in the key management service, and obtain the authorization verification result of the transaction initiator account for the cryptographic machine.
[0148] In some embodiments of the present application, based on the above technical solution, the transaction acquisition module 1210 is also configured to: receive a key generation request initiated by the client through the key management service; based on the key generation request, call the cryptographic machine through the key management service to generate a transaction key for the transaction initiator account; and obtain the key verification information of the transaction initiator account from the client through the key management service.
[0149] In some embodiments of the present application, based on the above technical solution, the transaction acquisition module 1210 is also configured to: obtain the access permission information of the transaction initiator account to the key management service through the key management service according to the key generation request; if the access permission information indicates that the transaction initiator account has access authorization to the key management service, then call the cryptographic machine through the key management service to generate the transaction key of the transaction initiator account.
[0150] In some embodiments of the present application, based on the above technical solution, the transaction acquisition module 1210 is also configured to: send a connection request to the key management service through the payment management service; in response to the connection request, obtain the authorization verification information corresponding to the transaction initiator account through the key management service; verify the authorization verification information according to the key verification information of the transaction initiator account in the key management service to obtain a key verification result; if the key verification passes, establish a connection between the payment management service and the key management service.
[0151] In some embodiments of the present application, based on the above technical solution, the connection request includes summary information of the payment management service, and the key management service also includes summary verification information of the payment management service; the transaction acquisition module 1210 is also configured to: verify the summary information through the summary verification information of the payment management service in the key management service to obtain a summary verification result; if both the key verification and the summary verification are passed, a connection between the payment management service and the key management service is established.
[0152] In some embodiments of the present application, based on the above technical solution, the payment management service includes a message agent for the key management service; the transaction acquisition module 1210 is also configured to: generate a connection request according to a key generation instruction and send the connection request to the key management service through the message agent; when sending the connection request, obtain summary information of the payment management service through the message agent and send it to the key management service together with the connection request.
[0153] In some embodiments of the present application, based on the above technical solution, the transaction acquisition module 1210 is also configured to: send a verification graphic code to the client that logs in to the transaction initiator account through the key management service; sign the verification graphic code according to the transaction key of the transaction initiator account by the client, generate authorization verification information, and send the authorization verification information to the key management service; receive the authorization verification information sent by the client through the key management service.
[0154] In some embodiments of the present application, based on the above technical solution, the transaction acquisition module 1210 is also configured to: sign the verification graphic code by the client using the transaction key of the transaction initiator account to obtain an authorization graphic code; identify the authorization graphic code by the online client application of the key management service included on the client to obtain authorization verification information; and send the authorization verification information to the key management service by the online client application on the client.
[0155] In some embodiments of the present application, based on the above technical solution, the virtual resource payment information includes multiple resource recipient accounts; the transaction signature module 1210 is further configured to: generate a transaction request between the transaction initiator account and each resource recipient account according to the virtual resource payment information, and obtain multiple transaction requests; sign each transaction request with the transaction key of the transaction initiator account in the cryptographic machine authorized by the transaction initiator account, and obtain a transaction signature for each transaction request;
[0156] The transaction chain module 1240 is also configured to: package each transaction request and the corresponding transaction signature into a blockchain transaction to obtain multiple blockchain transactions, wherein the blockchain transaction includes the transaction initiator account, the resource recipient account and the virtual resource information; send the multiple blockchain transactions to the blockchain to chain the multiple blockchain transactions in the blockchain.
[0157] It should be noted that the apparatus provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module performs the operation has been described in detail in the method embodiment and will not be repeated here.
[0158] Fig.13 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0159] It should be noted that Fig.13 The computer system 1300 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0160] like Fig.13As shown, the computer system 1300 includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1302 or the program loaded from the storage part 1308 to the random access memory (RAM) 1303. Various programs and data required for system operation are also stored in the RAM 1303. The CPU 1301, the ROM 1302, and the RAM 1303 are connected to each other through a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.
[0161] The following components are connected to the I / O interface 1305: an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the I / O interface 1305 as needed. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as needed so that a computer program read therefrom is installed into the storage section 1308 as needed.
[0162] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 1309, and / or installed from a removable medium 1311. When the computer program is executed by a central processing unit (CPU) 1301, various functions defined in the system of the present application are executed.
[0163] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0164] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0165] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0166] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0167] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.
[0168] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for trading virtual resources. It is characterized in that include: Acquire virtual resource payment information, wherein the virtual resource payment information includes virtual resource payment information paid by a transaction initiator account to a resource receiver account; In response to the virtual resource payment information, obtaining the authorization verification result of the transaction initiator account for the cryptographic machine; According to the authorization verification result, the virtual resource payment information is signed by the transaction key contained in the cryptographic machine authorized by the transaction initiator account to obtain a transaction signature; The virtual resource payment information and the transaction signature are sent to the blockchain to transfer the virtual resource from the transaction initiator account to the resource recipient account according to the virtual resource payment information.
2. The method according to claim 1, It is characterized in that The step of obtaining the authorization verification result of the transaction initiator account for the cryptographic machine in response to the virtual resource payment information includes: In response to the virtual resource payment information, performing account verification on the transaction initiator account; If the account verification is successful, the key verification information of the transaction initiator account is obtained; According to the key verification information, the cryptographic machine authorization verification is performed on the transaction initiator account to obtain the authorization verification result of the transaction initiator account on the cryptographic machine.
3. The method according to claim 2, It is characterized in that The virtual resource payment information is initiated by the client to the payment management service; the account verification of the transaction initiator account is performed in response to the virtual resource payment information, including: In response to the virtual resource payment information, performing account verification on the transaction initiator account logged in on the client through the payment management service; If the account verification is successful, the key verification information of the transaction initiator account is obtained, including: If the account verification is successful, a signature request is sent to the key management service through the payment management service, and the signature request includes the virtual resource payment information; Obtaining key verification information of the transaction initiator account from the client through the key management service, wherein the key management service includes key verification information corresponding to the transaction initiator account; The step of performing cryptographic machine authorization verification on the transaction initiator account according to the key verification information to obtain the authorization verification result of the transaction initiator account on the cryptographic machine includes: The key verification information is authorized and verified according to the key verification information in the key management service to obtain the authorization verification result of the transaction initiator account on the cryptographic machine.
4. The method according to claim 2, It is characterized in that Before obtaining the virtual resource payment information, the method further includes: Receiving, through the key management service, a key generation request initiated by the client; In response to the key generation request, the cryptographic machine is called by the key management service to generate a transaction key for the transaction initiator account; The key verification information of the transaction initiator account is obtained from the client through the key management service.
5. The method according to claim 4, It is characterized in that The generating the transaction key of the transaction initiator account by calling the cryptographic machine through the key management service according to the key generation request includes: According to the key generation request, obtaining, through the key management service, access permission information of the transaction initiator account to the key management service; If the access permission information indicates that the transaction initiator account has the access authorization to the key management service, the cryptographic machine is called through the key management service to generate the transaction key of the transaction initiator account.
6. The method according to claim 2, It is characterized in that Before obtaining the virtual resource payment information, the method further includes: Sending a connection request to the key management service through the payment management service; In response to the connection request, obtaining authorization verification information corresponding to the transaction initiator account through the key management service; Verify the authorization verification information according to the key verification information of the transaction initiator account in the key management service to obtain a key verification result; If the key verification passes, a connection between the payment management service and the key management service is established.
7. The method according to claim 6, It is characterized in that The connection request includes summary information of the payment management service, and the key management service also includes summary verification information of the payment management service; and establishing a connection between the payment management service and the key management service includes: Verifying the summary information through the summary verification information of the payment management service in the key management service to obtain a summary verification result; If both the key verification and the digest verification are passed, a connection between the payment management service and the key management service is established.
8. The method according to claim 7, It is characterized in that The payment management service includes a message agent for the key management service; The sending a connection request to the key management service through the payment management service includes: Generate a connection request according to the key generation instruction and send the connection request to the key management service through the message agent; When sending the connection request, the summary information of the payment management service is obtained through the message agent and sent to the key management service together with the connection request.
9. The method according to claim 6, It is characterized in that The step of obtaining authorization verification information corresponding to the transaction initiator account through the key management service in response to the connection request includes: Sending a verification graphic code to the client logged into the transaction initiator account through the key management service; The client signs the verification graphic code according to the transaction key of the transaction initiator account, generates authorization verification information, and sends the authorization verification information to the key management service; The authorization verification information sent by the client is received through the key management service.
10. The method according to claim 9, It is characterized in that The step of signing the verification graphic code according to the transaction key of the transaction initiator account by the client to generate authorization verification information, and sending the authorization verification information to the key management service includes: The client uses the transaction key of the transaction initiator's account to sign the verification graphic code to obtain an authorization graphic code; Identify the authorization graphic code through the online client application of the key management service included in the client to obtain authorization verification information; The authorization verification information is sent to the key management service through an online client application on the client.
11. The method according to any one of claims 1 to 10, It is characterized in that The virtual resource payment information includes multiple resource recipient accounts; the virtual resource payment information is signed by a transaction key included in a cryptographic machine authorized by the transaction initiator account according to the authorization verification result to obtain a transaction signature, including: Generate a transaction request between the transaction initiator account and each resource receiver account according to the virtual resource payment information to obtain multiple transaction requests; Sign each transaction request using the transaction key of the transaction initiator account in the cryptographic machine authorized by the transaction initiator account to obtain a transaction signature for each transaction request; The sending of the virtual resource payment information and the transaction signature to the blockchain, so as to transfer the virtual resource from the transaction initiator account to the resource receiver account according to the virtual resource payment information, comprises: Packing each transaction request and the corresponding transaction signature into a blockchain transaction to obtain multiple blockchain transactions, wherein the blockchain transaction includes a transaction initiator account, a resource receiver account, and virtual resource information; The plurality of blockchain transactions are sent to a blockchain to include the plurality of blockchain transactions in the blockchain.
12. A virtual resource trading device, It is characterized in that include: A transaction acquisition module, used to acquire virtual resource payment information, wherein the virtual resource payment information includes virtual resource payment information paid by a transaction initiator account to a resource receiver account; An authorization verification module, used to obtain the authorization verification result of the transaction initiator account for the cryptographic machine in response to the virtual resource payment information; A transaction signature module, used to sign the virtual resource payment information according to the authorization verification result through the transaction key contained in the cryptographic machine authorized by the transaction initiator account to obtain a transaction signature; The transaction on-chain module is used to send the virtual resource payment information and the transaction signature to the blockchain, so as to transfer the virtual resources from the transaction initiator account to the resource recipient account according to the virtual resource payment information.
13. An electronic device, It is characterized in that include: processor; A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the virtual resource transaction method described in any one of claims 1 to 11 by executing the executable instructions.
14. A computer readable medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the virtual resource trading method according to any one of claims 1 to 11 is implemented.
15. A computer program product, It is characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads and executes the computer instructions from the computer-readable storage medium, so that the computer device executes the virtual resource trading method according to any one of claims 1 to 11.
