Certified Data

Recall that query calls do not have the same security guarantees as update calls because query calls do not 'go through' consensus.

To verify the authenticity of data returned by a query call, we can use the CertifiedData API. This is an advanced feature that we are mentioning here for completeness, but we will not cover it in depth.

For more information visit:

The convention is to name the module alias after the file name it is defined in.

import CertifiedData "mo:base/CertifiedData";

On this page

Function set
Function getCertificate

CertifiedData.set

func set : (data : Blob) -> ()

CertifiedData.getCertificate

func getCertificate : () -> ?Blob