Modelling the Ledger

The Corda Ledger can be considered as a Directed Acyclic Graph (DAG) in which:

  • States are created as outputs to a transaction.
  • States are consumed as inputs to transactions.
  • Commands are properties of transactions.
  • Parties sign transactions.

You could illustrate this as follows:

However, it is difficult to get all the information you may want to show into this format. To convey more information, you can use a similar form but modify the graph’s nodes to align more closely to the representations of states already introduced in the Smart Contract view.

In the following examples, the diagrams do not show the signers to the transaction as separate nodes, instead they are attached to the transactions directly.