Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By vocdoniAGPL-3.0-only
Write code that creates and runs private, verifiable elections on OP Mainnet with the Vocdoni DAVINCI SDK, from setup and ballots to results. Requires Node.js 18 or newer, or a current browser through a bundler.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
vocdoni, davinci-sdk, voting, elections, zero-knowledge, op-mainnet, blockchain, claude-code ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
TypeScript SDK for DAVINCI, the Vocdoni protocol for private, verifiable elections on Ethereum. Organizers use it to create and run elections, voters to cast and track their votes, and anyone to read results and vote receipts.
An election lives in a ProcessRegistry contract; the OP Mainnet deployment is built in. A voter encrypts its ballot, proves it valid with a zk-SNARK computed on its own device, signs it and sends it to a sequencer node. The nodes, run by independent operators, batch ballots, re-encrypt them and prove each batch in a zkVM. The registry verifies the proof and records the new state, and the batch data is published in EIP-4844 blobs. After the end and a short grace window, whoever holds the election key (a node, or a committee) decrypts only the final tally and proves it on-chain.
DavinciSDK covers that whole flow. It takes election parameters from the registry, never from a node, checks at init() that the registry pins the zkVM programs and the ballot circuit this release was built for, and verifies the circuit files it downloads. The layers underneath (registry service, node client, census classes, protocol primitives, prover) are exported too.
A voter may vote again; the latest ballot counts. A vote goes pending → aggregated → processed → settled as nodes batch it, which takes minutes (up to a quarter of an hour with default node settings). After the end, batches of votes cast before it keep landing until the grace window closes; every landing pushes the window out, up to a cap. The key holder then publishes the tally, seconds to a few minutes later.
The built-in optimism network (OP Mainnet, chain 10) is the DAVINCI pre-production deployment, and the default. Transitions settle on OP and their blobs live on Ethereum (L1-blob mode). Gnosis is retired. The production sequencer is https://sequencer2.davinci.vote. For elections whose ballots no single party can open, it offers two committees:
keyMode: 'dkg'): a rotating committee of independent node operators holds the key. Nothing to prepare; results come a few minutes after the grace window. Recommended for most elections.keyMode: 'council' with a ceremonyId): a committee the organizer invites holds the key, set up in the Council app (davinci-dkg-council). Results stay locked until the ceremony opens decryption, on a scheduled date or when its organizer opens it.Ballots are proved under a pre-production ballot key from a phase-2 ceremony (davinci-circom v1.3.0, CEREMONY.md); a public ceremony replaces it before public production. During the pre-production phase both committees' circuits come from development trusted setups. skills/davinci-sdk/references/key-modes.md explains both options, how to create a process with each and what every results state means.
The rest of the stack: davinci-sequencer (the node), davinci-contracts (the registry), davinci-zkvm (batch and results proofs), davinci-dkg (committee keys) and davinci-circom (the ballot circuit). The protocol is described in the whitepaper.
Requires Node.js 18 or newer, or a current browser through a bundler. The package ships ESM and CommonJS builds with their types, from a single root export.
npm install @vocdoni/davinci-sdk ethers # or: yarn add / pnpm add
Save as election.ts and run with npx tsx election.ts:
import { BallotProver, DavinciSDK, OffchainCensus, VoteError, type Uploader } from '@vocdoni/davinci-sdk';
import { JsonRpcProvider, Wallet } from 'ethers';
// Production sequencer on OP Mainnet (see docs/deployments.md in davinci-sequencer for others).
const sequencerUrls = ['https://sequencer2.davinci.vote'];
7-day copy clicks
Generated from the plugin's indexed repository (vocdoni/davinci-sdk) — no native marketplace selected
npx claudepluginhub p/vocdoni-davinci-sdkPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.