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-counter
Start DFX:
dfx start --background
Create canisters:
dfx canister create --all
Generate backend canister bindings:
dfx generate backend
Back to the root of repository:
cd ../../
Install pnpm dependencies:
pnpm i
Build the @dfinity/certificate-verification
package:
pnpm run --filter @dfinity/certificate-verification build
Now change to this project's directory again:
cd examples/certification/certified-counter
Build and deploy the canisters:
dfx deploy
Print 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.