Sol.College

Structure lesson (licence does not allow quoting code)

IDv2

Anonymous cryptographic voting protocol — HSM integration, Pedersen commitments, nullifier-based double-vote prevention on Solana

Original
Slamanii/IDv2
SuperStack fork
Blockchains/IDv2 @ c5b7e5e
Stars
0
Last push (original)
2026-05-11
Languages
Rust, Shell, HTML
Detected stack
Pinocchio
Categories
Governance & DAOs
Licence
none detected: code not quoted on Sol.College

Architecture

34 source files. By extension: .rs ×34.

Top-level directorySource files
rust-workspace34

On-chain programs: rust-workspace/programs/ballot, rust-workspace/programs/election_registry, rust-workspace/programs/tally, rust-workspace/programs/voter_registry

Where the Solana code lives

Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.

FileSolana APIs used
rust-workspace/programs/election_registry/src/instructions.rsPubkey, AccountInfo, invoke_signed, seeds
rust-workspace/programs/tally/src/instructions.rsPubkey, AccountInfo, seeds, invoke_signed
rust-workspace/programs/voter_registry/src/instructions.rsPubkey, AccountInfo, seeds, invoke_signed
rust-workspace/programs/ballot/src/instructions.rsPubkey, AccountInfo, invoke_signed
rust-workspace/programs/election_registry/src/lib.rsPubkey, AccountInfo
rust-workspace/programs/tally/src/lib.rsAccountInfo, Pubkey
rust-workspace/programs/voter_registry/src/lib.rsAccountInfo, Pubkey
rust-workspace/programs/ballot/src/lib.rsAccountInfo, Pubkey

Dapp: devnet deploy pending

⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/idv2/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

How to run

No package.json, Anchor.toml, Cargo.toml, go.mod or Makefile was found near the root. See the project README.

What you could build from it