Skip to main content

CertifiedData

Reference for mo:core/CertifiedData in the core library.

Certified data is a runtime IC interface. The current contracts expose it as a trusted effect surface, so application-level proofs should connect calls to your own state invariants rather than expecting the verifier to model the certificate tree.

Import

mo:core/CertifiedData

Status

  • Runtime module

Public API

Functions

set(data : Blob)

Sets the canister's certified data blob through the IC runtime.

Use when: update code needs to publish certified data after proving the state that determines it.

getCertificate() : ?Blob

Reads the current certificate, when the runtime exposes one.

Use when: query code needs to return certificate material with a certified response.

Summary

  • Runtime module under mo:core/CertifiedData.
  • Exposes 2 public functions.