<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: J. Santi</title>
    <description>The latest articles on DEV Community by J. Santi (@bytewizard42i).</description>
    <link>https://dev.to/bytewizard42i</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3465080%2Fbb9a91e6-d706-4027-8f9d-86f67375e017.jpeg</url>
      <title>DEV Community: J. Santi</title>
      <link>https://dev.to/bytewizard42i</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bytewizard42i"/>
    <language>en</language>
    <item>
      <title>SelectConnect: Privacy-first contact sharing with zero-knowledge proofs &amp; staked bonds for harassment/spam protection.</title>
      <dc:creator>J. Santi</dc:creator>
      <pubDate>Sat, 06 Sep 2025 19:15:10 +0000</pubDate>
      <link>https://dev.to/bytewizard42i/selectconnect-privacy-first-contact-sharing-with-zero-knowledge-proofs-economic-bonds--1c7h</link>
      <guid>https://dev.to/bytewizard42i/selectconnect-privacy-first-contact-sharing-with-zero-knowledge-proofs-economic-bonds--1c7h</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/midnight-2025-08-20"&gt;Midnight Network "Privacy First" Challenge&lt;/a&gt; - Protect That Data prompt&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;SelectConnect&lt;/strong&gt; is the world's first privacy-preserving contact sharing platform that uses zero-knowledge cryptography and economic bonds to enable safe, revokable, or progressive information sharing while preventing harassment and spam.&lt;/p&gt;

&lt;p&gt;SelectConnect solves a $100B privacy crisis where 500M+ professionals share business cards annually, 60% of women face harassment after networking events, and $2.1B is lost to spam from leaked contact data. Our solution combines &lt;strong&gt;progressive contact revelation&lt;/strong&gt; with &lt;strong&gt;economic abuse deterrence&lt;/strong&gt; to create truly safe networking without compromising privacy.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhadxdhy5z4vn0mk50uob.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhadxdhy5z4vn0mk50uob.png" alt=" " width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnscnqcjzqj3i4mzlwo0b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnscnqcjzqj3i4mzlwo0b.png" alt=" " width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/bytewizard42i/SelectConnect" rel="noopener noreferrer"&gt;https://github.com/bytewizard42i/SelectConnect&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick Demo Setup&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/bytewizard42i/SelectConnect.git
&lt;span class="nb"&gt;cd &lt;/span&gt;SelectConnect/selectConnect_app_pro
./start-hackathon-demo.sh
&lt;span class="c"&gt;# Access at http://localhost:3000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How I Used Midnight's Technology
&lt;/h2&gt;

&lt;p&gt;SelectConnect leverages Midnight's &lt;strong&gt;Compact v0.16&lt;/strong&gt; language to implement &lt;strong&gt;22 ZK circuits&lt;/strong&gt; across 967 lines of smart contract code:&lt;/p&gt;

&lt;h3&gt;
  
  
  Core ZK Implementations
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Private Authorization Circuits&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prove card ownership without revealing admin identity&lt;/li&gt;
&lt;li&gt;Zero-knowledge credential verification&lt;/li&gt;
&lt;li&gt;Commitment-based access control&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Progressive Disclosure Circuits&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Merkle tree proofs for level verification&lt;/li&gt;
&lt;li&gt;Encrypted reveal with time-limited access&lt;/li&gt;
&lt;li&gt;Selective information disclosure without full exposure&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Economic Security Circuits&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bond commitment and verification&lt;/li&gt;
&lt;li&gt;Reputation-based pricing calculations&lt;/li&gt;
&lt;li&gt;Slash mechanism with private evidence&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Privacy Routing Circuits&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;5-digit anonymous access codes&lt;/li&gt;
&lt;li&gt;Trackable vs non-trackable interaction modes&lt;/li&gt;
&lt;li&gt;Cross-context privacy preservation&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Midnight Infrastructure Integration
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Local Proof Server&lt;/strong&gt;: Docker-based Midnight environment for circuit compilation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compact Smart Contracts&lt;/strong&gt;: 813 lines implementing unified protocol&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ZK Proof Generation&lt;/strong&gt;: Real-time proof creation for all user interactions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy-First Storage&lt;/strong&gt;: All sensitive data stored as cryptographic commitments&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Data Protection as a Core Feature
&lt;/h2&gt;

&lt;p&gt;Privacy isn't an afterthought in SelectConnect—it's the foundational architecture. Every design decision prioritizes user privacy:&lt;/p&gt;

