Cargando…

Blockchain in Action

Blockchain in Action teaches you how to design and build blockchain-based decentralized apps, and is written in a clear, jargon-free style. First, you'll get an overview of how blockchain works. Next, you'll code your first smart contract using Ethereum and Solidity, adding a web interface...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Ramamurthy, Bina
Formato: Electrónico eBook
Idioma:Indeterminado
Publicado: [S.l.] : Manning Publications, 2020.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Intro
  • Blockchain in Action
  • Copyright
  • dedication
  • brief contents
  • contents
  • front matter
  • Preface
  • Acknowledgments
  • About this book
  • Who should read this book
  • How this book is organized: A roadmap
  • About the code
  • liveBook discussion forum
  • Other online resources
  • About the author
  • About the cover illustration
  • Part 1. Getting started with blockchain programming
  • 1 Blockchain basics
  • 1.1 From Bitcoin to blockchain
  • 1.2 What is a blockchain?
  • 1.3 Blockchain programming
  • 1.3.1 Decentralized infrastructure
  • 1.3.2 Distributed ledger technology
  • 1.3.3 Disintermediation protocol
  • 1.3.4 Trust enabler
  • 1.4 Motivating scenarios
  • 1.4.1 Automatic and consistent data collection
  • 1.4.2 Timely information sharing
  • 1.4.3 Verifiable compliance
  • 1.4.4 Auditable actions for provenance
  • 1.4.5 Guidance for governance
  • 1.4.6 Attribution of actions
  • 1.4.7 Pandemic management
  • 1.5 Retrospective
  • 1.6 Summary
  • 2 Smart contracts
  • 2.1 The concept of a smart contract
  • 2.1.1 Bitcoin transactions versus smart contract transactions
  • 2.1.2 What does a smart contract do?
  • 2.2 Design of a smart contract
  • 2.2.1 A use case diagram for the counter
  • 2.2.2 Data assets, peer participants, roles, rules, and transactions
  • 2.2.3 From class diagram to contract diagram
  • 2.3 Development of a smart contract code
  • 2.3.1 Solidity language
  • 2.3.2 Smart contract code for Counter
  • 2.4 Deploying and testing the smart contract
  • 2.4.1 The Remix IDE
  • 2.4.2 Deployment and testing
  • 2.4.3 Key takeaways
  • 2.5 What makes a blockchain contract smart?
  • 2.6 Decentralized airline system use case
  • 2.6.1 ASK definition
  • 2.6.2 Sequence of operations
  • 2.7 Airlines smart contract
  • 2.7.1 Peer participants, data assets, roles, rules, and transactions
  • 2.7.2 Airlines smart contract code
  • 2.7.3 ASK smart contract deployment and testing
  • 2.8 Smart contract design considerations
  • 2.9 Best practices
  • 2.10 Summary
  • 3 Techniques for trust and integrity
  • 3.1 Essentials of trust and integrity
  • 3.1.1 Trust
  • 3.1.2 Integrity
  • 3.2 Digital democracy problem
  • 3.2.1 Designing a solution
  • 3.2.2 Use case diagram
  • 3.2.3 Incremental development of code
  • 3.2.4 Users, assets, and transactions
  • 3.2.5 Finite state machine diagram
  • 3.2.6 Trust intermediation
  • 3.2.7 Defining and using modifiers
  • 3.2.8 Contract diagram including modifiers
  • 3.2.9 Putting it all together
  • 3.3 Testing
  • 3.3.1 Positive tests
  • 3.3.2 Negative tests
  • 3.4 Using modifiers, require(), and revert()
  • 3.5 Assert() declarations
  • 3.6 Best practices
  • 3.7 Retrospective
  • 3.8 Summary
  • 4 From smart contracts to Dapps
  • 4.1 Dapp development using Truffle
  • 4.1.1 The development process
  • 4.1.2 Installing Truffle
  • 4.1.3 Building the Dapp stack
  • 4.2 Install Ganache test chain
  • 4.3 Develop the smart contract
  • 4.3.1 Create a project folder