• Complain

Kenny Vaneetvelde [Kenny Vaneetvelde] - Ethereum Projects for Beginners

Here you can read online Kenny Vaneetvelde [Kenny Vaneetvelde] - Ethereum Projects for Beginners full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: Packt Publishing, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Kenny Vaneetvelde [Kenny Vaneetvelde] Ethereum Projects for Beginners

Ethereum Projects for Beginners: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Ethereum Projects for Beginners" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Understand the Ethereum platform to build distributed applications that are secured and decentralized using blockchain technology

Key Features
  • Build your own decentralized applications using real-world blockchain examples
  • Implement Ethereum for building smart contracts and cryptocurrency applications with easy-to-follow projects
  • Enhance your application security with blockchain
Book Description

Ethereum enables the development of efficient, smart contracts that contain code. These smart contracts can interact with other smart contracts to make decisions, store data, and send Ether to others.Ethereum Projects for Beginners provides you with a clear introduction to creating cryptocurrencies, smart contracts, and decentralized applications. As you make your way through the book, youll get to grips with detailed step-by-step processes to build advanced Ethereum projects. Each project will teach you enough about Ethereum to be productive right away. You will learn how tokenization works, think in a decentralized way, and build blockchain-based distributed computing systems. Towards the end of the book, you will develop interesting Ethereum projects such as creating wallets and secure data sharing.By the end of this book, you will be able to tackle blockchain challenges by implementing end-to-end projects using the full power of the Ethereum blockchain.

What you will learn
  • Develop your ideas fast and efficiently using the Ethereum blockchain
  • Make writing and deploying smart contracts easy and manageable
  • Work with private data in blockchain applications
  • Handle large files in blockchain applications
  • Ensure your decentralized applications are safe
  • Explore how Ethereum development frameworks work
  • Create your own cryptocurrency or token on the Ethereum blockchain
  • Make sure your cryptocurrency is ERC20-compliant to launch an ICO
Who this book is for

This book is for individuals who want to build decentralized applications using blockchain technology and the power of Ethereum from scratch. Some prior knowledge of JavaScript is required, since most examples use a web frontend.

Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Kenny Vaneetvelde [Kenny Vaneetvelde]: author's other books


Who wrote Ethereum Projects for Beginners? Find out the surname, the name of the author of the book and a list of all author's works by series.

Ethereum Projects for Beginners — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Ethereum Projects for Beginners" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Ethereum outside the browser

This section will teach us to work with Ethereum outside the browser. Standard libraries that can be used on Java, Python, Go, or .NET have been developed by the Ethereum team. These are accessible directly from GitHub at https://github.com/ethereum.

One essential feature that you need in order to use Ethereum outside your browser is a connection to the Ethereum network. This connection can be directthat is, connected directly to your applicationor you can use a relay server. Even though using a relay server is not an optimal option, it is completely possible. To use a relay server, you first need to have a server of your own that is centralized in nature and only accepts presigned transactions.

Another requirement that is necessary for using Ethereum outside your browser is the Ethereum library of the language that you will be using to develop it. This is optional because we always start any transaction with raw data. To get a transaction going on the Ethereum network, we need to encode the raw data and assign a private key to it. The transaction is protected from modification because it is signed with a private key. After this, you can send it to the network. This can be done with the help of a relay server. There is some selective muting that takes place, and hence it is a more reliable option to make sure that you send the transactions to the networks by yourself. The following links can be used to do this, depending upon the software that you are using:

  • If you are a Python user, the Web3.py library can be used. It is freely available at https://github.com/ethereum/web3.py.
  • If you are an avid Java user, the Java library is available on the Web3J GitHub account, which can be found at https://github.com/web3j/web3j.

