Urgent.News

the world's headlines, one feed

Editions

Tech

Zero-Knowledge Age Verification on Midnight: How Compact Enables Private On-Chain Data

How do you verify user eligibility on-chain without revealing sensitive personal identity data? Traditional KYC processes force an unwanted trade-off: transparency versus privacy. Exposing dates of birth or identity credentials directly on a public ledger introduces severe privacy and security risks. Midnight Network solves this dilemma through a clean separation of Public vs. Private State:…

Midnight Network addresses privacy concerns in on-chain data verification by separating public and private states. Public state on the ledger only contains verification status, while private data remains on-device within the user's wallet. The network's Compact language simplifies the creation of zero-knowledge logic, enabling developers to write age verification functions without intricate cryptographic circuits.

For instance, the AgeVerification contract checks if the difference between the current year and a user's birth year is 18, then updates the is_verified status on the public ledger. This process occurs entirely locally, with no raw birth year data ever leaving the user's wallet. Cryptographic proofs prove the verification without revealing sensitive personal information.

By abstracting complex ZK mathematics into straightforward logic, Midnight allows for privacy-first decentralized applications, revolutionizing data ownership on the blockchain.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — it may contain errors, so check the original before relying on it.

Read the original at dev.to →

More in Tech

Basant 2027 Dates Confirmed

Basant 2027 Dates Confirmed

Punjab is set to celebrate Basant 2027 in January, with the festival expected to be held before the start of … Read More The post Basant 2027 Dates Confirmed appeared first on ProPakistani .

How to Build a Production Agent Harness

AI agents don't usually become unreliable all at once. They degrade quietly. One session the agent repeats a step it already completed.

  • Context component prepares project components and relationships
  • Verifier component checks agent output against done condition
  • Install harness components using bit install command

OpenCode Session Framework Internals

The easiest way to misunderstand an agent session is to treat it as a chat API call with a longer memory. Send a prompt, receive a response, append both to a transcript. That is enough for a demo.