TasQ ZK Layer

TasQ Zero-Knowledge Ledger System

TasQ’s ledger processes and validates tasks without exposing sensitive data. It integrates Groth16 for fast succinct proofs and PlonK for universal circuits. Proofs are generated at the node, verified by the ledger, and anchored to Ethereum for auditability.

Privacy-First Task Flow

  1. Client encrypts payload with a per-session key, uploads chunks, and submits a task commitment.

  2. Scheduler assigns microtasks. Nodes receive only encrypted chunks plus public parameters.

  3. Nodes compute results and generate ZK proofs.

  4. Ledger verifies proofs, aggregates results, and finalizes a Merkle root for the task.

Circuit Definition (Circom example)

pragma circom 2.1.6;
include "circomlib/circuits/poseidon.circom";

// Proves y = H(x) without revealing x
component main {public [y]} = Poseidon(1);
signal input x;
main.inputs[0] <== x;
y <== main.out;

Node-side Proof Generation (TypeScript using snarkjs)

import { groth16 } from "snarkjs";
const { proof, publicSignals } = await groth16.fullProve(
  { x: privInput },
  "poseidon_js/poseidon.wasm",
  "poseidon_final.zkey"
);
// attach proof with result
submitResult({ taskId, shardId, resultHash, proof, publicSignals });

Verifier Invocation (TypeScript)

Ledger Entry Schema (JSON)

Go Scheduler and Routing

gRPC Interface (proto)

Solidity: Minimal Proof Anchor and Payout Escrow (Ethereum mainnet)

Optimism Credit Mint (Solidity, ERC-1155 style)

Merkle Aggregation of Shards

Security and Transport

  • TLS 1.3 for all gRPC channels

  • Ed25519 identities for nodes with BLAKE3 commitments

  • Nonce-seeded workloads to prevent replay of benchmarks or results

Performance Optimizations

  • WebAssembly workers for parallel proof generation

  • Proof batching and single aggregate verification per task

  • Caching of verification keys and circuit metadata

This end-to-end flow covers circuit design, node proof generation, transport, ledger recording, Merkle aggregation, and Ethereum anchoring with escrow payouts. It keeps data private, results verifiable, and settlements transparent.

Last updated