For any other implementations, you can find the libraries under the Ethereum GitHub account at https://github.com/ethereum/. Golem is a great example of using Ethereum outside your browser. We have already taken a look at this in the first chapter. Golem computes off-chain, but verifies all the computing that has been done on-chain. This allows a massive amount of distributed computing power. For further information, you can refer to the Golem Github page and check out the codes in the repository at https://github.com/golemfactory/golem.

Installing OpenZepplin Solidity

OpenZeppelin is basically just a collection of smart contracts that you can import into your own smart contracts in order to speed up your development. They can also make your smart contracts much more secure from the get-go.

You can visit the OpenZeppelin GitHub page at OpenZeppelin Github :

If you have been browsing through the Truffle websitetruffleframeworkcomthen - photo 1

If you have been browsing through the Truffle websitetruffleframework.comthen you have probably come across Ganache. We will be using it throughout this section. Ganache is a GUI that is basically easier to navigate with than TestRPC, but while doing all the same things as TestRPC. You can download it for Windows or any other OS if you go to Ganache's GitHub page at Ganache GitHub.

The ethereumjs-testrpc has been deprecated and it has been renamed to ganache-cli. For detailed information you can visit the following link: https://www.npmjs.com/package/ethereumjs-testrpc.

After downloading it, you can run it. Upon opening the application, you will see a UI similar to the following screenshot:

Ganache This should be familiar These are your 10 accounts that are generated - photo 2
Ganache

This should be familiar: These are your 10 accounts that are generated by TestRPC. You can see your blocks, your transactions, and your logs.

Summary

This chapter took us on a journey where we learned how to handle large data files on a blockchain. Given that data sensitivity is a concept that is a necessity given the current developments in the World, we learned some simple methods to implement the security of a blockchain. We then learned about the process of verifying the identity of a real-world user on a blockchain with the help of third parties, and learned how to sign a document with the help of a blockchain.
The next chapter will teach us the basic concepts and methods required to use Ethereum outside our browsers, and also how it is used as the backbone of the IoT. We will also take a quick glance at the physical components that make up a blockchain.

PacktPub.com

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.

At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.

Bug fixing and debugging smart contracts

This section tells you how to go about bug fixing and debugging your code. Usually, the code will be debugged in the developer console which is similar to developing regular JavaScript code. If there is an error present in the JavaScript code, you could easily rectify it on the developer console. However, if the bug is in your smart contract, you are going to want to go a bit deeper. How are you going to debug your smart contract once it is live? Well, you cannotnot locally at least. What if somebody finds a bug? You need to find out where it came from. For these very reasons, we can use remix.ethereum.org and etherscan.io.

The modified version of the MetaCoin Solidity file found at remix.ethereum.org is as follows:

You can create this file yourself by clicking the little plus icon in the - photo 3

You can create this file yourself by clicking the little plus icon in the top-left corner and giving it a name of your choice. Once you compile this code, you will notice a green bar which indicates that the code has been compiled successfully. Let us try introducing an error by eliminating a semicolon; the bar will now turn red, indicating that there is some error that you need to rectify.

The following screenshot will help you understand the various tabs present on your screen:

The Run tab encapsulates the Environment section where we should make sure to - photo 4

The Run tab encapsulates the Environment section, where we should make sure to select JavaScript VM as the environment that we wish to work on. This allows us to simulate the Ethereum blockchain within our browser, which is something similar to what TestRPC did.

You may notice that the constructor of the MetaCoin Solidity file now contains a firstHolder parameter. The firstHolder will be the first person to get 10,000 MetaCoins. You can vary the person who gets to be the firstHolder. You can select any account at random. You then need to make sure you copy it and give it as a parameter for the constructor. For addresses, it's usually a good idea to put them between quotes.

Upon creating a MetaCoin, the lower half of your screen will display a window that contains your transaction. It looks something as shown in the following screenshot:

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Ethereum Projects for Beginners»

Look at similar books to Ethereum Projects for Beginners. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Ethereum Projects for Beginners»

Discussion, reviews of the book Ethereum Projects for Beginners and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.