From API call to on-chain proof in minutes. No blockchain expertise required.
Your System MidnightZK Midnight Blockchain | | | | POST /anchor {hash} | | |----------------------------->| | | | | | 202 Accepted {task_id} | | |<-----------------------------| | | | | | | Generate ZK Proof | | | ........................ | | | | | | Submit Transaction | | |----------------------------->| | | | | | Confirmed (block #N) | | |<-----------------------------| | | | | Webhook: task.completed | | |<-----------------------------| | | {tx_hash, block_height} | |
Each client receives a dedicated API key and app namespace (e.g., tw-cbam). Your key defines your rate limits, scopes, and webhook endpoint.
Generate a SHA-256 hash of the document or data you want to anchor. The hash is a fixed-length fingerprint — it's mathematically impossible to reverse it back to the original data.
Send the hash to MidnightZK. The API returns immediately with a task ID — the actual proof generation happens asynchronously.
MidnightZK's enclave worker generates a zero-knowledge proof. This proof mathematically guarantees that the hash was correctly processed — without revealing the hash itself to the blockchain in plaintext.
The proof is submitted to the Midnight blockchain. Once confirmed in a block, MidnightZK sends a webhook to your system with the transaction details.
Anyone with the original data can re-hash it and call the verification endpoint. If the hash matches an on-chain record, the data's integrity is confirmed — no trust required.
No. MidnightZK handles all blockchain interactions. You only need to generate a SHA-256 hash (a standard operation in any programming language) and call a REST API.
Typically 1-3 minutes from API call to on-chain confirmation, depending on network conditions. You receive the result via webhook — no polling required.
No. Only the zero-knowledge proof is written on-chain. Your raw data never leaves your system. Even the hash is processed in memory and destroyed immediately after proof generation.
Midnight is a Layer-1 blockchain built by Input Output Global (IOG), the creators of Cardano. It's designed specifically for data protection, with native zero-knowledge proof support. MidnightZK is an independent service built on top of Midnight.