Skip to main content
Top

2018 | Book

Ethereum for Architects and Developers

With Case Studies and Code Samples in Solidity

insite
SEARCH

About this book

Explore the Ethereum ecosystem step by step with extensive theory, labs, and live use cases. This book takes you through BlockChain concepts; decentralized applications; Ethereum’s architecture; Solidity smart contract programming with examples; and testing, debugging, and deploying smart contracts on your local machine and on the cloud. You’ll cover best practices for writing contracts with ample examples to allow you to write high-quality contracts with optimal usage of fuel. In later chapters, Ethereum for Architects and Developers covers use cases from different business areas, such as finance, travel, supply-chain, insurance, and land registry. Many of these sectors are explained with flowcharts, diagrams, and sample code that you can refer to and further enhance in live projects.
By the end of the book, you will have enough information to use Ethereum to create value for your business processes and build foolproof data storage for smoother execution of business.
What You Will Learn Discover key BlockChain concepts
Master the architecture, building blocks, and ecosystem of Ethereum
Develop smart contracts from scratch
Debug, test, and deploy to test
Take advantage of Ethereum in your business area

Who This Book Is For
BlockChain developers and architects wanting to develop decentralized Ethereum applications or learn its architecture.


Table of Contents

Frontmatter
Chapter 1. The World of Blockchains
Abstract
In my childhood my grandfather used to tell me stories of how to create an immense amount of wealth in a short time, of course in an honest way, and then more importantly how to keep it all safe. While most little girls my age were fascinated by fairytales, I found wealth creation ideas much more alluring and a means to be a powerful someone someday later in life. With time I came to know I was not the only one in this game. People of all ages think about this puzzle of “creation of wealth” and “securing it.” Be it gold, spices, cattle, slaves, land, or oil, wealth has taken on different forms in the exchange of goods between parties and countries. Human history has witnessed many demonetizations where an existing currency is invalidated, followed by remonetization, in which a form of payment is restored as legal tender. Currencies were a mere representation of exchange media and yet carried no value without the backing of kings, emperors, or ruling governments. Cryptocurrency is one such currency; its distribution and exchange are entirely confined to the digital world. Bitcoin might not be the first digital currency, yet it’s the first successful cryptocurrency on the market.
Debajani Mohanty
Chapter 2. Ethereum Architecture
Abstract
According to Forbes, “Ethereum is the first generic blockchain platform that allows users to easily create and deploy their decentralized and trustless applications. It has created incredible opportunities in the fintech space.” This chapter will introduce you to the entire ecosystem of Ethereum. Later chapters will discuss its specific components in more detail.
Debajani Mohanty
Chapter 3. Basic Solidity Programming
Abstract
As mentioned in Chapter 2, Solidity is the most widely used language for writing smart contracts with Ethereum. Basic Solidity programming is quite easy to learn. It’s similar to JavaScript and yet has some features of object-oriented languages such as Java and C++. Hence, some programming experience is desirable before jumping to development in Solidity, although it’s not mandatory.
Debajani Mohanty
Chapter 4. Deploying Smart Contracts
Abstract
Now that you are proficient in smart contract development using Solidity, let’s deploy a contract on an Ethereum network. Deployment can be done in many ways.
Debajani Mohanty
Chapter 5. Integration with the UI
Abstract
Now that you have learned how to write and deploy smart contracts, in this chapter you’ll integrate a smart contract with a web front end. You can interact with a smart contract from your web front end through the Web3.js JavaScript libraries.
Debajani Mohanty
Chapter 6. Advanced Programming in Oraclize and IPFS, and Best Practices
Abstract
You know what the Ethereum architecture looks like, and you have practiced enough basic Solidity programming. Now it’s time to learn some advanced topics such as how to interact with services outside the blockchain by invoking calls through Oraclize, how to optimize gas usage by saving data to IPFS storage, and how to adopt best practices to write production-ready code in Solidity.
Debajani Mohanty
Chapter 7. Frameworks: Truffle and Embark
Abstract
So far we have discussed the Ethereum architecture, Solidity programming, and the Ethereum client, including setting it up and compiling, running, and debugging Dapps. That’s a lot of work, isn’t it? In this chapter, let’s discuss two leading frameworks, Truffle and Embark, that will provide a set of tools and boilerplate code for scaffolding Dapps for Ethereum. The frameworks will do much of the work themselves and leave you with only a few tasks.
Debajani Mohanty
Chapter 8. Testing Strategy for Ethereum Dapps
Abstract
Nowadays cutting-edge technologies such as machine learning, analytics, artificial intelligence, the cloud, and the blockchain are entering the marketplace at an unprecedented speed. The blockchain is one of the forerunners among them and is considered to be the next tech disruptor. According to a survey by the World Economic Forum, 10 percent of the global GDP will be relying on blockchain-based technology by 2027.
Debajani Mohanty
Chapter 9. Ethereum Use Cases
Abstract
In previous chapters, you learned about the Ethereum architecture, Solidity programming, and how to debug and deploy using different local and test setups. So far so good; but is that all enough to make you a master in the Ethereum blockchain? The main challenge that the blockchain market faces today is a lack of knowledge about where this technology can be best applied. Business leaders across verticals are struggling to find use cases that would be a good fit for blockchain implementation, and loads of arguments are taking place in this area. As a blockchain expert, it’s your job to dream, innovate, come up with ideas, and advise businesses about where this technology can bring maximum benefits.
Debajani Mohanty
Chapter 10. Ethereum: What Lies Ahead
Abstract
In the past decade, many blockchain and DLT frameworks have flooded the market, but Ethereum is still the favorite of most blockchain lovers. As per a recent report, “Ethereum currently has the most active developer community in the space and has 30 times more developers than the second most active community.” The Ethereum blockchain does have some issues, yet it’s the market leader in its space, and no other framework is anywhere even close to this framework.
Debajani Mohanty
Backmatter
Metadata
Title
Ethereum for Architects and Developers
Author
Debajani Mohanty
Copyright Year
2018
Publisher
Apress
Electronic ISBN
978-1-4842-4075-5
Print ISBN
978-1-4842-4074-8
DOI
https://doi.org/10.1007/978-1-4842-4075-5

Premium Partner