Skip to Content
Blockchain Quick Reference
book

Blockchain Quick Reference

by Brenn Hill, Samanyu Chopra, Paul Valencourt
August 2018
Beginner to intermediate
350 pages
11h 58m
English
Packt Publishing
Content preview from Blockchain Quick Reference

Ethereum virtual machine

Ethereum virtual machine (EVM) is a simple stack-based execution machine and acts as a runtime environment for the smart contracts. The word size of EVM is 256-bits, which is also the size limit for each stack item. The stack has a maximum size of 1,024 elements and works on the Last in First Out (LIFO) queue system. EVM is a Turing-complete machine but is limited by the amount of gas that is required to run any instructions. Gas acts as a propellant with computation credits, which makes sure any faulty code or infinite loops cannot run, as the machine will stop executing instructions once the gas is exhausted. The following diagram illustrates an EVM stack:

EVM supports exception handling in case of an exception ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Blockchain for Decision Makers

Blockchain for Decision Makers

Romain Tormen
Blockchain Success Stories

Blockchain Success Stories

Sir John Hargrave, Evan Karnoupakis
Blockchain across Oracle

Blockchain across Oracle

Robert van Molken, Sven Bernhardt, Francisco Arturo Viveros

Publisher Resources

ISBN: 9781788995788