---
title: "Discussion on \"Designing Public vs. Private State in Compact: What Goes Where and Why\" | Hashnode"
description: "Discussion on \"Designing Public vs. Private State in Compact: What Goes Where and Why\". Designing Public vs. Private State in Compact: What Goes Where and Why\nOne of the first decisions you make when writing a Midnight contract is which state goes on-chain and which stays off-chain. This isn't just a privacy concern — it affects proof s..."
url: "https://hashnode.com/posts/designing-public-vs-private-state-in-compact-what-goes-where-and-why/69e366b6061bfabc138fc205"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Designing Public vs. Private State in Compact: What Goes Where and Why](https://stacksignal.hashnode.dev/designing-public-vs-private-state-in-compact-what-goes-where-and-why?utm_source=hashnode&utm_medium=feed)

Designing Public vs. Private State in Compact: What Goes Where and Why One of the first decisions you make when writing a Midnight contract is which state goes on-chain and which stays off-chain. This isn't just a privacy concern — it affects proof s...

Apr 18 · 11 min read · stacksignal.hashnode.dev  
Read the article

-   [#blockchain](https://hashnode.com/tag/blockchain)
-   [#midnight](https://hashnode.com/tag/midnight)
-   [#privacy](https://hashnode.com/tag/privacy)
-   [#zk](https://hashnode.com/tag/zk)

## Written by

[tosh94](https://hashnode.com/@tosh1994)

@tosh1994

  
[View profile](https://hashnode.com/@tosh1994)

Sharing thoughts

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