&lt;h3&gt;
  
  
  Zero-Knowledge by Design
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Contact Information&lt;/strong&gt;: Never stored in plaintext, only as cryptographic commitments&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;User Identity&lt;/strong&gt;: Pseudonymous interactions with provable accountability&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evidence Storage&lt;/strong&gt;: Harassment reports kept off-chain with ZK proofs of validity&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Access Patterns&lt;/strong&gt;: No correlation between real identity and card interactions&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Progressive Privacy Model
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Level 0&lt;/strong&gt;: Public card exists (no personal data)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Level 1&lt;/strong&gt;: Name reveal (encrypted, time-limited)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Level 2&lt;/strong&gt;: Professional profile (LinkedIn, encrypted)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Level 3&lt;/strong&gt;: Email contact (encrypted, revocable)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Level 4&lt;/strong&gt;: Phone number (highest trust, fully encrypted)&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Economic Privacy Protection
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Abuse Bonds&lt;/strong&gt;: Economic deterrent without identity exposure&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reputation System&lt;/strong&gt;: Track bad actors across contexts without linking to real identity&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dynamic Pricing&lt;/strong&gt;: Higher costs for repeat offenders while preserving anonymity&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Victim Compensation&lt;/strong&gt;: Automatic payouts from slashed bonds&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Real-World Privacy Guarantees
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Conference Networking&lt;/strong&gt;: Professional connections without harassment risk&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dating Safety&lt;/strong&gt;: Progressive trust building with economic accountability&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enterprise Sales&lt;/strong&gt;: Qualified leads without spam or data leaks&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-Platform&lt;/strong&gt;: Privacy preserved across different interaction contexts&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Set Up Instructions / Tutorial
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Docker and Docker Compose&lt;/li&gt;
&lt;li&gt;Node.js 18+ and npm&lt;/li&gt;
&lt;li&gt;Git&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Quick Start (5 minutes)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Clone the repository&lt;/span&gt;
git clone https://github.com/bytewizard42i/SelectConnect.git
&lt;span class="nb"&gt;cd &lt;/span&gt;SelectConnect/selectConnect_app_pro

&lt;span class="c"&gt;# 2. Run automated setup&lt;/span&gt;
&lt;span class="nb"&gt;chmod&lt;/span&gt; +x start-hackathon-demo.sh
./start-hackathon-demo.sh

&lt;span class="c"&gt;# 3. Access the application&lt;/span&gt;
&lt;span class="c"&gt;# Frontend: http://localhost:3000&lt;/span&gt;
&lt;span class="c"&gt;# Proof Server: http://localhost:8080&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Manual Setup (Development)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Start Midnight proof server&lt;/span&gt;
./start-proof-server.sh

&lt;span class="c"&gt;# 2. Install dependencies&lt;/span&gt;
npm &lt;span class="nb"&gt;install&lt;/span&gt;

&lt;span class="c"&gt;# 3. Configure environment&lt;/span&gt;
&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env
&lt;span class="c"&gt;# Edit .env with your settings&lt;/span&gt;

&lt;span class="c"&gt;# 4. Compile contracts&lt;/span&gt;
npm run compile

&lt;span class="c"&gt;# 5. Run tests&lt;/span&gt;
npm &lt;span class="nb"&gt;test&lt;/span&gt;

&lt;span class="c"&gt;# 6. Start development server&lt;/span&gt;
npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Production Deployment
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. Full-stack deployment&lt;/span&gt;
./start-full-stack.sh

&lt;span class="c"&gt;# 2. Configure production environment&lt;/span&gt;
&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env.production
&lt;span class="c"&gt;# Set production values&lt;/span&gt;

&lt;span class="c"&gt;# 3. Build and deploy&lt;/span&gt;
npm run build
npm run start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Testing Scenarios
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Conference Networking Test&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run &lt;span class="nb"&gt;test&lt;/span&gt;: conference
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Dating Safety Test&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run &lt;span class="nb"&gt;test&lt;/span&gt;: dating
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Enterprise Sales Test&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run &lt;span class="nb"&gt;test&lt;/span&gt;: enterprise
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Architecture Overview
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SelectConnect/
├── contracts/
│   ├── SelectConnectProtocol.compact  # 967 lines, 22 ZK circuits
│   └── AbuseEscrow.compact           # Bond management
├── frontend/
│   └── NoirCardApp.tsx               # React UI with QR codes
├── relay/
│   └── RelayService.ts               # Privacy-preserving message relay
├── docker-compose.yml                # Midnight infrastructure
├── TUTORIAL.md                       # Comprehensive guide (25,477 bytes)
└── tests/scenarios/                  # Real-world test cases
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Key Components
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Smart Contracts&lt;/strong&gt;: Unified protocol with complete privacy preservation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: Beautiful React interface with QR code generation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Relay Service&lt;/strong&gt;: Privacy-preserving message routing with bond verification&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Proof Server&lt;/strong&gt;: Local Midnight environment for ZK proof generation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test Suite&lt;/strong&gt;: Comprehensive scenarios covering all use cases&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For detailed instructions, see our award-winning &lt;a href="//TUTORIAL.md"&gt;TUTORIAL.md&lt;/a&gt; with step-by-step guidance, architecture explanations, and production deployment strategies.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;SelectConnect transforms digital networking by making privacy and accountability work together, not against each other. Built with Midnight's groundbreaking ZK technology, it's the future of safe, private contact sharing.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Team name:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;EnterpriseZk Labs LLC&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Website:&lt;a href="https://enterprisezk.com" rel="noopener noreferrer"&gt;enterprisezk.com&lt;/a&gt;&lt;/strong&gt;&lt;br&gt;
Team members for this hackathon:&lt;br&gt;
John Santi (johnny5i aka bytewizard42i) &lt;br&gt;
X handle: &lt;a href="https://x.com/RealJohnSanti" rel="noopener noreferrer"&gt;https://x.com/RealJohnSanti&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thank you for checking it out!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffa3mvhkhv9p60vwchxjm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffa3mvhkhv9p60vwchxjm.png" alt=" " width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2cmdpir989odytickkk5.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2cmdpir989odytickkk5.jpg" alt=" " width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fno7p92umqqeowax8muu6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fno7p92umqqeowax8muu6.png" alt=" " width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff8ggb8kdg6nd7sgtbirn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff8ggb8kdg6nd7sgtbirn.png" alt=" " width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>midnightchallenge</category>
      <category>web3</category>
      <category>blockchain</category>
    </item>
  </channel>
</rss>
