Menu

1 / 5

Selective Disclosure Patterns in Compact

DEV Community·Akanji Rahman·6 months ago
#MsfASPTG
#how#disclosure#privacy#understanding#using
Reading 0:00
15s threshold

Nowadays blockchains treat privacy like it's just an extra. Just an additional feature. Everything is visible and public. This architecture works for systems where public transparency is the end goal. But what happens when you begin to handle big data, medical records or sensitive information? It collapses. Full transparency and accountability is not a feature in these contexts, it's a problem.

Table of contents

How does Midnight solve this problem?

Understanding the privacy model

Using disclose() correctly

Placing disclose() at the right scope

Disclosure through conditional expressions

What's safe to disclose vs what leaks privacy

Safe to disclose

What actually leaks privacy?

Applying domain-separated hashing for cross-property unlinkability

How does this relate to Compact?

The round counter and linkability

Running a privacy audit on your contract

Conclusion

Prerequisites

This is an intermediate tutorial.…

Continue reading — create a free account

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