Intro
Coming from the XRPL, the challenge for me has been grasping what actually stays hidden on a privacy chain and how they acomplish that. On a transparent ledger, you always know what is public, because everything is. On Midnight the answer is not obvious, and getting it wrong is exactly how supposedly private data leaks.
Here is the mental model I use. Once it clicked, most of my privacy mistakes stopped.
Three places your data can live
On Midnight, every value in a contract sits in one of three places, and the place decides who can see it:










