A method and apparatus for implementing a blockchain virtual machine that integrates a physical engine.

By introducing a consensus module and a physical engine virtual machine into the blockchain virtual machine, the problem of inconsistency in the simulation of the physical engine among blockchain nodes is solved, ensuring the consistency of user location verification and improving the distributed consistency of the Metaverse project.

CN116257321BActive Publication Date: 2026-06-30HANGZHOU RIVTOWER TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU RIVTOWER TECH CO LTD
Filing Date
2022-12-29
Publication Date
2026-06-30

Smart Images

  • Figure CN116257321B_ABST
    Figure CN116257321B_ABST
Patent Text Reader

Abstract

This specification discloses a method and apparatus for implementing a blockchain virtual machine with an integrated physics engine. The method involves: a blockchain virtual machine running on a blockchain node, comprising a consensus module and a physics engine virtual machine; including: calling the consensus module to receive physical quantities input from a client; calling the consensus module to submit the physical quantities to the blockchain node for consensus; wherein the consensus process includes calling the physics engine virtual machine to verify the physical quantities according to preset physics simulation rules; after consensus is reached, submitting the physical quantities to the physics engine virtual machine to execute corresponding physics simulation operations and obtain corresponding physics simulation results; and sending the physics simulation results to the client. This invention integrates the physics engine functionality into the blockchain virtual machine, ensuring that physics simulation results are achieved through blockchain consensus, thus improving the distributed consistency of the Metaverse project.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of computer software technology, and in particular to a method, apparatus, electronic device and storage medium for implementing a blockchain virtual machine with an integrated physical engine. Background Technology

[0002] In metaverse-like projects that require physics simulation, the fact that the physics simulation portion has not yet been delegated to blockchain consensus may cause the following problems: First, the simulations performed by the physics engine on different blockchain nodes cannot be synchronized like centralized applications, resulting in inconsistencies in the physics simulations across nodes. Alternatively, the introduction of a centralized physics engine node could undermine the decentralized nature of the blockchain. Second, when a transaction needs to be initiated at a specific virtual location, blockchain nodes cannot verify whether the user's location is consistent with other nodes. Therefore, how to incorporate the physics simulation functionality of the physics engine into the blockchain, enabling the blockchain to process the input of the physics simulation and produce consistent results across different nodes, is a pressing technical problem that needs to be solved. Summary of the Invention

[0003] The purpose of the embodiments in this specification is to address the above-mentioned problems by providing a method, apparatus, electronic device, and storage medium for implementing a blockchain virtual machine with an integrated physical engine.

[0004] To solve the above-mentioned technical problems, the embodiments in this specification are implemented as follows:

[0005] Firstly, a method for implementing a blockchain virtual machine that integrates a physical engine is proposed. The blockchain virtual machine running on the blockchain node includes a consensus module and a physical engine virtual machine. The method includes:

[0006] The consensus module is invoked to receive physical quantities input from the client;

[0007] The consensus module is invoked to submit the physical quantity to the blockchain node for consensus; wherein, the consensus process includes, according to preset physical simulation rules, invoking the physical engine virtual machine to verify the physical quantity;

[0008] Once consensus is reached, the physical quantities are submitted to the physics engine virtual machine to perform the corresponding physics simulation operations and obtain the corresponding physics simulation results.

[0009] The physical simulation results are sent to the client.

[0010] Furthermore, the physical engine virtual machine is a deterministic physical engine virtual machine, so that the execution results of the blockchain nodes are the same and the number of simulations of the physical engine virtual machine increases synchronously with the block height corresponding to the blockchain; the block corresponds to one or more physical simulations based on the computing performance.

[0011] Furthermore, the physical quantities include: the target, direction, magnitude, and time of the external force applied to the object, and / or the target object and the strength of the connecting force, and / or the triggering event; the physical simulation rules include: simulation Newtonian mechanics model, kinematic model, dynamic model, connection constraint model, collision detection model and / or ray detection model.

[0012] Furthermore, the physical engine virtual machine is invoked to verify the physical quantity, including:

[0013] Verify whether the input physical quantity is consistent with the physical quantity maintained in the physics engine virtual machine; and / or,

