A virtual machine serves as the layer between the executing software and executing machine. It also allows multiple applications to run independently of each other. A great example of a virtual machine in the blockchain ecosystem is the #Ethereum #Virtual #Machine (#EVM).
#EVM is a distributed state machine that can not only create a decentralized currency, such as #Bitcoin or #Ethereum but also #decentralized applications using smart contracts.
To achieve this, #EVM updates states of the applications built on top of it, in each creation of the new block.
The #EVM executes as a stack machine with a depth of 1,024 items. Each one of these items is a 256-bit word, which was chosen for the ease of use with 256-bit cryptography such as Keccak-256 hashes or secp256k1 signatures.
☑️ Read more:
coremultichain.com
☑️ Contribution on:
cmcx.io
#CORE #CMCX #smartcontract #smartcontracts #CoreMultiChain #blockchain
#EVM is a distributed state machine that can not only create a decentralized currency, such as #Bitcoin or #Ethereum but also #decentralized applications using smart contracts.
To achieve this, #EVM updates states of the applications built on top of it, in each creation of the new block.
The #EVM executes as a stack machine with a depth of 1,024 items. Each one of these items is a 256-bit word, which was chosen for the ease of use with 256-bit cryptography such as Keccak-256 hashes or secp256k1 signatures.
☑️ Read more:
coremultichain.com
☑️ Contribution on:
cmcx.io
#CORE #CMCX #smartcontract #smartcontracts #CoreMultiChain #blockchain
At the #CORE instruction set of the #virtual machine, #opcodes are instructions used to execute specific tasks. Altogether, there are 140 opcodes which together make the #EVM turing complete.
It is able to compute almost anything provided enough resources are available. Since each opcode is one byte in size, there can only be a maximum of 256 opcodes. All of these opcodes can be split into the following categories:
▫️Stack-manipulating opcodes
▫️Arithmetic/comparison/bitwise opcodes
▫️Environmental opcodes
▫️Memory-manipulating opcodes
▫️Storage-manipulating opcodes
▫️Program counter related opcodes
▫️Halting opcodes
To store these opcodes efficiently, the virtual machine makes use of bytecodes to encode the #opcodes.
☑️ Read more:
coremultichain.com
☑️ Contribution on:
cmcx.io
It is able to compute almost anything provided enough resources are available. Since each opcode is one byte in size, there can only be a maximum of 256 opcodes. All of these opcodes can be split into the following categories:
▫️Stack-manipulating opcodes
▫️Arithmetic/comparison/bitwise opcodes
▫️Environmental opcodes
▫️Memory-manipulating opcodes
▫️Storage-manipulating opcodes
▫️Program counter related opcodes
▫️Halting opcodes
To store these opcodes efficiently, the virtual machine makes use of bytecodes to encode the #opcodes.
☑️ Read more:
coremultichain.com
☑️ Contribution on:
cmcx.io