For EVM Developers
Translate your Solidity experience into Daml's authorization, contract state and application model.
Your experience designing permissions and testing business rules carries over. In Daml, you express a shared workflow through contracts and choices, with authority and visibility defined for its parties.
Continuing with Solidity? Solidity on Zenith EVM introduces the hosted EVM option and its testnet quickstart.
From Solidity to Daml
Begin with a business action you understand, such as accepting a license offer. Identify whose consent it needs, what agreements change, and who should receive the data.
| Design Question | In Native Daml |
|---|---|
| Who may act? | Signatories authorize contract creation. Controllers authorize specific choices. Visibility alone grants no authority to exercise a choice. |
| What changes? | Contract payloads are immutable. A workflow changes the active contract set by creating and archiving contracts. |
| Who may see it? | Review visibility across the whole transaction, including observer declarations, nested consequences and explicit disclosure. |
A provider can create a license offer naming its customer. The customer accepts through a choice that archives the offer and creates the agreed license. Your model defines each step and its required authority.
Authority and Consent
A Solidity caller check tests an address during execution. In Daml, the controller declaration names the parties whose authority a choice requires.
The choice body still needs the business checks for that action. An authorized customer might request an invalid amount or select an unsuitable input. Authorization alone does not make the result correct.
Use the authorization model to reason about authority across nested choices.
Choose the Authorized Actor
A controller stored on the contract binds authority to its agreed state. A controller supplied as a choice argument requires additional policy checks: the caller can choose that argument.
When your backend submits for several parties, bind the signed-in application user to the party they may represent. A visible button or a supplied party identifier is insufficient.
The identity lesson explains how to test this boundary.
Collect Consent for a Handoff
Creating a successor contract with a new signatory needs that party's authority. An offer and acceptance workflow is one way to collect it.
Decide what happens while the offer is pending. Include rejection and cancellation where the agreement needs them, and check who may act after acceptance.
Bound Delegated Authority
Model what an operator may do for another party, on which resource, and for how long. Validate the permission against trusted application state when the protected action executes.
Revocation, expiry and unfinished work need explicit lifecycle rules. The delegation lesson develops these decisions and their tests.
Contract State and Transactions
On Ethereum, a familiar pattern updates storage on one long-lived contract. A Daml contract records immutable agreement data and defines permitted actions called choices.
A consuming choice archives its contract. It can create a successor with changed data. A choice declared not to consume its contract leaves it active unless its body archives it.
Track the contract identifiers returned by successful transitions. The old identifier does not become an alias for the successor. In the license example, accepting an archived offer again must fail.
An ensure condition checks a new contract's payload. Assertions in a choice check the requested action and its inputs. Test both creation and later transitions.
The changes in a committed transaction apply together. An unhandled failure rejects the transaction without committing its changes. A client timeout still requires outcome reconciliation before retrying.
Read the contract model and recovery lesson when designing state changes and backend retries.
Token Interfaces and Implementations
For a token workflow, distinguish the shared interfaces from the contracts that implement them. Token Standard V2, defined by CIP-112, specifies interfaces for holdings, transfers and allocations. A holding records an amount of a token in an account; an allocation authorizes settlement under agreed terms and locks any required funding.
OpenZeppelin's CIP-112 token implementation supplies templates for these workflows, including minting and burning. The types package defines the records those templates store. The utilities package supplies the choice logic, which you can reuse when defining your own templates.
An account's parties can include its owner and a provider. A transfer can complete in one transaction when the receiver's account parties also authorize it. Otherwise, a pending transfer instruction locks the sender's transfer amount while the receiver can accept or reject it. Design your application to handle that pending state and its recovery paths.
Your integration also determines how administrative authority is used. The implementation's settlement factory matches sending and receiving allocations for each transfer and checks that their amounts agree. Restrict the admin's signing service to that factory path: a direct settlement co-signed by the admin and executors bypasses this check. The integration guide explains deployment, disclosure and wallet integration.
Check which token interfaces your target wallets and registries use. Token Standard V1 tooling needs V1 interface instances on the token templates to discover this V2 implementation.
Privacy and Application Boundaries
Your application cannot assume a public view of all contracts. Participant nodes host parties and receive the transaction views relevant to them.
Signatories and observers receive contract visibility. Transaction consequences and explicit disclosure can extend who receives contract data, so review the whole workflow from each party's view.
Once a backend reads private data, it must protect that data in responses, caches, logs and exports. Ledger visibility rules do not replace access checks in those systems.
The privacy model explains transaction views and disclosure. Security covers application data handling.
Your Development Workflow
| Task | Canton Entry Point |
|---|---|
| Define the workflow | Daml templates, choices and explicit authorization |
| Build and test contracts | dpm and Daml Script |
| Connect application services | The Ledger API through a participant with the appropriate identities and permissions |
| Connect a browser wallet | The dApp SDK; the wallet authorizes requests and signs |
| Read application updates | Party-filtered Ledger API updates or PQS |
Start by testing permitted actions, rejected actions and the resulting contract state with Daml Script. Then test the frontend and backend together on LocalNet.
During upgrades, test existing contracts through the package versions your application uses. Uploading a new package alone does not establish that every caller executes its corrected behavior.
Build Your First Canton App takes you through project creation and testing. Use Security to plan checks for authorization, business rules, recovery and upgrades.
Solidity on Zenith EVM
To keep working in Solidity, Zenith EVM provides an execution environment built on Reth, with standard Ethereum JSON-RPC and tools such as Foundry, Hardhat and MetaMask. Canton coordinates its block validation and finality. Zenith's Super Validator proposal was approved in CIP-0091.
Zenith EVM is the Zenith-hosted chain. Zenith Stack is the custom-built option for institutions that need a dedicated EVM chain.
Zenith EVM’s public testnet lets you deploy and test Solidity applications, with Mainnet to follow. The testnet runs on a Canton network operated by Zenith, with its own private synchronizer. This is separate from Canton DevNet and TestNet.
On testnet, Gateway supports token transfers only, including native ZTH (represented as wZTH on Canton) and DevCC, the testnet's stand-in for Canton Coin. It does not cover calls between Daml and EVM contracts yet, real Canton Coin, or self-service token registration.
In production, Zenith EVM and Zenith Stack chains will be connected to the Global Synchronizer, and compose atomically with any Canton subnet or Canton-native app and asset. Apps and assets on Zenith EVM are atomically composable with Canton-side apps and assets through the global synchronizer.
To learn more, read the Zenith documentation. To try it out, follow the EVM testnet quickstart. The walkthrough covers wallet setup, test ZTH funding, deploying a Counter contract and inspecting its transaction in the explorer.