[0014] Verify whether there are duplicate or mutually exclusive physical quantity inputs in the same block.

[0015] Furthermore, the blockchain virtual machine also includes an Ethereum Virtual Machine (EVM), so that the physical engine virtual machine can receive the verification request from the Ethereum Virtual Machine (EVM) and feed back the verification result to the Ethereum Virtual Machine (EVM).

[0016] Furthermore, the method also includes: after consensus is reached, the Ethereum Virtual Machine (EVM) sends a verification request to the Physics Engine Virtual Machine to verify the physical quantity, and the EVM sends the verified physical simulation result to the client.

[0017] Secondly, a blockchain virtual machine implementation device integrating a physical engine is proposed. The blockchain virtual machine running on the blockchain node includes a consensus module and a physical engine virtual machine; the device includes:

[0018] The first unit is capable of calling the consensus module to receive physical quantities input by the client;

[0019] The second unit is capable of calling the consensus module to submit the physical quantity to the blockchain node for consensus; wherein, the consensus process includes calling the physical engine virtual machine to verify the physical quantity according to preset physical simulation rules;

[0020] The third unit is able to submit the physical quantity to the physical engine virtual machine after consensus is reached, so as to perform the corresponding physical simulation operation and obtain the corresponding physical simulation result;

[0021] The fourth unit is capable of sending the physical simulation results to the client.

[0022] Furthermore, the blockchain virtual machine also includes an Ethereum Virtual Machine (EVM), so that the physical engine virtual machine can receive the verification request from the Ethereum Virtual Machine (EVM) and feed back the verification result to the Ethereum Virtual Machine (EVM).

[0023] Furthermore, the device also includes:

[0024] The fifth unit is used to send a verification request from the Ethereum Virtual Machine (EVM) to the Physics Engine Virtual Machine (PEM) to verify the physical quantity after consensus is reached, and to send the verified physical simulation result from the EVM to the client.

[0025] Thirdly, an electronic device is proposed, characterized in that it comprises:

[0026] Processor; and

[0027] A memory is configured to store computer-executable instructions, which, when executed, cause the processor to perform the blockchain virtual machine implementation method of the fused physical engine described in the first aspect.

[0028] Fourthly, a computer-readable storage medium is proposed, characterized in that the computer-readable storage medium stores one or more programs, which, when executed by an electronic device including multiple applications, cause the electronic device to execute the blockchain virtual machine implementation method of the fused physical engine described in the first aspect.

[0029] This manual can achieve at least the following technical effects:

[0030] The present invention integrates the physics engine function into the blockchain virtual machine, ensuring that the physics simulation results are realized through blockchain consensus, thereby improving the distributed consistency of the Metaverse project. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0032] Figure 1 This is one of the schematic diagrams illustrating the implementation method of the blockchain virtual machine with the fusion physical engine provided in the embodiments of this specification.

[0033] Figure 2 This is the second schematic diagram of the implementation method of the blockchain virtual machine with integrated physical engine provided in the embodiments of this specification.

[0034] Figure 3 This is the third schematic diagram of the implementation method of the blockchain virtual machine with integrated physical engine provided in the embodiments of this specification.

[0035] Figure 4 The fourth schematic diagram illustrates the implementation method of the blockchain virtual machine with integrated physical engine provided in the embodiments of this specification.

[0036] Figure 5 The fifth schematic diagram illustrates the implementation method of the blockchain virtual machine with integrated physical engine provided in the embodiments of this specification.

[0037] Figure 6 This is one of the schematic diagrams of a blockchain virtual machine implementation device with a fused physical engine provided in the embodiments of this specification.

[0038] Figure 7 This is the second schematic diagram of a blockchain virtual machine implementation device with an integrated physical engine provided in the embodiments of this specification.

[0039] Figure 8 This is a schematic diagram of the structure of an electronic device provided as an embodiment of this specification. Detailed Implementation

[0040] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this specification.

[0041] Key terms

