This example project demonstrates how to create a certification for non-replicated query call responses from a simple counter canister and verify that certification client side.
From this project's directory:
cd examples/certification/certified-counterStart DFX:
dfx start --backgroundCreate canisters:
dfx canister create --allGenerate backend canister bindings:
dfx generate backendBack to the root of repository:
cd ../../Install pnpm dependencies:
pnpm iBuild the @dfinity/certificate-verification package:
pnpm run --filter @dfinity/certificate-verification buildNow change to this project's directory again:
cd examples/certification/certified-counterBuild and deploy the canisters:
dfx deployPrint the web URL of the canister:
echo "http://$(dfx canister id certification_certified_counter_frontend).localhost:$(dfx info webserver-port)"Now you can open that URL in your web browser.