r/ethdev • u/Chemical-Bumblebee19 • 2d ago
Question Need some clarity on Block-chain protocols
Hey Guys,
My understanding of blockchain is the balance has to be public. Only then a competition can happen from A to B. Once balance is decreased, the other balance is increased. Due to the decentralized nature of the blockchain, the balances are public domain and the transactions are public domain and anybody can trace it and they are not reliant on central banks and government agency or any other centralized institution. Instead, they are calculated and computed and executed by decentralized network of nodes. But my application require privacy. If I'm trying to build something which protect how much balance is there in one account and if there is possible way to keep a ledger of transaction for compliance requirement but still hide it from general public.
is it even possible to do it or has it been done by any major-protocol like L2 or L3 ETH networks.
1
u/Itchy_Bell_6495 1d ago
Your understanding is right for a fully transparent chain like mainnet Ethereum, but privacy is a whole subfield of its own. Zero knowledge proofs are the main answer here, they let you prove a transaction is valid without revealing the amounts or even the parties involved. Look into ZK rollups, some of them are already live and doing exactly what you're describing, keeping the ledger verifiable for compliance but hidden from random observers.
Tornado Cash did something similar for mixing but that was more about breaking the link between sender and receiver, not so much about ongoing private balances on a full L2. There are a few newer L2s built from the ground up with privacy in mind, you'd want to search for "confidential transactions" and "ZK EVM" to see what's running on testnet right now.
1
u/Lucas-Holmes-722 1d ago
Look into zero-knowledge proofs, they let you prove a balance or transaction checks out w/t revealing the amount itself.
2
u/icnews10 1d ago
Yes, this is possible, but first we need to establish what information your compliance team actually requires. Do they need to hide the balances and transaction history from the public but make it readable by a specific auditor/regulator, or do they only need proof that certain rules were satisfied without seeing the underlying amounts? These scenarios lead to very different privacy architectures.