Reusable, security-focused Daml packages for applications on Canton. Each component is an independent Daml package so applications can build, review, upload, and vet only the DARs they need.
Warning
This is experimental software and is provided on an "as is" and "as available" basis. We do not give any warranties and will not be liable for any losses incurred through any use of this code base.
No component has been released yet. The three components below are early-stage
candidates under experiments/. They build and are tested in CI,
but they will be redesigned before they move into packages/, and that redesign
will change module names, template and choice signatures, and package identity.
Read experiments/README.md before depending on any of
them.
| Component | Package | Public module | Status |
|---|---|---|---|
| Access Control | openzeppelin-access-control-v1 |
OpenZeppelin.AccessControlV1 |
Experimental; unaudited |
| Ownable | openzeppelin-ownable-v1 |
OpenZeppelin.OwnableV1 |
Experimental; unaudited |
| Pausable | openzeppelin-pausable-v1 |
OpenZeppelin.PausableV1 |
Experimental; unaudited |
Each component is a separate dependency and release unit. Applications select the components they use, and participant operators review and vet the matching package IDs.
- DPM
- Java 21+
The workspace declares its Daml SDK in
multi-package.yaml. Package manifests mirror that value
for Daml 3.4 compatibility, and repository checks keep them synchronized.
The Canton building and packaging guide
explains DPM workspaces, DARs, and data-dependencies.
git clone https://github.com/OpenZeppelin/canton-contracts.git
cd canton-contracts
dpm install
dpm build --allTo build one component independently:
cd experiments/access/ownable-v1
dpm buildThe resulting evaluation DAR is written to:
experiments/access/ownable-v1/.daml/dist/openzeppelin-ownable-v1-0.1.0.dar
Build a package from a pinned source commit and reference the resulting DAR from a separate Daml project:
dependencies:
- daml-prim
- daml-stdlib
data-dependencies:
- ../canton-contracts/experiments/access/ownable-v1/.daml/dist/openzeppelin-ownable-v1-0.1.0.darimport OpenZeppelin.OwnableV1
packages/ Released components; empty until the first release
test/ Isolated component test packages
experiments/
access/ Category for authorization and ownership components
security/ Category for operational security components
test/ Isolated component test packages
dars/
released/ Immutable OpenZeppelin release baselines
vendor/ Verified third-party DAR inputs
examples/ Standalone projects that consume packaged DARs
audits/ Reports keyed to exact package releases
scripts/ Repository validation tooling
Category directories organize related components for navigation. Package names, module names, dependency declarations, and DAR identity define each component's release lineage.
- One independently released unit is one Daml package and one DAR.
- Components defining Daml interfaces use a frozen
-api-vNpackage and a separate upgradeable implementation package. Template-only components use one implementation package. - Breaking changes create a sibling
-v2package andV2module suffix; compatible SCU releases retain the existing package name. - Composition between implementations happens through interfaces or in the consuming application.
- Documented modules form the public API; implementation details use an
.Internalsuffix.
See ARCHITECTURE.md for the full rationale and dependency rules, and RELEASING.md for release process guidance.
These packages provide reusable building blocks. A consuming application is responsible for selecting canonical contract instances, binding authority and state to the correct resource, managing disclosure, and reviewing its complete dependency graph.
Do not use a library candidate as a substitute for an application-specific security review. See SECURITY.md to report a vulnerability privately.
See CONTRIBUTING.md for development setup, package boundaries, testing requirements, and the checklist for new components.
- Canton Improvement Proposals - canonical Canton standards
- OpenZeppelin Canton specs - research, prototypes, reference architectures, and interoperability evidence
- OpenZeppelin Canton ecosystem-stack proposal - ecosystem program context