Skip to main content


General questions

Is there a Midnight white paper?

There is no Midnight white paper, but the research paper 'Kachina – Foundations of Private Smart Contracts', written by researchers Thomas Kerber et al. at the University of Edinburgh, describes the underlying cryptography and Universal Composition model powering the Midnight network. Read more about the architecture and concepts in the 'Learn' section.

What tokens are available for use on the devnet? Are there gas fees?

The devnet uses only one token: test DUST (tDUST), which is a test token used for Midnight devnet testing purposes only. Visit the token acquisition page to find out more. This may change in future versions of Midnight, and may include the calibration of the gas fees against the amount work performed by a computation.

Developer questions

Where do I go if I need help troubleshooting my code?

The Getting help section of this site describes multiple ways to communicate with the Midnight team and your fellow developers. Your questions, including those about troubleshooting your code, are welcome.

What types of DApps can I build on the Midnight devnet?

Theoretically, any DApp that does not require one contract to call another from within its circuits. This includes private payment DApps, private auction DApps, and DApps that enable shielded identity verification.

What types of DApps can not yet be built on devnet?

DApps that require an oracle (for pricing data info or other external data), such as a DeFi lending DApp requiring Bitcoin pricing data.

Can I reuse Solidity code on Midnight?

No, Midnight DApps are created in TypeScript and Compact, a custom programming language, to build zero-knowledge circuits that generate privacy proofs.

What are the key unique concepts or coding patterns I need to know to create DApps on Midnight?

One of the key ideas in Midnight is the distinction between information that you want to place in the public record and information that you want to keep private. For example, the assertion that someone is over 25 might be useful to place in the public space of a contract, while the details of the person's birthday and precise age might be kept private. This kind of thinking about what is truly needed in the public sphere is a core aspect of Midnight programming.

After writing the contract in Midnight’s contract language, the DApp is written in standard TypeScript. This implies that the coding experience of existing JavaScript and TypeScript programmers can be applied to creating Midnight DApps.

How does Midnight work at a high level?

See the tutorial's introductory material and the section of this site about How Midnight works. You can also read more about Midnight's architecture and concepts in the 'Learn' section.

What is the current devnet block time (time to finality)?

The devnet block time is 2 seconds. This time is governed by network parameters that are subject to adjustment.