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 directory | Source files |
|---|---|
rust-workspace | 34 |
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.
| File | Solana APIs used |
|---|---|
rust-workspace/programs/election_registry/src/instructions.rs | Pubkey, AccountInfo, invoke_signed, seeds |
rust-workspace/programs/tally/src/instructions.rs | Pubkey, AccountInfo, seeds, invoke_signed |
rust-workspace/programs/voter_registry/src/instructions.rs | Pubkey, AccountInfo, seeds, invoke_signed |
rust-workspace/programs/ballot/src/instructions.rs | Pubkey, AccountInfo, invoke_signed |
rust-workspace/programs/election_registry/src/lib.rs | Pubkey, AccountInfo |
rust-workspace/programs/tally/src/lib.rs | AccountInfo, Pubkey |
rust-workspace/programs/voter_registry/src/lib.rs | AccountInfo, Pubkey |
rust-workspace/programs/ballot/src/lib.rs | AccountInfo, 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
- Fork the SuperStack copy and extend it within the Governance & DAOs gaps listed on the idea page.
- Learn the pattern first: Program Derived Addresses (PDAs)