Menu

1 / 6

Building a Full-Stack ZK-Privacy App on Midnight: A Step-by-Step Guide

DEV Community·Haruki Kondo·6 months ago
#UtZmCwLK
#pako#ai#typescript#blockchain#contract
Reading 0:00
15s threshold

Introduction

Hello everyone! 🚀

In this post, we are diving deep into Midnight , the privacy-focused blockchain!

Previously, we covered how to connect a frontend application to Lace Wallet . Now, we’re taking the next big step: connecting to a smart contract!

Implementing a full-stack ZK (Zero-Knowledge) application can be tricky, but I’ve navigated the pitfalls and version mismatches so you don't have to. Let’s get started!

What You Will Learn

How to develop a full-stack application on Midnight.

Concrete source code for calling smart contract functions via Lace Wallet.

Real-world "gotchas" and how to solve them.

The Sample App: A Full-Stack Counter

We’ll build a simple app that connects to Lace Wallet, displays balances, and interacts with a Counter smart contract.

Prerequisites

Lace Wallet browser extension (Midnight-compatible version).

PreProd network selected in Lace settings.

Some test NIGHT tokens from the official faucet .

Docker installed (for running the Proof Server).

GitHub…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.