Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.02 KB

File metadata and controls

67 lines (44 loc) · 1.02 KB

Certified Counter

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.

Running the project locally

From this project's directory:

cd examples/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/certified-counter

Build and deploy the canisters:

dfx deploy

Print the web URL of the canister:

echo "http://$(dfx canister id frontend).localhost:$(dfx info webserver-port)"

Now you can open that URL in your web browser.