[0042] A blockchain virtual machine (VM) is essentially a virtualized version of another system within the existing system. This includes: at the code level, language-to-language conversion for programmer convenience; at the data level, cross-chain conversion from one blockchain to another; and at the real-world level, the mutual conversion between the blockchain and the existing internet. In short, code-level conversion reduces development difficulty, data-level conversion solves cross-chain transactions, and real-world conversion addresses practical applications. Currently, blockchain VMs are primarily used at the code level, but data-level conversions have also begun, for example, in decentralized exchanges and blockchain network platforms that provide NFT token creation. The Ethereum Virtual Machine (EVM) is also a blockchain VM; it's a code runtime environment built on the Ethereum blockchain, but the VM itself isn't stored within the blockchain itself. Instead, it's stored simultaneously on the computers of various nodes, just like the blockchain. Each verification node participating in the Ethereum network runs the VM as part of the block validity verification protocol. Each node performs the same calculations and stores the same data for contract deployment and invocation to ensure the most accurate results are recorded within the blockchain.

[0043] A physics engine virtual machine calculates the motion and dynamics between objects and the scene, between objects and characters, and between objects in a 2D or 3D scene. In virtual reality system development, developers can combine physics engines with rendering engines, which not only shortens the development cycle but also produces excellent results. Furthermore, with the development of virtual reality technology, physics engines are increasingly being used in games, animation, film, military simulations, and many other fields. The foundation of a physics engine is system dynamics. Dynamics is the mathematical description of the laws governing the motion of objects in the real world, primarily based on ordinary differential equations (ODEs). The core task of a physics engine is to solve these ODEs. A rigid body is an idealized model that describes objects in the real world with small or negligible deformations. Physics engines are generally divided into two categories: real-time based and high-precision based.

[0044] Deterministic physics engine: Based on the physics engine, it guarantees that the same simulation results will be obtained on different computers with the same number of simulations and the same input. The number of times the physics engine performs physics simulation operations is called the number of simulations.

[0045] The following section provides a detailed description of a blockchain virtual machine implementation scheme that integrates a physical engine, as discussed in this specification, through specific examples.

[0046] This invention focuses on how to integrate the physics simulation functionality of a physics engine into a blockchain, enabling the blockchain to process the input of physics simulations and produce consistent results across different nodes. In metaverse-like projects requiring physics simulation, delegating the simulation portion to blockchain consensus may cause the following problems: First, simulations performed by the physics engine on different blockchain nodes cannot be synchronized like in centralized applications, leading to inconsistencies in the simulations across nodes, or the need to introduce a centralized physics engine node, which undermines the decentralized nature of the blockchain; second, when a transaction needs to be initiated at a specific virtual space location, blockchain nodes cannot verify whether the user's location is consistent with other nodes. Therefore, the invention addresses how to integrate the physics simulation functionality of a physics engine into the blockchain, enabling the blockchain to process the input of physics simulations and produce consistent results across different nodes.

[0047] Example 1

[0048] This invention's implementation scheme for a blockchain virtual machine with an integrated physics engine is illustrated using the Metaverse project's simulated virtual space as an example. In an interactive scenario within a Metaverse project, assume a user needs to move to a designated store area within the virtual space to purchase goods within that store. Therefore, firstly, the user inputs a walking operation, such as moving towards the store at a speed of 1 m / s from position (0, 0, 0). Secondly, the user's input undergoes consensus processing via the blockchain's consensus mechanism. During this process, the physics engine verifies the user's input, checking for speed limits, consistency between the input location information and the current location information maintained in the physics engine, and whether there are duplicates within the same block (e.g., multiple identical inputs from the user) or mutually exclusive operations (e.g., multiple opposite inputs from the user or physical inputs from different users operating the same object). Thirdly, once the block consensus is passed, it is executed by the physics engine virtual machines of each blockchain node. Because it is a deterministic physics engine, the results of execution by each node are identical and synchronized. The simulation count in the physics engine virtual machine grows synchronously with the blockchain blocks, simulating new physical results. Finally, the user queries their current location information and applies it locally. If the virtual location simulated in the blockchain has reached the store, the user's purchase transaction for that store will also be able to pass the blockchain consensus. Therefore, the technical idea of ​​the blockchain virtual machine implementation scheme with an integrated physical engine in the embodiments of the invention is to add a physical engine virtual machine to the blockchain virtual machine in addition to the consensus module that executes the consensus algorithm, such as... Figure 1As shown, user input is consensus-based through the blockchain's consensus mechanism, during which the physical engine verifies the user's input. Then, once the block consensus is passed, it is handed over to the physical engine virtual machines of each blockchain node for execution. Because it is a deterministic physical engine, the results of execution by each node are identical, achieving synchronization. The number of simulations in the physical engine virtual machine will increase synchronously with the number of blocks in the blockchain, simulating new physical results.

