Skip to Content
Mastering Corda
book

Mastering Corda

by Jamiel Sheikh
October 2020
Beginner
484 pages
13h 39m
English
O'Reilly Media, Inc.
Content preview from Mastering Corda

Chapter 6. Building a Distributed Task CorDapp

In this chapter, we’re going to dig deeper into the essential components of a full CorDapp. To do so, we’ll build a distributed to-do management CorDapp, called ToDoDist, that will expose us to the key concepts of states, transactions, and flows, the three major components that lie at the heart of any real-world CorDapp. The other two major components are commands and constraints, which we’ll cover in Chapter 7. States provide us with a conceptual model to work with data on a Corda ledger, while transactions manage how those states, and thus data, change over time. Flows define and manage businesses processes, including processes spanning multiple independent parties and nodes, orchestrating changes to states via transactions and digital signatures. States, transactions, and flows are woven together to create fully working CorDapps for real-world use cases.

Before we begin to code, we’ll cover each of these three concepts in detail and then see them in action in our ToDoDist application. In the first part of this chapter, we’ll build a foundation in understanding what states are and how they work in Corda, then look at transactions, and then finally expand our understanding of flows. We’ll build on the knowledge of flow that began in Chapter 3 with a deeper investigation of flows. The first few sections will focus on these concepts from a theoretical or computer science-y point of view and then shift into looking at how Corda employs ...

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

Step into the Metaverse

Step into the Metaverse

Mark van Rijmenam

Publisher Resources

ISBN: 9781492047179Errata Page