-
Daml: A Smart Contract Language for Securely Automating Real-World Multi-Party Business Workflows
describes the theory underlying Daml’s language primitives for smart contracts and how Daml is compiled.
Alexander Bernauer, Sofia Faro, Rémy Hämmerle, Martin Huschenbett, Moritz Kiefer, Andreas Lochbihler, Jussi Mäki, Francesco Mazzoli, Simon Meier, Neil Mitchell, Ratko G. Veprek.
Daml: A Smart Contract Language for Securely Automating Real-World Multi-Party Business Workflows.
In: arXiv:2303.03749, 2023.
Abstract:
Distributed ledger technologies, also known as blockchains for enterprises, promise to significantly reduce the high cost of automating multi-party business workflows. We argue that a programming language for writing such on-ledger logic should satisfy three desiderata:
- Provide concepts to capture the legal rules that govern real-world business workflows.
- Include simple means for specifying policies for access and authorization.
- Support the composition of simple workflows into complex ones, even when the simple workflows have already been deployed.
- A Structured Semantic Domain for Smart Contracts describes how Canton relates to Daml and the ledger model. Extended abstract presented at Computer Security Foundations 2019.
-
Authenticated Data Structures As Functors in Isabelle/HOL
formalizes Canton’s Merkle tree data structures in the theorem prover Isabelle/HOL.
- Andreas Lochbihler and Ognjen Maric. Authenticated Data Structures As Functors in Isabelle/HOL. In: Bruno Bernardo and Diego Marmsoler (eds.) Formal Methods for Blockchain 2020. OASIcs vol. 84, 6:1-6:15, 2020.
- DOI
- Preprint PDF
- Pre-recorded talk
- Live presentation (1:48 to 12:50)
-
A semantic domain for privacy-aware smart contracts and interoperable sharded ledgers
Lightning talk presented at Certified Proofs and Programs 2021.
Abstract:
Daml is a Haskell-based smart contract programming language
used to coordinate business workflows across trust boundaries.
Daml’s semantics are defined over an abstract ledger,
which provides a clear semantics for Daml’s authorization rules, double-spending protection, and privacy guarantees.
In its simplest form, a ledger is represented as a list of commits, i.e., hierarchical transactions and their authorizers.
This representation allows for easy reasoning about Daml smart contracts because the total order hides the intricacies of a distributed, Byzantine-fault tolerant system.
It is also adequate for Daml running on a single blockchain, as it defines a total order on all transactions.
Yet, for distributed ledgers to fully eliminate data silos, smart contracts must not be tied to a single blockchain,
which would then just become another silo.
Daml therefore runs on different blockchains such as Hyperledger Fabric, Ethereum, and FISCO-BCOS as well as off-the-shelf databases.
The underlying protocol Canton supports atomic transactions across all these Daml ledgers.
This makes Daml ledgers sharded for higher throughput as well as interoperable to avoid data silos.
Semantically, Canton creates a virtual shared ledger by merging the individual ledgers’ lists of commits.
The virtual shared ledger is not totally ordered, to account for the fact that there is no global notion of time across ledgers.
Still, transactions can use only contracts that have been created within earlier transactions.
This ensures that causality is respected even though individual system users cannot see all dependencies due to the privacy rules.
Canton tracks privacy-aware causality using vector clocks.
To ensure that Daml and Canton achieve their claimed properties, we have started to formalize the Daml ledger model
and prove its properties in Isabelle/HOL. The two main verification goals are as follows:
- Canton’s vector clock tracking correctly implements causality.
- The synchronization due to vector clocks cannot cause deadlocks.
Research Publications
Research publications explaining Daml, Canton, and their underlying theory
Daml, Canton, and their underlying theory are described in the following research publications: