1

I'm wondering why the Ethereum Virtual Machine (EVM) is used?

What if they didn't use it?

Why don't we have them in Bitcoin?

3

note: I might be wrong

  1. The EVM is actually the core of Ethereum. All contracts are written in EVM bytecode. This doesn't mean that Ethereum includes an actual virtual machine in the sense of Hyper-V, Vmware or Xen. It contains something[*] that can execute EVM bytecode (that something can either be interpreter, jit or aot). So, VM in this case is just a name for emulating the bytecode.
  2. Without the EVM, all transaction types would have to be hardcoded (this would limit capabilities, but would also be much safer).
  3. Why do you think that Bitcoin does not have a VM? It actually has. Script is Bitcoin's bytecode, you can read more about technical details here: https://en.bitcoin.it/wiki/Script
  • 2
    Welcome to Bitcoin.Stackexchange, GiM. Nice debut. ;) I've taken the liberty to switch around a few words in your answer, please take a look if you're happy with my edit and feel free to further amend it to your liking. – Murch Jul 27 '17 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.