Skip to main content

C++ Candid Library

The C++ Candid Library of icpp-pro

  • API Reference
  • It is 100% compliant with the Candid Interface Specification (spec 0.1.8, dfinity/candid@572c80a), within its limits: it decodes every message of the spec, and encodes every value, recursive types included, to the bytes of the reference implementation. All 472 asserts of the official suite pass, and all 1190 with the Candid tests of the Rust and Motoko CDKs. See Candid compliance.
  • The C++ Candid Library is extensively tested in our QA Canister.
  • Want to contribute? See Contributing.

How to use

C++ Smart Contracts

To write a C++ smart contract that runs in a Canister, you do not use icpp-candid directly, but you install icpp-pro, which is a full-blown C++ Canister Development Kit.

Simply install & Get Started !

C++ Rich Clients

If you want to use the C++ Candid Library in your Rich Client, you need to include it in your application and then compile it to a native executable.

We already do this ourselves as part of icpp-pro to enable interactive debugging with VS Code, as described in debugging with VS Code.

The command we use is:

icpp build-native

Which uses the Clang++ compiler to create a native debug executable named mockic.exe

Contributing

icpp-candid is developed and released together with icpp-pro, cloned inside it as icpp-pro/icpp-candid/. Set up with icpp-pro's Contributors Guide; the tests and fuzzers of this library live in icpp-pro.

  • Work on a branch and open a pull request into main. Every pull request needs a manual approval from the maintainer before it merges.
  • Before each push to a pull request:
    • a local CodeRabbit review of the branch against main (coderabbit review --base main --agent);
    • a code review and a security review of the branch. This library decodes untrusted messages, so the security review matters for every change;
    • icpp-pro's make all-static and the tests of the affected canisters pass, with icpp-pro's nested icpp-candid/ checkout on your branch.
  • CodeRabbit on GitHub also reviews every push to a pull request. Each of its findings gets a fix, or a reply saying why not.
  • The pull request lists each review's findings and what was done about them.
  • A release gets two deeper reviews on top, as described in icpp-pro's release guide.

Support

For support, kindly create a GitHub Issue as outlined in the Support documentation page.

Metadata

Release files for icpp-candid 7.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for icpp-candid 7.3.0
File Size Uploaded Provenance Actions
icpp_candid-7.3.0.tar.gz 131.3 kB With provenance Details for icpp_candid-7.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for icpp-candid 7.3.0
File Interpreter ABI Platform Actions
icpp_candid-7.3.0-py3-none-any.whl Python 3 none any Details for icpp_candid-7.3.0-py3-none-any.whl

Total release size: 372.1 kB

Release files / icpp_candid-7.3.0.tar.gz

Download URL icpp_candid-7.3.0.tar.gz
Size 131.3 kB
Tags Source
SHA-256 checksum
How to use checksums
67b1fd519fd49119122f93b9a7eaab198a41fd9a70f09a658b008790f7772ef6
BLAKE2b-256 checksum
How to use checksums
b2072039992c6ef4c338c07310c493894ba05ac133f9111e9fc34fc8abfb6d54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / icpp_candid-7.3.0-py3-none-any.whl

Download URL icpp_candid-7.3.0-py3-none-any.whl
Size 240.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8226b8f1c1e2642a7ac2c172414e1aa03203ccd279255045ad0ad9f57a04c5a3
BLAKE2b-256 checksum
How to use checksums
da94b61133a6aa17b203799ee893c7eecabb495f4dcd9922ddcc6425c52ea9af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for icpp-candid 7.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for icpp_candid-7.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

7.3.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page