Transaction method and reality node based on a blockchain network
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA UNITED NETWORK COMM GRP CO LTD
- Filing Date
- 2022-09-01
- Publication Date
- 2026-07-07
AI Technical Summary
The current metaverse lacks specific methods and core architecture for implementing transactions, making it difficult to support the realization of transactions.
The transaction method based on the blockchain network involves obtaining target transaction information from the corresponding first virtual node through the first real node, broadcasting it to the blockchain network, generating and signing the target smart contract, and controlling the second virtual node to transfer virtual transaction resources to the first virtual node after verification.
It provides technical support for the trading of virtual resources in the metaverse environment, ensures the authenticity and security of transactions, and promotes the application and development of metaverse technology.
Smart Images

Figure CN115345744B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and more specifically to a transaction method and real-world node based on a blockchain network. Background Technology
[0002] The metaverse is a virtual environment created and linked to the real world using technological means, mapping and interacting with it. The metaverse is a digital living space with a new social system; its essence is the virtualization and digitization of the real world, requiring significant modifications to content production, economic systems, user experience, and physical world content.
[0003] The metaverse primarily utilizes the following core technologies: First, extended reality technologies, including Virtual Reality (VR) and Augmented Reality (AR). Extended reality technologies can provide immersive experiences. Second, digital twin technology, used to mirror the real world into a virtual environment, allowing users to interact or trade within the metaverse just as they would in the real world. However, current ideas about how transactions will occur in the metaverse are still conceptual, lacking concrete technical implementation methods and core architectures, making it difficult to support the realization of transactions. Summary of the Invention
[0004] Therefore, this invention provides a transaction method and real-world node based on a blockchain network to solve the current problem in the prior art regarding how transactions are conducted in the metaverse world.
[0005] To achieve the above objectives, a first aspect of the present invention provides a transaction method based on a blockchain network, the method comprising:
[0006] The target transaction information is obtained from the corresponding first virtual node. The target transaction information includes transaction negotiation information determined by the first virtual node and the second virtual node, as well as the identity identifier of the second virtual node. The first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment.
[0007] The target transaction information is broadcast to the blockchain network so that the second real node corresponding to the second virtual node can generate a target smart contract based on the target transaction information if the target transaction information is verified.
[0008] Obtain the target smart contract signed by the second real-world node from the blockchain network;
[0009] If the target smart contract passes verification, the target smart contract signed by the second real-world node is signed.
[0010] The target smart contract, signed by the first real node, is broadcast to the blockchain network so that the second real node can control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node.
[0011] Optionally, before obtaining the target transaction information from the corresponding first virtual node, the method further includes:
[0012] The first identity registration information, signed by the first real node, is broadcast in the blockchain network. The first identity registration information includes: the blockchain identifier of the first node, the first public key, the identity identifier of the corresponding first virtual node, and the first encryption key.
[0013] Optionally, after obtaining the target smart contract signed by the second real-world node from the blockchain network, the process further includes:
[0014] Based on the second public key of the second real node, verify whether the signature of the second real node carried by the target smart contract is correct;
[0015] If the signature of the second real-world node carried by the target smart contract is verified to be correct, verify whether the transaction content and corresponding real-world amount included in the target smart contract are correct.
[0016] If the transaction content and corresponding real-world amount included in the target smart contract are verified to be correct, the target smart contract is determined to have passed verification.
[0017] Optionally, after broadcasting the target smart contract signed by the first real-world node to the blockchain network, the method further includes:
[0018] Obtain the resource handover success certificate information broadcast by the second real node;
[0019] If the verification of the successful resource transfer certificate is successful, the successful resource transfer certificate is signed.
[0020] Within a preset time period, the blockchain network broadcasts a successful resource transfer certificate signed by the first real-world node, so that the smart contract execution node of the blockchain network can transfer the funds corresponding to the real-world amount from the account of the first real-world node to the account of the second real-world node.
[0021] A second aspect of the present invention provides a transaction method based on a blockchain network, the method comprising:
[0022] Based on the identity identifier of the second virtual node, target transaction information is obtained from the blockchain network; the target transaction information includes transaction negotiation information determined by the first virtual node and the second virtual node, and the identity identifier of the second virtual node; the first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment;
[0023] If the target transaction information is verified, a target smart contract is generated based on the target transaction information;
[0024] The target smart contract is signed, and the target smart contract signed by the second node is broadcast to the blockchain network, so that the first real-world node can sign the target smart contract signed by the second real-world node if the target smart contract is verified.
[0025] Based on the target smart contract obtained from the blockchain network and signed by the first real node, the second virtual node is controlled to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node.
[0026] Optionally, after obtaining the target transaction information from the blockchain network based on the identity of the second virtual node, the process further includes:
[0027] Based on the first public key of the first real-world node, verify whether the signature of the first real-world node carried in the target transaction information is correct;
[0028] If the signature verification of the first real-world node carried by the target transaction information is correct, the transaction negotiation information included in the target transaction information is extracted;
[0029] Based on the pre-stored second decryption key, the transaction negotiation information is decrypted according to the pre-agreed decryption algorithm;
[0030] Determine whether the decrypted transaction negotiation information is consistent with the pre-stored negotiation information;
[0031] If the decrypted transaction negotiation information matches the pre-stored negotiation information, the target transaction information is deemed to have passed verification.
[0032] Optionally, the transaction negotiation information in the target transaction information includes the transaction content and the corresponding virtual amount; the step of generating a target smart contract based on the target transaction information includes:
[0033] Extract the transaction details and the corresponding virtual amount;
[0034] Convert the virtual amount into a real amount based on the current exchange rate;
[0035] The target smart contract is generated based on the transaction details and the actual amount.
[0036] Optionally, after controlling the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node, the method further includes:
[0037] Obtain proof of successful resource transfer;
[0038] The resource transfer success certificate information is broadcast to the blockchain network, so that the first real node can sign the resource transfer success certificate information and broadcast the signed resource transfer success certificate information within a preset time period, so that the smart contract execution node of the blockchain network can transfer the funds corresponding to the real amount from the account of the first real node to the account of the second real node.
[0039] A third aspect of the present invention provides a real-world node applied to a first real-world node, the real-world node comprising:
[0040] The first acquisition module is used to acquire target transaction information from the corresponding first virtual node. The target transaction information includes transaction negotiation information determined by the first virtual node and the second virtual node, and the identity identifier of the second virtual node. The first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment.
[0041] The first broadcast module is used to broadcast the target transaction information to the blockchain network, so that the second real node corresponding to the second virtual node can generate a target smart contract based on the target transaction information if the target transaction information is verified.
[0042] The second acquisition module is used to acquire the target smart contract signed by the second real-world node from the blockchain network;
[0043] The first signature module is used to sign the target smart contract that has been signed by the second real-world node, provided that the target smart contract has been verified.
[0044] The first broadcast module is further configured to broadcast the target smart contract signed by the first real node to the blockchain network, so that the second real node can control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node.
[0045] A fourth aspect of the present invention provides a real-world node applied to a second real-world node, the real-world node comprising:
[0046] The third acquisition module is used to acquire target transaction information from the blockchain network based on the identity identifier of the second virtual node; the target transaction information includes transaction negotiation information determined by the first virtual node and the second virtual node, and the identity identifier of the second virtual node; the first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment;
[0047] The first generation module is used to generate a target smart contract based on the target transaction information if the target transaction information is verified.
[0048] The second signature module is used to sign the target smart contract and broadcast the target smart contract signed by the second node to the blockchain network, so that the first real node can sign the target smart contract signed by the second real node if the target smart contract is verified.
[0049] The first control module is used to control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node based on the target smart contract obtained from the blockchain network and signed by the first real node.
[0050] The present invention has the following advantages:
[0051] This invention discloses a transaction method and a real-world node based on a blockchain network. The method includes: obtaining target transaction information from a corresponding first virtual node, the target transaction information including transaction negotiation information determined by the first virtual node and a second virtual node, and the identity identifier of the second virtual node; broadcasting the target transaction information to the blockchain network; obtaining a target smart contract signed by the second real-world node from the blockchain network; signing the target smart contract signed by the second real-world node if the target smart contract is verified; and broadcasting the target smart contract signed by the first real-world node to the blockchain network, so that the second real-world node can control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node. This invention can provide technical support for the trading of virtual resources in a metaverse environment, ensure the authenticity and security of transactions in the metaverse, and promote the application and development of metaverse technology. Attached Figure Description
[0052] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used together with the following detailed description to explain the invention, but do not constitute a limitation thereof.
[0053] Figure 1 A flowchart illustrating a transaction method based on a blockchain network, as provided in this embodiment of the invention;
[0054] Figure 2 A flowchart of a target smart contract verification method provided in an embodiment of the present invention;
[0055] Figure 3 A flowchart illustrating a transaction method based on a blockchain network, provided as an embodiment of the present invention;
[0056] Figure 4 A flowchart illustrating a transaction method based on a blockchain network, as provided in this embodiment of the invention;
[0057] Figure 5 A flowchart of a target transaction information verification method provided in an embodiment of the present invention;
[0058] Figure 6 A schematic diagram of the structure of a real node provided in an embodiment of the present invention;
[0059] Figure 7 This is a schematic diagram of the structure of a real node provided in an embodiment of the present invention. Detailed Implementation
[0060] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the present invention.
[0061] As used in this invention, the term "and / or" includes any and all combinations of one or more of the associated enumerated entries.
[0062] The terminology used in this invention is for describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms "a" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise.
[0063] When the terms “comprising” and / or “made of” are used in this invention, the presence of the said feature, integral, step, operation, element and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or groups thereof is not excluded.
[0064] The embodiments described herein can be illustrated with reference to plan views and / or cross-sectional views, using the ideal schematic diagrams of the invention. Therefore, the example illustrations may be modified according to manufacturing techniques and / or tolerances.
[0065] Unless otherwise specified, all terms used in this invention (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in common dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined by the invention.
[0066] Figure 1 The flowchart of a transaction method based on a blockchain network is provided for an embodiment of the present invention, applied to a first real-world node.
[0067] The transaction method provided in this invention involves two parallel environments in time and space: one is the real environment, and the other is a virtual environment. This virtual environment is essentially a virtualization and digitization of the real environment, such as the metaverse. The metaverse is a virtual environment created and linked using technological means, capable of mapping and interacting with the real environment. In this invention, the blockchain network exists in the real environment and includes multiple real nodes, each of which corresponds to at least one virtual node in the virtual environment. Furthermore, each real node is configured with all the functions possessed by the first and second real nodes, enabling the implementation of corresponding functions for different application scenarios.
[0068] like Figure 1 As shown, the method applied to the first real-world node provided in this embodiment of the invention includes: steps S101-S105.
[0069] Step S101: Obtain target transaction information from the corresponding first virtual node.
[0070] In this context, the first virtual node is the node corresponding to the first real-world node in the virtual environment. The target transaction information includes transaction negotiation information determined by the first and second virtual nodes, as well as the identity identifier of the second virtual node. This second virtual node is the node corresponding to the second real-world node in the virtual environment. The transaction negotiation information is encrypted information generated by the first virtual node, including the transaction content, the virtual amount corresponding to the transaction content, and the identity identifiers of both the first and second virtual nodes.
[0071] The transaction details include the identifier of the virtual resource to be traded. This virtual resource can be any tradable resource in the virtual environment, such as houses, equipment, or pets in the metaverse. The identifier of the virtual resource is used to uniquely identify it within the virtual environment; for example, a house can be identified by its virtual address. The virtual amount corresponding to the transaction details represents the monetary value in the virtual environment required to acquire the virtual resource agreed upon in the transaction details.
[0072] In one implementation, before the first real node obtains the target transaction information from the corresponding first virtual node, it generates first identity registration information, signs the first identity registration information with its private key, and then broadcasts the first identity registration information signed by the first real node in the blockchain network so that other real nodes in the blockchain network can obtain the content included in the first identity registration information after the private key signature carried by the first identity registration information is verified.
[0073] The first identity registration information includes: the first node blockchain identifier, the first public key, the identity identifier of the first virtual node corresponding to the first real node, and the first encryption key.
[0074] The first node's blockchain identifier is the unique identifier of the first real-world node within the blockchain network. The first virtual node's identity identifier is the unique identifier of the first virtual node within the virtual environment.
[0075] The first public key is the blockchain public key of the first real node in the blockchain network, and the first private key corresponding to the first public key is kept by the first real node itself.
[0076] The first encryption key is a pre-stored encryption key used by the first real-world node to enable interaction between itself and other (real or virtual) nodes. The corresponding first decryption key is stored locally by the first real-world node and is used to decrypt information encrypted with the first encryption key. The use of these first encryption and decryption keys enhances the security of information transmission between nodes. For example, when other nodes send information to the first real-world node, they can first encrypt the information using the first encryption key before sending it. Since only the first real-world node possesses the corresponding first decryption key, even if some nodes mistakenly receive or intentionally intercept the encrypted information, they cannot decrypt it, thus improving the security of information transmission between nodes.
[0077] In some embodiments, the first encryption key and the first decryption key may be random number pairs pre-generated and stored by the first physical node. Since random number pairs do not exhibit any pattern, using random number pairs as the first encryption key and the first decryption key can effectively improve the security of the process of using the first encryption key and the first decryption key.
[0078] In one implementation, if the first virtual node and the second virtual node want to conduct virtual resource transactions, they can negotiate the transaction through private dialogue in a virtual environment (such as the metaverse), thereby improving the security and efficiency of the transaction negotiation.
[0079] For example, a first virtual node wants to purchase a house in the virtual environment from a second virtual node using 20 million virtual currency. The house address is Room 101, Building 1, Courtyard 1, Street 001 in the virtual environment. The first virtual node can then discuss the transaction details, such as the transaction amount, with the second virtual node in a private conversation within the virtual environment. In this embodiment, the transaction details are the house in the virtual environment, which can be identified by the house's virtual address (such as the house's metaverse identifier).
[0080] Virtual nodes pre-store encryption keys for their corresponding real-world nodes. For example, a first virtual node pre-stores a first encryption key for a first real-world node, and a second virtual node pre-stores a second encryption key for a second real-world node. During transaction negotiation, the first and second virtual nodes can exchange their pre-stored encryption keys. For instance, the first virtual node sends its first encryption key to the second virtual node, and the second virtual node sends its second encryption key to the first virtual node. The purpose of these encryption keys is to ensure the security and confidentiality of various files transmitted during the transaction. In some embodiments, the encryption keys can also be used as identification markers to locate the corresponding real-world node of the other virtual node in the real-world environment.
[0081] After the first virtual node and the second virtual node have completed their negotiation, the first virtual node uses the second encryption key to encrypt at least the transaction content, the virtual amount corresponding to the transaction content, the identity identifier of the first virtual node, and the identity identifier of the second virtual node according to the pre-agreed encryption algorithm, in order to obtain the transaction negotiation information.
[0082] In one implementation, the step of the first real node obtaining target transaction information from the corresponding first virtual node includes: the first real node receiving target transaction information sent by the first virtual node, the target transaction information including transaction negotiation information and the identity identifier of the second virtual node. The method by which the first virtual node sends the target transaction information to the first real node can be configured according to the actual application, such as sending via email or cloud storage; this embodiment does not impose specific limitations.
[0083] It should be noted that although the transaction negotiation information also includes the identity of the second virtual node, because the transaction negotiation information is encrypted with the second encryption key, the first real node cannot extract the identity of the second virtual node from this transaction negotiation information. Therefore, the target transaction information sent by the first virtual node must include the identity of the second virtual node in addition to the transaction negotiation information.
[0084] Step S102: Broadcast the target transaction information to the blockchain network so that the second real node corresponding to the second virtual node can generate the target smart contract based on the target transaction information if the target transaction information is verified.
[0085] In one implementation, the first real node can broadcast the target transaction information to the blockchain network by means of a broadcast message signed with a private key. That is, the first real node uses a first private key to sign the target transaction information and broadcasts the signed target transaction information to the blockchain network.
[0086] In one implementation, the second real node obtains target transaction information from the blockchain network based on the identity identifier of the second virtual node. Specifically, the second real node identifies the target transaction information containing its own corresponding second virtual node's identity identifier from the blockchain broadcast messages, obtains the target transaction information, and generates a target smart contract based on the target transaction information if the target transaction information is verified. The target smart contract is a transaction contract used to trade the virtual transaction resources corresponding to the target transaction information. The condition for the target smart contract to be considered successfully signed in the blockchain network is that it simultaneously carries the private key signatures of both parties to the transaction (e.g., the first real node and the second real node). Therefore, after generating the target smart contract, the second real node signs the target smart contract and broadcasts the signed target smart contract to the blockchain network.
[0087] Step S103: Obtain the target smart contract signed by the second real-world node from the blockchain network.
[0088] Among them, the target smart contract is a transaction contract used to trade virtual transaction resources corresponding to the target transaction information. The condition for the target smart contract to be recognized as successfully signed in the blockchain network is that the target smart contract carries the signatures of both parties to the transaction (such as the first real node and the second real node).
[0089] To improve the security of the transaction process and prevent some blockchain nodes from impersonating second-real-world nodes to broadcast smart contracts, the first-real-world node needs to verify the target smart contract after obtaining it.
[0090] Figure 2 A flowchart illustrating a target smart contract verification method provided in an embodiment of the present invention. In one implementation, as shown... Figure 2 As shown, the method for verifying the target smart contract includes the following steps S201-S203.
[0091] Step S201: Based on the second public key of the second real node, verify whether the signature of the second real node carried by the target smart contract is correct.
[0092] The second public key is the blockchain public key of the second real-world node in the blockchain network, and the corresponding second private key is kept by the second real-world node itself. The blockchain ledger corresponding to the blockchain network stores the second identity registration information pre-broadcast by the second real-world node. Therefore, other blockchain nodes can obtain the second identity registration information corresponding to the second real-world node from the blockchain network, and thus obtain the second public key.
[0093] The signature of the second real-world node carried by the target smart contract is the signature information left by the second real-world node after signing its private key using its second private key. Since the second private key is only stored by the second real-world node, only the second public key corresponding to this second private key can decrypt the information encrypted with this second private key. Therefore, based on the second public key, verifying whether the signature of the second real-world node carried by the target smart contract is correct can determine whether the target smart contract originated from the second real-world node, thus achieving security verification of the source of the target smart contract.
[0094] If the first real-world node finds that the signature of the second real-world node carried by the target smart contract is incorrect, it indicates that the target smart contract did not originate from the second real-world node. The target smart contract may be a forged smart contract by other blockchain nodes. If the verification of the target smart contract fails, the first real-world node can discard the target smart contract.
[0095] Step S202: If the signature of the second real-world node carried by the target smart contract is correct, verify whether the transaction content and corresponding real-world amount included in the target smart contract are correct.
[0096] In this process, if the first real-world node verifies that the signature of the second real-world node carried by the target smart contract is correct, it indicates that the target smart contract originates from the second real-world node. At this point, the first real-world node needs to verify whether the transaction content and corresponding real-world amount included in the target smart contract are correct, to ensure the accuracy of the content involving the transaction process in the target smart contract. The real-world amount corresponding to the transaction content refers to the monetary value in the real-world environment required to obtain the virtual transaction resources agreed upon in the transaction content.
[0097] If the first real-world node determines that the target smart contract fails verification if any of the transaction content or the corresponding real-world amount of the transaction content is incorrect, the first real-world node will verify that the target smart contract fails verification.
[0098] Step S203: If the transaction content and corresponding real amount included in the target smart contract are verified to be correct, the target smart contract is determined to have passed verification.
[0099] The transaction content includes the identifier of the virtual transaction resource to be traded, and the real amount corresponding to the transaction content refers to the amount of currency in the real environment that needs to be paid to obtain the virtual transaction resource agreed in the transaction content.
[0100] In this embodiment, by verifying the target smart contract, it can be ensured that the target smart contract originates from a legitimate trading party and that the content of the transaction process involved in the target smart contract is accurate. This can improve the authenticity and security of the transaction process, thereby protecting the interests of both parties from being harmed.
[0101] Step S104: If the target smart contract is verified, sign the target smart contract that has been signed by the second real-world node.
[0102] Specifically, for a target smart contract to be considered successfully signed in the blockchain network, it must simultaneously carry the private key signatures of both parties to the transaction (e.g., the first real-world node and the second real-world node). Therefore, once the target smart contract has been verified, the first real-world node signs the target smart contract that has been signed by the second real-world node.
[0103] Step S105: Broadcast the target smart contract signed by the first real node to the blockchain network, so that the second real node can control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node.
[0104] The target smart contract broadcast to the blockchain network by the first real-world node has the signatures of both the first and second real-world nodes. Therefore, the target smart contract can be recognized by all blockchain nodes in the blockchain network.
[0105] In one implementation, after the second real node obtains the target smart contract signed by the first real node from the blockchain network and verifies the success of the target smart contract, it controls the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node. For example, the second virtual node transfers the house with the address "Room 101, Building 1, Courtyard 1, Street 001 in the virtual environment" to the first virtual node according to the house sale and transfer documents within the virtual environment, thereby realizing the transfer of virtual transaction resources. After the second real node transfers the virtual transaction resources corresponding to the target transaction information to the first virtual node, it obtains proof of successful resource transfer information and broadcasts this proof of successful resource transfer to the blockchain network.
[0106] Figure 3 This is a flowchart illustrating a blockchain-based transaction method provided in an embodiment of the present invention. In one implementation, after a first real-world node broadcasts the target smart contract signed by the first real-world node to the blockchain network, as follows... Figure 3 As shown, the transaction method also includes steps S301-S303.
[0107] Step S301: Obtain the resource handover success certificate information broadcast by the second real node.
[0108] Among them, the resource transfer success proof information is used to indicate that the second virtual node has transferred the virtual transaction resources to the first virtual node.
[0109] It should be noted that the information proving successful resource transfer can be information on the transfer process of virtual transaction resources, information proving successful transfer issued by an authoritative virtual node in the virtual environment, or other information that can prove that the second virtual node has transferred the virtual transaction resources to the first virtual node. In this embodiment, the form of the information proving successful resource transfer is not specifically limited.
[0110] In one implementation, after obtaining the resource transfer success certificate information, the first real-world node verifies the signature carried in the resource transfer success certificate information using the second public key. If the signature verification fails, it is determined that the resource transfer success certificate information has failed to be verified. The first real-world node can either send a reminder message to the second real-world node or ignore the resource transfer success certificate information. If the signature verification passes, it is determined that the resource transfer success certificate information has been verified.
[0111] Step S302: If the verification of the successful resource transfer certificate information is successful, sign the successful resource transfer certificate information.
[0112] Step S303: Broadcast the resource transfer success certificate information signed by the first real node to the blockchain network within a preset time period, so that the smart contract execution node of the blockchain network can transfer the funds corresponding to the real amount from the account of the first real node to the account of the second real node.
[0113] The preset time period is a pre-determined time period used by the first real-world node to confirm the successful transfer of resources.
[0114] In this embodiment, the smart contract execution node in the blockchain network is responsible for executing smart contracts within the blockchain network, such as a target smart contract between a first real-world node and a second real-world node. Furthermore, the smart contract execution node sends the execution result of the smart contract to the two parties involved in the transaction (e.g., the first and second real-world nodes) to inform them that the transaction corresponding to the target smart contract has been completed. Additionally, the smart contract execution node writes the execution result into a new block of the blockchain network, and thus into the blockchain ledger.
[0115] In some embodiments, after the first real node broadcasts the resource transfer success certificate information signed by the first real node to the blockchain network within a preset time period, the smart contract execution node in the blockchain network will transfer the funds corresponding to the real amount from the account of the first real node to the account of the second real node according to the target smart contract, and send the execution results to the first real node and the second real node respectively, such as sending the fund deduction information to the first real node and the fund transfer information to the second real node.
[0116] In other embodiments, if the first real-world node does not broadcast the resource transfer success certificate information signed by the first real-world node to the blockchain network within a preset time period, the smart contract execution node in the blockchain network will verify whether the resource transfer success certificate information broadcast by the second real-world node is valid. For example, it will verify whether the signature carried in the resource transfer success certificate information is correct using the second public key. The specific verification process is similar to the process described above where the first real-world node verifies the resource transfer success certificate information, and will not be repeated here. If the resource transfer success certificate information broadcast by the second real-world node is verified successfully, the smart contract execution node in the blockchain network will execute the target smart contract, transferring the funds corresponding to the real-world amount from the account of the first real-world node to the account of the second real-world node, and sending the execution results to both the first and second real-world nodes respectively. For example, it will send a fund deduction message to the first real-world node and a fund transfer message to the second real-world node.
[0117] The steps of the various methods described above are only for clarity. In practice, they can be combined into one step or some steps can be split into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but without changing the core design of the algorithm and process, are also within the scope of protection of this patent.
[0118] This invention provides a transaction method based on a blockchain network. First, target transaction information is obtained from a corresponding first virtual node. This target transaction information includes transaction negotiation information determined by the first and second virtual nodes, and the identity identifier of the second virtual node. The first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment. The target transaction information is broadcast to the blockchain network so that the second real node corresponding to the second virtual node can generate a target smart contract based on the target transaction information if the target transaction information is verified. Then, the target smart contract signed by the second real node is obtained from the blockchain network. If the target smart contract is verified, the target smart contract signed by the second real node is signed. Finally, the target smart contract signed by the first real node is broadcast to the blockchain network so that the second real node can control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node. This transaction method provides technical support for the trading of virtual resources in the metaverse environment, ensures the authenticity and security of transactions in the metaverse, and promotes the application and development of metaverse technology.
[0119] Figure 4 This is a flowchart illustrating a blockchain-based transaction method, applied to a second real-world node, as provided in an embodiment of the present invention. Figure 4 As shown, the method applied to the second real-world node provided in this embodiment of the invention includes: steps S401-S404.
[0120] Step S401: Based on the identity identifier of the second virtual node, obtain the target transaction information from the blockchain network.
[0121] The target transaction information includes transaction negotiation information determined by the first virtual node and the second virtual node, as well as the identity identifier of the second virtual node. The first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment.
[0122] In one implementation, if a first virtual node and a second virtual node want to conduct a virtual resource transaction, they can negotiate the transaction through a private dialogue in a virtual environment (such as the metaverse).
[0123] For example, a first virtual node wants to purchase a house in the virtual environment from a second virtual node using 20 million virtual currency. The house address is Room 101, Building 1, Courtyard 1, Street 001 in the virtual environment. The first virtual node can then discuss the transaction details, such as the transaction amount, with the second virtual node in a private conversation within the virtual environment. In this embodiment, the transaction details are the house in the virtual environment, which can be identified by the house's virtual address (such as the house's metaverse identifier).
[0124] Virtual nodes pre-store encryption keys for their corresponding real-world nodes. For example, a first virtual node pre-stores a first encryption key for a first real-world node, and a second virtual node pre-stores a second encryption key for a second real-world node. During transaction negotiation, the first and second virtual nodes can exchange their pre-stored encryption keys. For instance, the first virtual node sends its first encryption key to the second virtual node, and the second virtual node sends its second encryption key to the first virtual node. The purpose of these encryption keys is to ensure the security and confidentiality of various files transmitted during the transaction. In some embodiments, the encryption keys can also be used as identification markers to locate the corresponding real-world node of the other virtual node in the real-world environment.
[0125] After the first virtual node and the second virtual node complete their negotiation, the first virtual node uses a second encryption key to encrypt at least the transaction content, the corresponding virtual amount, and the identities of both virtual nodes according to a pre-agreed encryption algorithm, thus obtaining transaction negotiation information. The first virtual node then sends the target transaction information, containing this negotiation information and the identities of the second virtual node, to the first real node. The first real node signs the target transaction information using its first private key and broadcasts the signed target transaction information to the blockchain network.
[0126] In one implementation, the second real node obtains target transaction information from the blockchain network based on the identity identifier of the second virtual node. Specifically, the second real node identifies the target transaction information containing the identity identifier of its corresponding second virtual node from the blockchain broadcast message and obtains the target transaction information.
[0127] In one implementation, after obtaining the target transaction information, the second real-world node needs to verify the target transaction information to ensure the security and reliability of the transaction process.
[0128] Figure 5 This is a flowchart illustrating a target transaction information verification method provided in an embodiment of the present invention. Figure 5 As shown, the steps for verifying the target transaction information include: steps S501-S505.
[0129] Step S501: Based on the first public key of the first real-world node, verify whether the signature of the first real-world node carried in the target transaction information is correct.
[0130] The first public key is the blockchain public key of the first real-world node in the blockchain network, and the first private key corresponding to this first public key is kept by the first real-world node itself. The blockchain ledger corresponding to the blockchain network stores the first identity registration information pre-broadcast by the first real-world node. Therefore, other blockchain nodes can obtain the first identity registration information corresponding to the first real-world node from the blockchain network, and thus obtain the first public key.
[0131] The signature of the first real-world node carried in the target transaction information is the signature information left by the first real-world node after signing its private key using the first private key. Since the first private key is only stored by the first real-world node, only the first public key corresponding to the first private key can decrypt the information encrypted with the first private key. Therefore, based on the first public key, verifying whether the signature of the first real-world node carried in the target transaction information is correct can determine whether the target transaction information originates from the first real-world node.
[0132] If the signature of the first real node carried in the target transaction information is incorrect, the second real node indicates that the target transaction information did not originate from the first real node. The target smart contract may be forged transaction information from other blockchain nodes. If the verification of the target transaction information fails, the second real node can discard the target transaction information.
[0133] Step S502: If the signature verification of the first real-world node carried by the target transaction information is correct, extract the transaction negotiation information included in the target transaction information.
[0134] Specifically, if the signature verification of the first real-world node carried in the target transaction information is correct, it indicates that the target transaction information originates from the first real-world node. This transaction negotiation information is encrypted information generated by the first virtual node using a second encryption key sent by the second virtual node. It includes the transaction content, the virtual amount corresponding to the transaction content, and the identities of both the first and second virtual nodes. The second encryption key is a pre-stored encryption key used by the second real-world node to enable interaction between itself and other (real or virtual) nodes. A second decryption key corresponding to this second encryption key is stored locally by the second real-world node and is used to decrypt the information encrypted by the second encryption key.
[0135] Step S503: Based on the pre-stored second decryption key, decrypt the transaction negotiation information according to the pre-agreed decryption algorithm.
[0136] The transaction negotiation information includes the transaction details, the corresponding virtual amount, and the identities of the first and second virtual nodes. Since the transaction negotiation information contains multiple elements jointly negotiated and determined by the first and second virtual nodes, the second virtual node is also aware of the transaction details, the corresponding virtual amount, and the identities of both the first and second virtual nodes. This transaction details, the corresponding virtual amount, and the identities of both the first and second virtual nodes can be stored as pre-stored negotiation information by the second real-world node corresponding to the second virtual node.
[0137] Step S504: Determine whether the decrypted transaction negotiation information is consistent with the pre-stored negotiation information.
[0138] Among them, the pre-stored negotiation information is information that the first virtual node and the second virtual node jointly negotiate and determine, which is stored in advance by the second real node. It includes information such as the transaction content, the virtual amount corresponding to the transaction content, the identity identifier of the first virtual node and the identity identifier of the second virtual node.
[0139] In this embodiment, the second real-world node can determine whether the first real-world node sent the transaction negotiation information according to the pre-agreed terms by checking whether the decrypted transaction negotiation information is consistent with the pre-stored negotiation information, thus ensuring the reliability and security of the transaction process. If the decrypted transaction negotiation information is inconsistent with the pre-stored negotiation information, it indicates that the transaction negotiation information does not conform to the pre-agreed terms. The second real-world node can then determine that the target transaction information verification has failed and terminate the transaction process.
[0140] Step S505: If the decrypted transaction negotiation information is consistent with the pre-stored negotiation information, the target transaction information is confirmed to have passed verification.
[0141] If the decrypted transaction negotiation information is consistent with the pre-stored negotiation information, it indicates that the transaction negotiation information is consistent with the pre-agreed terms between the two parties.
[0142] In this embodiment, by verifying the target transaction information, it can be ensured that the target transaction information comes from a legitimate trading party and that the content of the transaction process involved in the target transaction information is accurate, thereby improving the authenticity and security of the transaction process and protecting the interests of both parties from being harmed.
[0143] Step S402: If the target transaction information is verified, generate the target smart contract based on the target transaction information.
[0144] Among them, the target smart contract is a transaction contract used to trade virtual transaction resources corresponding to the target transaction information.
[0145] In one implementation, the step of generating a target smart contract based on target transaction information includes the following steps one through three.
[0146] Step 1: Extract the transaction details and corresponding virtual amount from the target transaction information. The transaction negotiation information in the target transaction information includes the transaction details and the corresponding virtual amount.
[0147] Step 2: Convert the virtual amount into the real amount based on the current exchange rate.
[0148] The current exchange rate is the exchange rate between the currency in the virtual environment and the currency in the real environment. In some embodiments, the smart contract execution nodes in the blockchain network are responsible for converting the exchange rate of the currency implemented in the virtual environment and the exchange rate of the currency in the real environment and recording it in the blockchain. Each node in the blockchain network can obtain this current exchange rate from the blockchain.
[0149] For example, if the current exchange rate is 10,000:1, and the virtual amount corresponding to the transaction is 20 million virtual currency, then the virtual amount converted to real currency will be 2,000 real currency.
[0150] Step 3: Generate the target smart contract based on the transaction content and the actual amount.
[0151] Among them, the target smart contract is a transaction contract used to trade virtual transaction resources corresponding to the target transaction information. The target smart contract includes the transaction content and the real amount.
[0152] It should be noted that the target smart contract is considered successfully signed in the blockchain network only if it carries the private key signatures of both parties to the transaction (e.g., the first real-world node and the second real-world node). Therefore, after generating the target smart contract, the second real-world node executes the following step S403.
[0153] Step S403: Sign the target smart contract and broadcast the target smart contract signed by the second node to the blockchain network, so that the first real-world node can sign the target smart contract signed by the second real-world node if the target smart contract is verified.
[0154] The process of the first real-world node verifying the target smart contract is described in the aforementioned embodiment and will not be repeated here.
[0155] Step S404: Based on the target smart contract obtained from the blockchain network and signed by the first real node, control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node.
[0156] The target smart contract, which is obtained from the blockchain network and signed by the first real-world node, has the signatures of both the first and second real-world nodes. Therefore, the target smart contract can be recognized by all blockchain nodes in the blockchain network.
[0157] In one implementation, after the second real-world node obtains the target smart contract signed by the first real-world node from the blockchain network, it can use the first public key to verify the signature of the first real-world node carried in the target smart contract. The verification process is similar to the process by which the first real-world node uses the second public key to verify the signature of the second real-world node carried in the target smart contract, and will not be described in detail here. After the second real-world node verifies the target smart contract, it controls the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node. For example, the second virtual node transfers the property with the address "Room 101, Building 1, Courtyard 1, Street 001 in the virtual environment" to the first virtual node according to the property sale and transfer documents within the virtual environment, thereby realizing the transfer of virtual transaction resources.
[0158] In one implementation, after the second real node controls the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node, the method further includes:
[0159] Step 1: Obtain proof of successful resource transfer.
[0160] Among them, the resource transfer success proof information is used to indicate that the second virtual node has transferred the virtual transaction resources to the first virtual node.
[0161] It should be noted that the information proving successful resource transfer can be information on the transfer process of virtual transaction resources, information proving successful transfer issued by an authoritative virtual node in the virtual environment, or other information that can prove that the second virtual node has transferred the virtual transaction resources to the first virtual node. In this embodiment, the form of the information proving successful resource transfer is not specifically limited.
[0162] Step 2: Broadcast the resource transfer success certificate information to the blockchain network so that the first real node can sign the resource transfer success certificate information and broadcast the resource transfer success certificate information signed by the first real node within a preset time period, so that the smart contract execution node of the blockchain network can transfer the funds corresponding to the real amount from the account of the first real node to the account of the second real node.
[0163] The steps of the various methods described above are only for clarity. In practice, they can be combined into one step or some steps can be split into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but without changing the core design of the algorithm and process, are also within the scope of protection of this patent.
[0164] The blockchain-based transaction method provided in this embodiment first obtains target transaction information from the blockchain network based on the identity of a second virtual node. This target transaction information includes transaction negotiation information determined by a first virtual node and a second virtual node, as well as the identity of the second virtual node. The first virtual node is the node corresponding to a first real node in the virtual environment, and the second virtual node is the node corresponding to a second real node in the virtual environment. Then, if the target transaction information is verified, a target smart contract is generated based on the target transaction information. The target smart contract is signed and broadcast to the blockchain network, so that the first real node can sign the target smart contract signed by the second real node if the target smart contract is verified. Finally, based on the target smart contract signed by the first real node obtained from the blockchain network, the second virtual node is controlled to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node. This transaction method provides technical support for the trading of virtual resources in the metaverse environment, ensuring the authenticity and security of transactions in the metaverse, and promoting the application and development of metaverse technology.
[0165] Figure 6 This is a schematic diagram of a real-world node provided in an embodiment of the present invention, applied to a first real-world node. For example... Figure 6 As shown, the real-world node includes: a first acquisition module 61, a first broadcast module 62, a second acquisition module 63, and a first signature module 64.
[0166] The first acquisition module 61 is used to acquire target transaction information from the corresponding first virtual node.
[0167] The target transaction information includes transaction negotiation information determined by the first virtual node and the second virtual node, as well as the identity identifier of the second virtual node. The first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment.
[0168] The first broadcast module 62 is used to broadcast the target transaction information to the blockchain network, so that the second real node corresponding to the second virtual node can generate the target smart contract based on the target transaction information if the target transaction information is verified.
[0169] The second acquisition module 63 is used to acquire the target smart contract signed by the second real-world node from the blockchain network.
[0170] The first signature module 64 is used to sign the target smart contract that has been signed by the second real-world node, provided that the target smart contract has been verified.
[0171] The aforementioned first broadcast module 62 is also used to broadcast the target smart contract signed by the first real node to the blockchain network, so that the second real node can control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node.
[0172] In one embodiment, the first broadcast module 62 is further configured to broadcast first identity registration information signed by the first real node in the blockchain network, wherein the first identity registration information includes: the first node blockchain identifier, the first public key, the identity identifier of the corresponding first virtual node, and the first encryption key.
[0173] In one implementation, the aforementioned real-world node further includes a first verification module, configured to verify whether the signature of the second real-world node carried by the target smart contract is correct based on the second public key of the second real-world node; if the signature of the second real-world node carried by the target smart contract is correct, verify whether the transaction content and corresponding real-world amount included in the target smart contract are correct; if the transaction content and corresponding real-world amount included in the target smart contract are correct, determine that the target smart contract has passed verification.
[0174] In one embodiment, the second acquisition module 61 is further configured to acquire the resource transfer success proof information broadcast by the second real-world node. The first signature module 64 is further configured to sign the resource transfer success proof information if the verification is successful. The first broadcast module 62 is further configured to broadcast the resource transfer success proof information signed by the first real-world node to the blockchain network within a preset time period, so that the smart contract execution nodes of the blockchain network can transfer funds corresponding to the real-world amount from the account of the first real-world node to the account of the second real-world node.
[0175] It should be clarified that the present invention is not limited to the specific configurations and processes described in the above embodiments and shown in the figures. For the sake of convenience and brevity, detailed descriptions of known methods are omitted here, and the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
[0176] The real-world node provided in this embodiment of the invention includes a first acquisition module for acquiring target transaction information from a corresponding first virtual node. This target transaction information includes transaction negotiation information determined by the first and second virtual nodes, and the identity identifier of the second virtual node. A first broadcast module is used to broadcast the target transaction information to the blockchain network. A second acquisition module is used to acquire a target smart contract signed by the second real-world node from the blockchain network. A first signature module is used to sign the target smart contract signed by the second real-world node if the target smart contract is verified. The first broadcast module is also used to broadcast the target smart contract signed by the first real-world node to the blockchain network, so that the second real-world node can control the second virtual node to transfer virtual transaction resources corresponding to the target transaction information to the first virtual node. This provides technical support for the trading of virtual resources in the metaverse environment, ensures the authenticity and security of transactions in the metaverse, and promotes the application and development of metaverse technology.
[0177] Figure 7 This is a schematic diagram of a real-world node provided in an embodiment of the present invention, applied to a second real-world node. For example... Figure 7 As shown, the real-world node includes: a third acquisition module 71, a first generation module 72, a second signature module 73, a second broadcast module 74, and a first control module 75.
[0178] The third acquisition module 71 is used to acquire target transaction information from the blockchain network based on the identity identifier of the second virtual node.
[0179] The target transaction information includes transaction negotiation information determined by the first virtual node and the second virtual node, as well as the identity identifier of the second virtual node. The first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment.
[0180] The first generation module 72 is used to generate a target smart contract based on the target transaction information if the target transaction information is verified.
[0181] The second signature module 73 is used to sign the target smart contract.
[0182] The second broadcast module 74 is used to broadcast the target smart contract signed by the second node to the blockchain network, so that the first real node can sign the target smart contract signed by the second real node if the target smart contract is verified.
[0183] The first control module 75 is used to control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node based on the target smart contract obtained from the blockchain network and signed by the first real node.
[0184] In one implementation, the aforementioned real-world node further includes a second verification module, an extraction module, and a decryption module.
[0185] The second verification module is used to verify whether the signature of the first real-world node carried in the target transaction information is correct, based on the first public key of the first real-world node.
[0186] The extraction module is used to extract the transaction negotiation information included in the target transaction information if the signature verification of the first real-world node carried by the target transaction information is correct.
[0187] The decryption module is used to decrypt the transaction negotiation information based on a pre-stored second decryption key and a pre-agreed decryption algorithm.
[0188] The second verification module is also used to determine whether the decrypted transaction negotiation information is consistent with the pre-stored negotiation information. If the decrypted transaction negotiation information is consistent with the pre-stored negotiation information, the target transaction information is determined to have passed verification.
[0189] In one implementation, the third acquisition module 71 is used to acquire resource transfer success proof information. The second broadcast module 74 is used to broadcast the resource transfer success proof information to the blockchain network, so that the first real node can sign the resource transfer success proof information and broadcast the resource transfer success proof information signed by the first real node within a preset time period, so that the smart contract execution node of the blockchain network can transfer the funds corresponding to the real amount from the account of the first real node to the account of the second real node.
[0190] It should be clarified that the present invention is not limited to the specific configurations and processes described in the above embodiments and shown in the figures. For the sake of convenience and brevity, detailed descriptions of known methods are omitted here, and the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
[0191] The real-world node provided in this embodiment of the invention includes a third acquisition module for obtaining target transaction information from the blockchain network based on the identity identifier of a second virtual node. This target transaction information includes transaction negotiation information determined by the first and second virtual nodes, and the identity identifier of the second virtual node. The first virtual node is the node corresponding to the first real-world node in the virtual environment, and the second virtual node is the node corresponding to the second real-world node in the virtual environment. A first generation module is used to generate a target smart contract based on the target transaction information if the target transaction information is verified. A second signature module is used to sign the target smart contract, and a second broadcast module is used to broadcast the target smart contract signed by the second node to the blockchain network, so that the first real-world node can sign the target smart contract signed by the second real-world node if the target smart contract is verified. A first control module is used to control the second virtual node to transfer virtual transaction resources corresponding to the target transaction information to the first virtual node based on the target smart contract signed by the first real-world node obtained from the blockchain network. The transaction method provided in this embodiment can provide technical support for the transaction of virtual resources in the metaverse environment, ensure the authenticity and security of transactions in the metaverse, and promote the application and development of metaverse technology.
[0192] Those skilled in the art will understand that all or some of the steps, systems, or apparatuses in the methods, systems, and apparatuses described above can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, Compact Disc Read-Only Memory (CD-ROM), Digital Video Disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0193] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0194] Those skilled in the art will understand that although some embodiments described herein include certain features that are included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of this embodiment and form different embodiments.
[0195] It is understood that the above embodiments are merely exemplary implementations used to illustrate the principles of the present invention, and the present invention is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A transaction method based on a blockchain network, characterized in that, The method includes: The target transaction information is obtained from the corresponding first virtual node. The target transaction information includes transaction negotiation information determined by the first virtual node and the second virtual node, as well as the identity identifier of the second virtual node. The first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment. The target transaction information is broadcast to the blockchain network so that the second real node corresponding to the second virtual node can generate a target smart contract based on the target transaction information if the target transaction information is verified. Obtain the target smart contract signed by the second real-world node from the blockchain network; If the target smart contract passes verification, the first real-world node signs the target smart contract that has been signed by the second real-world node; The target smart contract, signed by the first real node, is broadcast to the blockchain network so that the second real node can control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node.
2. The method according to claim 1, characterized in that, Before obtaining the target transaction information from the corresponding first virtual node, the process also includes: The first identity registration information, signed by the first real node, is broadcast in the blockchain network. The first identity registration information includes: the first node blockchain identifier, the first public key, the identity identifier of the corresponding first virtual node, and the first encryption key.
3. The method according to claim 1, characterized in that, After obtaining the target smart contract signed by the second real-world node from the blockchain network, the process further includes: Based on the second public key of the second real node, verify whether the signature of the second real node carried by the target smart contract is correct; If the signature of the second real-world node carried by the target smart contract is verified to be correct, verify whether the transaction content and corresponding real-world amount included in the target smart contract are correct. If the transaction content and corresponding real-world amount included in the target smart contract are verified to be correct, the target smart contract is determined to have passed verification.
4. The method according to claim 3, characterized in that, After broadcasting the target smart contract signed by the first real-world node to the blockchain network, the method further includes: Obtain the resource handover success certificate information broadcast by the second real node; If the verification of the successful resource transfer certificate is successful, the successful resource transfer certificate is signed. Within a preset time period, the blockchain network broadcasts a successful resource transfer certificate signed by the first real-world node, so that the smart contract execution node of the blockchain network can transfer the funds corresponding to the real-world amount from the account of the first real-world node to the account of the second real-world node.
5. A transaction method based on a blockchain network, characterized in that, The method includes: Based on the identity identifier of the second virtual node, target transaction information is obtained from the blockchain network; the target transaction information includes transaction negotiation information determined by the first virtual node and the second virtual node, and the identity identifier of the second virtual node; the first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment; If the target transaction information is verified, a target smart contract is generated based on the target transaction information; The target smart contract is signed, and the target smart contract signed by the second node is broadcast to the blockchain network, so that the first real-world node can sign the target smart contract signed by the second real-world node if the target smart contract is verified. Based on the target smart contract obtained from the blockchain network and signed by the first real node, the second virtual node is controlled to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node.
6. The method according to claim 5, characterized in that, After obtaining the target transaction information from the blockchain network based on the identity identifier of the second virtual node, the process also includes: Based on the first public key of the first real-world node, verify whether the signature of the first real-world node carried in the target transaction information is correct; If the signature verification of the first real-world node carried by the target transaction information is correct, the transaction negotiation information included in the target transaction information is extracted; Based on the pre-stored second decryption key, the transaction negotiation information is decrypted according to the pre-agreed decryption algorithm; Determine whether the decrypted transaction negotiation information is consistent with the pre-stored negotiation information; If the decrypted transaction negotiation information matches the pre-stored negotiation information, the target transaction information is deemed to have passed verification.
7. The method according to claim 5, characterized in that, The transaction negotiation information in the target transaction information includes the transaction details and the corresponding virtual amount; The step of generating a target smart contract based on the target transaction information includes: Extract the transaction details and the corresponding virtual amount; Convert the virtual amount into a real amount based on the current exchange rate; The target smart contract is generated based on the transaction details and the actual amount.
8. The method according to claim 7, characterized in that, After controlling the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node, the method further includes: Obtain proof of successful resource transfer; The resource transfer success certificate information is broadcast to the blockchain network, so that the first real node can sign the resource transfer success certificate information and broadcast the signed resource transfer success certificate information within a preset time period, so that the smart contract execution node of the blockchain network can transfer the funds corresponding to the real amount from the account of the first real node to the account of the second real node.
9. A transaction method applied to a first real-world node, the first real-world node comprising: The first acquisition module is used to acquire target transaction information from the corresponding first virtual node. The target transaction information includes transaction negotiation information determined by the first virtual node and the second virtual node, and the identity identifier of the second virtual node. The first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment. The first broadcast module is used to broadcast the target transaction information to the blockchain network, so that the second real node corresponding to the second virtual node can generate a target smart contract based on the target transaction information if the target transaction information is verified. The second acquisition module is used to acquire the target smart contract signed by the second real-world node from the blockchain network; The first signature module is used to sign the target smart contract that has been signed by the second real-world node, provided that the target smart contract has been verified. The first broadcast module is further configured to broadcast the target smart contract signed by the first real node to the blockchain network, so that the second real node can control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node.
10. A transaction method applied to a second real-world node, the second real-world node comprising: The third acquisition module is used to obtain target transaction information from the blockchain network based on the identity identifier of the second virtual node; The target transaction information includes transaction negotiation information determined by the first virtual node and the second virtual node, as well as the identity identifier of the second virtual node; the first virtual node is the node corresponding to the first real node in the virtual environment, and the second virtual node is the node corresponding to the second real node in the virtual environment; The first generation module is used to generate a target smart contract based on the target transaction information if the target transaction information is verified. The second signature module is used to sign the target smart contract and broadcast the target smart contract signed by the second node to the blockchain network, so that the first real node can sign the target smart contract signed by the second real node if the target smart contract is verified. The first control module is used to control the second virtual node to transfer the virtual transaction resources corresponding to the target transaction information to the first virtual node based on the target smart contract obtained from the blockchain network and signed by the first real node.