[0049] To this end, the blockchain virtual machine running on the blockchain node includes a consensus module and a physical engine virtual machine. Optionally, the physical engine virtual machine is a deterministic physical engine virtual machine, to ensure that the execution results of the blockchain node are the same and that the number of simulations by the physical engine virtual machine grows synchronously with the block height corresponding to the blockchain; the block corresponds to one or more physical simulations depending on the computing performance. It should be noted that since the physical engine simulation speed is relatively fast, while the blockchain consensus process is relatively slow, a block can correspond to multiple physical simulation processes, for example, a block corresponds to 100 physical simulations, thus balancing the time consumed by the blockchain consensus process with the time consumed by the physical simulation.

[0050] like Figure 2 The diagram illustrates a blockchain virtual machine implementation method integrating a physical engine according to an embodiment of the present invention, comprising:

[0051] S1: Invoke the consensus module to receive physical quantities input from the client. Optionally, the physical quantities include: the target, direction, magnitude, and time of the external force applied to the object, and / or the target object and the strength of the connection force, and / or the triggering event.

[0052] S2: Invoke the consensus module to submit the physical quantity to the blockchain node for consensus; wherein, the consensus process includes, according to preset physical simulation rules, invoking the physical engine virtual machine to verify the physical quantity.

[0053] Optionally, the physical simulation rules include: simulating Newtonian mechanics models, kinematic models, dynamic models, connection constraint models, collision detection models, and / or ray detection models. Specifically, the metaverse project of this invention simulates virtual space, which involves kinematic models.

[0054] Optionally, such as Figure 3 As shown, the physical engine virtual machine is invoked to verify the physical quantity, including:

[0055] S31: Whether the input physical quantity is consistent with the physical quantity maintained in the physics engine virtual machine;

[0056] S32: Are there duplicate or mutually exclusive physical quantity inputs in the same block?

[0057] S3: Once consensus is reached, the physical quantity is submitted to the physical engine virtual machine to perform the corresponding physical simulation operation and obtain the corresponding physical simulation result.

[0058] S4: Send the physical simulation results to the client.

[0059] Optionally, when the blockchain virtual machine also includes the Ethereum Virtual Machine (EVM), the physical engine virtual machine receives the verification request from the EVM and feeds back the verification result to the EVM, such as... Figure 4 As shown. Therefore, this is another implementation of the blockchain virtual machine implementation method with integrated physical engine according to the embodiments of the present invention, as follows: Figure 5 As shown, the method further includes:

[0060] S5: After consensus is reached, the Ethereum Virtual Machine (EVM) sends a verification request to the Physics Engine Virtual Machine to verify the physical quantity, and the EVM sends the verified physical simulation result to the client.

[0061] The present invention integrates the physics engine function into the blockchain virtual machine, ensuring that the physics simulation results are realized through blockchain consensus, thereby improving the distributed consistency of the Metaverse project.

[0062] Example 2

[0063] Figure 6 This is a schematic diagram of a blockchain virtual machine implementation device 600 that integrates a physical engine, provided as an embodiment of this specification. Please refer to... Figure 6 In one embodiment, a blockchain virtual machine implementation device 600 integrating a physical engine is provided. The blockchain virtual machine running on the blockchain node includes a consensus module and a physical engine virtual machine; the device includes:

[0064] The first unit 601 is capable of calling the consensus module to receive physical quantities input by the client;

[0065] The second unit 602 is capable of calling the consensus module to submit the physical quantity to the blockchain node for consensus; wherein, the consensus process includes calling the physical engine virtual machine to verify the physical quantity according to preset physical simulation rules;

