I understood that Midnight devnet is not only a blockchain testing environment. It is a playground of privacy development. The devnet began in 2023 and was designed in such a way that both advanced blockchain developers and non-technical users might give privacy-protecting smart contracts a test drive. I was interested in the fact that it is open to individuals with little or no experience in blockchain. Business logic can be tested on a local level by developers and then deployed in a public blockchain.
The instruments are highly friendly. Midnight developed a smart-contract language named Compact resembling TypeScript. TypeScript is easier to start since many developers are already familiar with TypeScript. In Compact you make it clear what constitutes a private and a public part of a contract. It has also dropped some of the more advanced TypeScript features in order to simplify verification, yet the language is still easy enough to know that you do not have to be a deep cryptography expert to develop applications. Once you have written a contract, you can assemble it and send it straight to the devnet. It is then possible to play with it with a browser wallet and even share the app with other testers.
A special developer token exists named tDUST that exists within the devnet, only. Testers can access tDUST on a faucet and pay transaction fees or transfer shielded assets during testing. The entire atmosphere promotes experimenting. The users can operate Midnight assets using a Chrome extension, generate zero-knowledge proofs using a local worker, read blockchain data using a pub-sub service, and develop apps using a VS Code extension.
The good thing with this design is that all these tools can be executed directly on the computer of the developer. Building and testing do not require sensitive data to be sent to a remote server.
The proof server is normally a Docker container running on port 6300 and the Lace wallet communicates directly to this local service. Due to such an arrangement, developers are able to develop applications that comply with rigorous data-protection regulations. Personal or financial data can remain off-chain and still demonstrate that the rules or compliance checks were passed.
Having visited the devnet, I realized the reason why Midnight promotes programmable privacy. The tools reduce the obstacles to the construction of privacy apps. Midnight does not make privacy very technical or hard like it is, but rather, makes privacy practical among the ordinary developer. Zero-knowledge apps cease to exist as a concept and become reality.
I think the best part is the devnet, as it allows developers to manage the flow of information, which is the most impressive to my unpopular taste. It is not merely related to concealing information. It is about making a choice of what to be disclosed and what to remain confidential.