dfinity avatar

Certified Variables

Query calls on the Internet Computer are fast because they skip consensus, but that means a malicious replica could lie to you. This skill shows you how to build cryptographically verified responses using Merkle trees and subnet BLS signatures. You hash your data structure, certify the root during updates, then attach certificates and witnesses to query responses so clients can verify authenticity against the IC root key. The examples cover both Rust (ic-certified-map, RbTree) and Motoko (CertifiedData module), plus the critical gotchas like forgetting to re-certify after upgrades or not checking certificate timestamps on the client. Use this when you need tamper-proof query responses without sacrificing speed.

skills.sh installs
302
GitHub stars
39
last updated
Aug 21, 2026

Install

$ npx -y skills add dfinity/icskills --skill certified-variables --agent claude-code

Installs into .claude/skills of the current project.

Files

Certified Variables

A query call is answered by a single replica, without consensus, so a faulty or malicious replica can return fabricated data. Certification closes that gap: during update calls the canister stores a 32-byte hash (usually the root of a Merkle tree over its data) in the subnet's certified state, and query responses carry a certificate signed by the subnet's threshold BLS key. Clients verify the certificate and a Merkle witness, and get a fast query response that is as trustworthy as an update call.

Who Verifies What

Decide this first. Certification only helps if something checks it.

Sponsors

Details

Repository
github.com/dfinity/icskills
Categories
Frontend Development, Backend & APIs
First seen
Jun 3, 2026

More from dfinity/icskills

All 16
1jezweb avatarsveltia-cmsjezweb/claude-skillsSet up Sveltia CMS - lightweight Git-backed CMS successor to Decap/Netlify CMS (300KB bundle, 270+ fixes). Framework-agnostic for Hugo, Jekyll, 11ty, Astro. Pre302skills.sh installs
2coleam00 avatarpptx-generatorcoleam00/second-brain-skillsGenerate and edit presentation slides as PPTX files. Also create LinkedIn carousels and manage reusable slide layouts. TRIGGERS - Use this skill when user says:301skills.sh installs
3cognitedata avatarflows-app-reviewcognitedata/builder-skillsRun a full Flows app platform review against a React/TypeScript CDF codebase, following the cognitedata/dune-app-reviews scoring criteria. Produces three artifa298skills.sh installs
4nucliweb avatarwebperf-core-web-vitalsnucliweb/webperf-snippetsIntelligent Core Web Vitals analysis with automated workflows and decision trees. Measures LCP, CLS, INP with guided debugging that automatically determines fol295skills.sh installs
5secondsky avatarneon-vercel-postgressecondsky/claude-skillsNeon + Vercel serverless Postgres for edge and serverless environments. Use for Cloudflare Workers, Vercel Edge, Next.js apps with HTTP/WebSocket connections, d294skills.sh installs
6nicepkg avatarlegacy-to-ai-readynicepkg/ai-workflowTransform legacy codebases into AI-ready projects with Claude Code configurations. Use when (1) analyzing old projects to generate AI coding configurations, (2)293skills.sh installs