[0066] The third unit 603 is able to submit the physical quantity to the physical engine virtual machine after consensus is reached, so as to perform the corresponding physical simulation operation and obtain the corresponding physical simulation result;

[0067] Unit 604 is capable of sending the physical simulation results to the client.

[0068] like Figure 7 The diagram illustrates another implementation of the blockchain virtual machine implementation device 600 with an integrated physical engine, as described in this embodiment of the invention. Optionally, the blockchain virtual machine further includes an Ethereum Virtual Machine (EVM), enabling the physical engine virtual machine to receive a verification request from the EVM and return the verification result to the EVM. The device 600 also includes:

[0069] Unit 605 is used to send a verification request from the Ethereum Virtual Machine (EVM) to the Physical Engine Virtual Machine to verify the physical quantity after consensus is reached, and to send the verified physical simulation result from the Ethereum Virtual Machine (EVM) to the client.

[0070] It should be understood that the blockchain virtual machine implementation device 600 with integrated physical engine in one embodiment of this specification can also execute... Figures 1 to 5 A method for implementing a blockchain virtual machine using a fusion physical engine, and for implementing the fusion physical engine in a blockchain virtual machine implementation device (or device). Figures 1 to 5 The functionality of the example shown will not be elaborated upon here.

[0071] Example 3

[0072] Figure 8 This is a schematic diagram of the structure of an electronic device according to one embodiment of this specification. Please refer to it. Figure 8 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and memory. The memory may include main memory, such as high-speed random-access memory (RAM), or non-volatile memory, such as at least one disk drive. Of course, the electronic device may also include other hardware required for other business operations.

[0073] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0074] Memory is used to store programs. Specifically, programs may include program code, which includes computer operation instructions. Memory may include main memory and non-volatile memory, and provides instructions and data to the processor.

[0075] The processor reads the corresponding computer program from non-volatile memory into main memory and then executes it, forming a shared resource access control mechanism at the logical level. The processor executes the program stored in memory and specifically performs the following operations:

[0076] The blockchain virtual machine running on the blockchain node includes a consensus module and a physical engine virtual machine; the method includes:

[0077] The consensus module is invoked to receive physical quantities input from the client;

[0078] The consensus module is invoked to submit the physical quantity to the blockchain node for consensus; wherein, the consensus process includes, according to preset physical simulation rules, invoking the physical engine virtual machine to verify the physical quantity;

[0079] Once consensus is reached, the physical quantities are submitted to the physics engine virtual machine to perform the corresponding physics simulation operations and obtain the corresponding physics simulation results.

[0080] The physical simulation results are sent to the client.

[0081] The above is as described in this instruction manual. Figures 1 to 5The illustrated embodiment discloses a blockchain virtual machine implementation method integrating a physical engine, which can be applied to or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this specification. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this specification can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0082] Of course, in addition to the software implementation, the electronic devices in the embodiments of this specification do not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0083] Example 4

[0084] This specification also provides an embodiment of a computer-readable storage medium that stores one or more programs, the one or more programs including instructions, the instructions being included in a plurality of programs.

[0085] When the program is executed on a portable electronic device, it enables the portable electronic device to perform... Figures 1 to 5 The illustrated embodiment provides a blockchain virtual machine implementation method that integrates a physical engine, and specifically performs the following methods:

[0086] The blockchain virtual machine running on the blockchain node includes a consensus module and a physical engine virtual machine; the method includes:

[0087] The consensus module is invoked to receive physical quantities input from the client;

[0088] The consensus module is invoked to submit the physical quantity to the blockchain node for consensus; wherein...

[0089] The consensus process includes calling the physical engine virtual machine to verify the physical quantities according to preset physical simulation rules;

[0090] 5. Once consensus is reached, the physical quantities are submitted to the physics engine virtual machine to perform the corresponding physics simulation operation and obtain the corresponding physics simulation results;

[0091] The physical simulation results are sent to the client.

[0092] In summary, the above description is merely a preferred embodiment of this specification and is not intended to limit this specification.

[0093] The scope of protection. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this specification shall be included within the scope of protection of this specification.

[0094] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or physical entities, or by products with certain functions. A typical implementation device is a computer.

