DAML PACKAGE ANALYZER / CERTORA

Daml package analysis
for Canton.

Certora’s Daml Package Analyzer is a free, open-source static analysis tool for Canton applications. Inspect how compiled .dar packages interact, trace dependencies, and compare what changes between versions.

Free and open source · Apache 2.0 · Runs locally

Daml package analyzer with illustrative Settlement, Assets and Receipt packages
MAKE PACKAGE BOUNDARIES VISIBLE

A dependency is more than a name.

A package can create contracts, invoke choices, or read data defined in another package. The analyzer shows these connections so you can assess whether they belong in your application.

Explore cross-package interactions.

Select Exercise, Fetch or Create to see how a calling package can interact with another package.

CROSS-PACKAGE INTERACTIONSExample
YOUR APPLICATIONapp.darCalling package
Exercise

An application invokes a choice defined in another package. Review the target and whether the choice consumes the contract.

Select an interaction to explore it. Illustrative package map.
DEPENDENCY REVIEW

Before you adopt a package

Inspect the templates, interfaces, and choices it reaches across package boundaries.

For application teams and node operators
VERSION REVIEW

When a package changes

Compare added, removed, and changed interactions to focus your review of an update.

For Daml developers and maintainers
SECURITY REVIEW

Before deeper investigation

Map cross-package behavior, then trace relevant interactions to source locations when available.

For auditors and security researchers
INSIDE THE REPORT

See what your analysis produces.

From the calling package to the target template or choice, the report makes cross-package behavior inspectable. Open these actual report screenshots for a closer look.

Daml Package Analyzer report: Highlights
Highlights

Find interaction details, including consuming status where relevant and available source locations.

Daml Package Analyzer report: Summary table
Summary table

Explore counts by target package and interaction type.

Daml Package Analyzer report: Version diff
Version diff

Inspect added, removed, and changed interactions between versions.

HTMLInteractive report, including a graph view
JSONStructured output for your own tooling
DOTGraphviz output for dependency visualization

Static interaction analysis supports a security review. It does not prove security or determine whether an interaction is intended.

PUBLISHED VALIDATION

Tested on real Canton packages.

Developed through the Canton Foundation Development Fund. The first milestone delivered the core analysis engine and passed the public review vote.

165Splice DARs analyzed
53Digital Asset Utilities DARs analyzed
ECOSYSTEM PERSPECTIVE

“Certora pairs a rare level of security engineering talent with real drive from the top, and they took the time to understand Canton deeply before building for it. Their Package Analyzer, supported by the Canton Development Fund, helps Daml developers map package dependencies and catch unintended visibility early. It's a great example of the caliber of teams choosing to build on Canton.”

Shaul KfirShaul KfirCo-Founder, Digital Asset (Canton Network)
RUN IT LOCALLY

Analyze Daml archives in three steps.

  1. 01

    Build

    Compile the Daml packages you want to inspect into .dar files.

  2. 02

    Analyze

    Run against one DAR or list multiple DARs for a merged report.

  3. 03

    Review

    Open the HTML report. Explore interactions and compare package versions.

Choose your setup

Use the release JAR with Java 21+, or opt in to the DPM component in daml.yaml with DPM 3.5+.

Installation and usage guide
DPM COMPONENT
dpm certora-analyze foo.dar -o out/
RELEASE JAR
java -Xss4m -jar daml-analyzer-<version>.jar foo.dar -o out/
Open out/foo.html; multi-package runs produce out/report.html.
All 10 supported interaction types
ExerciseExerciseByKeyExerciseInterfaceCreateCreateInterfaceFetchFetchByKeyFetchInterfaceLookupByKeyImplementsInterface
ARTICLES / TOOLS / PUBLIC WORK

Canton resources for builders.

6 resources
DEMO & ONBOARDING

Make your first report
useful from day one.

Request a demo or hands-on onboarding with Certora. Bring your Canton use case: we can help you get started, interpret the output, and identify where to investigate next.

  • Set up the analyzer for your project
  • Walk through your report and cross-package interactions
  • Resolve integration questions with the development team
Prefer to share feedback on GitHub?

Tell us about your application

COMMON QUESTIONS

Daml Package Analyzer: common questions.

What is the Daml Package Analyzer?

A free, open-source static analysis tool from Certora. It reads compiled Daml archives and reports cross-package interactions for human review.

Do I need to provide source code?

The analyzer reads compiled .dar files. It runs locally and does not execute the code. Source locations appear when available in the archive.

Can I use it in CI?

Yes. Download the release JAR in your setup step, run it against compiled DARs, and use the JSON output in your own tooling.

Can I compare versions?

Yes. The report viewer includes a Diff tab to compare interactions between versions of a package.

Is this formal verification?

No. It maps static interactions; it does not prove that a system is secure or decide whether an interaction is intended.

What are the requirements?

Java 21 or later and a compiled .dar. Projects using DPM 3.5 or later can opt in to the DPM component. Source locations are best effort; list each DAR explicitly for multi-package projects.

What does the Daml Package Analyzer report include?

The analyzer produces an interactive HTML report, structured JSON, and Graphviz DOT output. The HTML report includes Highlights, Summary Table, Graph, and Diff views. Interactions identify calling and target packages, templates or interfaces, choices where applicable, and source locations when available.

Who is the Canton Package Analyzer for?

Daml application developers can inspect dependencies and review version changes. Security researchers and auditors can map cross-package behavior before a deeper review. Node operators can use the output as part of third-party package vetting.