Smart Contracts and Virtual Machine Environment (VME)
Voluntary Smart Contract Execution Model
-
Operating smart contracts incurs substantial computational and storage burdens. Executing smart contracts requires substantial computational performance and storage, which can significantly impact network nodes.
-
Locus Chain adopts a selective and non-mandatory approach to smart contract execution. Nodes have the autonomy to execute smart contracts as per their requirements, and not all nodes are obligated to perform these tasks.
-
High-performance nodes, capable of handling additional resource demands, voluntarily participate in executing smart contracts. These nodes contribute additional resources to support smart contract execution within the network.
-
However, the number of smart contracts a single node can execute is constrained to its resource capacities to prevent overloading.
Smart Contract Virtual Machine Environment (VME)
-
Locus Chain’s Virtual Machine (VM) enables nodes to execute manageable volumes of smart contracts through virtual groups. This structure optimizes resource usage and enhances performance.
-
The Virtual Machine Environment (VME) supports simultaneous execution and interaction among multiple VMs on the Locus Chain. This improves the network’s overall ability to execute smart contracts and facilitates collaboration among contracts for complex tasks.
VM Creation: Adding VMs to the VME
-
Multiple VMs can coexist within the Locus Chain VME. Each VM operates independently and is configured for specific purposes.
-
A VM is established by an initiator, who gathers initial capital and participant nodes to apply for VM creation. The initiator sets the operating conditions and environment for the VM.
-
The VM’s execution language, environment, and conditions are determined by the initiator to meet specific requirements. For instance, Locus Chain’s default Ethereum-compatible VM allows any participant to register and execute necessary smart contracts.
-
The primary purpose of a VM is smart contract execution. When all smart contracts within a VM are completed and no further executions occur, the VM can be liquidated, and its resources reclaimed.
Node Participation in VMs
-
Nodes with adequate additional resources can voluntarily join a Virtual Machine (VM) to support smart contract execution. Participation is determined by each node’s resource availability.
-
Participation and withdrawal conditions for nodes are defined separately for each VM. Nodes can join or leave VMs according to these rules.
-
Nodes participating in VMs provide additional CPU and storage resources to support VM operations. In return, they receive rewards beyond the standard Locus Chain mining rewards.
VM Transactions
-
Smart contract accounts within VMs utilize the existing Locus Chain account structure, eliminating the need for separate address systems.
-
All transactions generated during smart contract execution are recommended to be directly recorded in the Locus Chain ledger. This ensures transparent execution histories.
-
Smart contract calls and executions occur as transactions issued through the Locus Chain ledger, processed similarly to other data transfers.
-
Execution results are recorded in the ledger, allowing other accounts and VMs to verify outcomes. This enables seamless interactions between smart contracts across different VMs.
Summary
-
Virtual Machine Execution (VME) is an innovative concept introduced by Locus Chain, designed for high-performance smart contract execution. This system distributes execution loads to maximize network efficiency, making it a leading tool for next-generation blockchain technology.
-
Locus Chain directly records smart contract data in its high-performance ledger, bypassing intermediate processes. This approach maintains data integrity while significantly increasing processing speed, making it ideal for environments requiring rapid and transparent data handling.
-
The VME supports multiple smart contract languages and efficient communication between different contracts, providing users with a powerful and flexible interface for handling complex tasks. This establishes Locus Chain as a versatile platform for diverse applications.