[0095] Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game controller, a tablet computer, a wearable device, or any combination of these devices.

[0096] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0097] It should also be noted that 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. Without further limitation, 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 said element.

[0098] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

Claims

1. A method for implementing a blockchain virtual machine that integrates a physical engine, characterized in that, The blockchain virtual machine running on the blockchain node includes a consensus module and a physical engine virtual machine; the method includes: The consensus module is invoked to receive physical quantities input from the client; The consensus module is invoked to submit the physical quantity to the blockchain node for consensus; wherein, the consensus process includes, according to preset physical simulation rules, invoking the physical engine virtual machine to verify the physical quantity; Once consensus is reached, the physical quantities are submitted to the physics engine virtual machine to perform the corresponding physics simulation operations and obtain the corresponding physics simulation results. The physical simulation results are sent to the client.

2. The blockchain virtual machine implementation method with integrated physical engine according to claim 1, characterized in that, The physical engine virtual machine is a deterministic physical engine virtual machine, so that the execution results of the blockchain nodes are the same and the number of simulations of the physical engine virtual machine increases synchronously with the block height corresponding to the blockchain; the block corresponds to one or more physical simulations based on the computing performance.

3. The blockchain virtual machine implementation method with integrated physical engine according to claim 1, characterized in that, The physical quantities include: the target, direction, magnitude, and time of the external force applied to the object, and / or the target object and the strength of the connecting force, and / or the triggering event; the physical simulation rules include: simulation Newtonian mechanics model, kinematic model, dynamic model, connection constraint model, collision detection model and / or ray detection model.

4. The blockchain virtual machine implementation method with integrated physical engine according to claim 3, characterized in that, The physical engine virtual machine is invoked to verify the physical quantity, including: Verify whether the input physical quantity is consistent with the physical quantity maintained in the physics engine virtual machine; and / or verify whether there are duplicate or mutually exclusive physical quantity inputs in the same block.

5. The blockchain virtual machine implementation method with integrated physical engine according to claim 1, characterized in that, The blockchain virtual machine also includes the Ethereum Virtual Machine (EVM), enabling the physical engine virtual machine to receive verification requests from the EVM and return the verification results to the EVM.

6. The blockchain virtual machine implementation method with integrated physical engine according to claim 5, characterized in that, Also includes: Once consensus is reached, the Ethereum Virtual Machine (EVM) sends a verification request to the Physics Engine Virtual Machine to verify the physical quantity, and the EVM sends the verified physical simulation result to the client.

7. A blockchain virtual machine implementation device integrating a physical engine, characterized in that, The blockchain virtual machine running on the blockchain node includes a consensus module and a physical engine virtual machine; the device includes: The first unit is capable of calling the consensus module to receive physical quantities input by the client; The second unit is capable of calling the consensus module to submit the physical quantity to the blockchain node for consensus; wherein, the consensus process includes calling the physical engine virtual machine to verify the physical quantity according to preset physical simulation rules; The third unit is able to submit the physical quantity to the physical engine virtual machine after consensus is reached, so as to perform the corresponding physical simulation operation and obtain the corresponding physical simulation result; The fourth unit is capable of sending the physical simulation results to the client.

8. The blockchain virtual machine implementation apparatus with integrated physical engine according to claim 7, characterized in that, The blockchain virtual machine also includes the Ethereum Virtual Machine (EVM), enabling the physical engine virtual machine to receive verification requests from the EVM and return the verification results to the EVM.

9. The blockchain virtual machine implementation apparatus with integrated physical engine according to claim 8, characterized in that, Also includes: The fifth unit is used to send a verification request from the Ethereum Virtual Machine (EVM) to the Physics Engine Virtual Machine (PEM) to verify the physical quantity after consensus is reached, and to send the verified physical simulation result from the EVM to the client.

10. An electronic device, characterized in that, include: processor; And a memory arranged to store computer-executable instructions, which, when executed, cause the processor to perform the blockchain virtual machine implementation method of the fused physical engine as described in any one of claims 1 to 6.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs that, when executed by an electronic device including multiple applications, cause the electronic device to perform the blockchain virtual machine implementation method of the fused physical engine as described in any one of claims 1 to 6.