ballotlabMIDNIGHT VOTING RESEARCH
Public testnet/Shared Preview network · test tokens only

MIDNIGHT / PUBLIC PREVIEW

Try voting on
the public testnet.

Connect Lace to Midnight Preview, create a test election and submit encrypted votes. The shared network services are already selected. Use test DUST and select on-device WASM proving in Lace. This page proves contract calls in your browser, and your wallet approves each transaction.

Distinct evidence at every stage

Running a contract, creating a proof, submitting a transaction and receiving confirmation are different events. An indexer observation is not independent chain verification.
Loading the network tools…

01 / CONNECT

Wallet connection

Connect to the public testnet.

Preview is a shared test network. You do not need to run your own node or indexer.

  1. Install Lace ↗ (opens in a new tab), enable Midnight and choose Preview.
  2. Get free test NIGHT from the Preview faucet ↗ (opens in a new tab), then use Generate tDUST in Lace and wait for usable DUST.
  3. In Lace, choose Settings → Midnight → On this device → Run in this app (WASM), then save the configuration. Ballot Lab creates contract proofs in a browser worker; Lace creates the wallet and fee proofs.

Use test tokens only. No Docker or local proof server is needed for this mode. The first proof downloads public proving files; proving can take a few minutes and needs enough memory. Keep this tab open.

How to set up Lace
  1. Select Midnight Preview. Open Lace and choose Settings → Network → Testnet, select Preview under Midnight, then confirm. Cardano has its own network setting.
  2. Choose on-device proving. In Settings → Midnight → On this device, choose Run in this app (WASM) and save the configuration. This makes Lace generate wallet and DUST fee proofs on your device. Do not select a remote or delegated prover.
  3. Get free test NIGHT. Open your Midnight account in Lace, choose Receive → Unshielded, and copy the address starting with mn_addr_preview. Use it at the Preview faucet linked above, complete the CAPTCHA and request tokens. Wait for the test NIGHT balance to appear in Lace.
  4. Generate tDUST. Return to your Midnight account and choose Generate tDUST. Lace fills in your DUST address. Choose Review transaction, then Confirm to register your test NIGHT for DUST generation.
  5. Wait for usable DUST. Registration starts tDUST accruing. Wait for a usable DUST balance before creating an election or submitting a vote. Receiving test NIGHT alone does not start DUST generation.
  6. Connect to Ballot Lab. Open this app in the same browser as Lace, reload the page and choose Refresh wallet list. Select Lace, enter a separate password for this app and click Connect selected wallet.

If Midnight is missing from Lace, follow the Lace setup steps ↗ (opens in a new tab).

Use Preview test tokens only. You can check public services without a wallet and connect Lace before funding it. Connecting does not submit a transaction.

Check the proving setting in Lace. Its connector API cannot tell this page whether “Run in this app (WASM)” or a delegated prover is selected. An absent server address is not proof of on-device processing. This app rejects reported external prover URLs and has no remote fallback for its own contract proofs.

Requires a Midnight-enabled wallet with DApp Connector API 4. Use Lace with on-device WASM proving selected. Cardano-only wallets are unsupported; see the tested wallet versions and current verification status below. Wallet requirements and test status ↗ (opens in a new tab)

Preview’s public indexer is selected automatically. No service API key is needed.

Network service addresses

Not checked yet. Checking services does not connect a wallet or submit a transaction.

Use at least 16 characters, combining three or more of: uppercase letters, lowercase letters, numbers and symbols. Avoid sequences such as 1234 or abcd, and more than three identical characters in a row. This password protects keys stored by this app; it is separate from your Lace password and is never your wallet seed.

Not connected. Connection progress and any errors will appear here.

Continue when you’re ready. You can return to any step.

SUPPORT DEVELOPMENT

Buy me a coffee.

Enjoying Midnight Ballot Lab? You can support its development with a NIGHT or ADA tip on Cardano. Scan the QR code or copy the address below. Thank you for helping me keep building.

Tips are optional. The demo is free to use.

Scan this QR code for the Cardano mainnet support address
NIGHT or ADA on Cardano mainnet