Pinned post
Midnight is a privacy-focused smart contraact chain that blends UTXO (like bitcoin) with account style apps (like Ethereum)
You get two world:
1. Unshielded -> normal public state
2. Shielded -> fully private (balances, inputs, logic)
The interesting part is how it works, Contracts don't run on-chain.
You run them locally -> generate a ZK proof -> send the proof to the network.
Validators don't see your data, they just verify:
"This transaction followed the rules"
Under the hood:
- Commitments -> hashed coins
- Nullifiers -> unique hashes that prove a coin is spent, which prevents double spend
- Public transcript data -> minimal info needed for state updates
- ZK proof -> you own the coins (spend proof)
the contract execution was valid (contract proof)
So instead of, "show everything, then verify"
It's, "prove everything, show nothing"
That's what enables private DeFi, hidden balances and no front-running.
You get two world:
1. Unshielded -> normal public state
2. Shielded -> fully private (balances, inputs, logic)
The interesting part is how it works, Contracts don't run on-chain.
You run them locally -> generate a ZK proof -> send the proof to the network.
Validators don't see your data, they just verify:
"This transaction followed the rules"
Under the hood:
- Commitments -> hashed coins
- Nullifiers -> unique hashes that prove a coin is spent, which prevents double spend
- Public transcript data -> minimal info needed for state updates
- ZK proof -> you own the coins (spend proof)
the contract execution was valid (contract proof)
So instead of, "show everything, then verify"
It's, "prove everything, show nothing"
That's what enables private DeFi, hidden balances and no front-running.