Book Image

Blockchain for Enterprise

By : Narayan Prusty
Book Image

Blockchain for Enterprise

By: Narayan Prusty

Overview of this book

The increasing growth in blockchain use is enormous, and it is changing the way business is done. Many leading organizations are already exploring the potential of blockchain. With this book, you will learn to build end-to-end enterprise-level decentralized applications and scale them across your organization to meet your company's needs. This book will help you understand what DApps are and how the blockchain ecosystem works, via real-world examples. This extensive end-to-end book covers every blockchain aspect for business and for developers. You will master process flows and incorporate them into your own enterprise. You will learn how to use J.P. Morgan’s Quorum to build blockchain-based applications. You will also learn how to write applications that can help communicate enterprise blockchain solutions. You will learn how to write smart contracts that run without censorship and third-party interference. Once you've grasped what a blockchain is and have learned about Quorum, you will jump into building real-world practical blockchain applications for sectors such as payment and money transfer, healthcare, cloud computing, supply chain management, and much more.
Table of Contents (14 chapters)
Title Page
Packt Upsell

The different types of data

Solidity is a statically-typed language; the type of data the variable holds needs to be predefined. All the bits of the variables are assigned to zero by default. In Solidity, variables are function-scoped; that is, a variable declared anywhere within a function will be in scope for the entire function regardless of where it is declared.

The following are the data types provided by Solidity:

  • The most simple data type is bool. It can hold either true or false.
  • uint8, uint16, uint24, up to uint256 are used to hold unsigned integers of 8 bits, 16 bits, 24 bits, up to 256 bits, respectively. Similarly, int8, int16 up to int256 are used to hold signed integers of 8 bits, 16 bits up to 256 bits, respectively. uint and int are aliases for uint256 and int256ufixed and fixed represent fractional numbers. ufixed0x8, ufixed0x16 up to ufixed0x256 are used to hold unsigned fractional numbers of 8 bits, 16 bits up to 256 bits, respectively. Similarly, fixed0x8, fixed0x16 up...