Skip to main content

OmbraChain v2 — Whitepaper

Viziune

OmbraChain elimină separarea istorică între "muncă computațională" (PoW) și "muncă productivă". În Bitcoin, electricitatea consumată pentru hash-uri SHA256 e cheltuită pentru securitate, dar nu produce nimic util. În OmbraChain, munca computațională = inferență AI utilă (cod, chat, analiză, generare). Userii plătesc fee pentru task-uri AI; minerii le procesează; recompensa scalează cu efortul real (tokens AI generați).

Arhitectura sistemului

┌──────────┐ submit task ┌─────────┐ broadcast ┌──────────┐
│ USER │ ───────────────> │ MEMPOOL │ ────────────> │ MINERS │
│ (wallet) │ └─────────┘ │ (AI work)│
└──────────┘ └─────┬────┘
│ TASK_RESPONSE

┌────────────┐ attestation ┌──────────────┐
│ VALIDATORS │ <──────────── │ PROPOSER │
│ (judge AI) │ ────────────> │ (mine block) │
└────────────┘ sign block └──────┬───────┘
│ block + attestations

┌─────────────────────┐
│ CHAIN (immutable) │
└─────────────────────┘

Trei mecanisme de consensus

OmbraChain v2 combină trei mecanisme distincte care lucrează împreună:

1. Proof of AI Tokens Used (PoATU)

Mineri: procesează task-uri AI submitate de utilizatori și încasează OMBRA proporțional cu tokens generați (output + thinking).

Formula: reward_miner = (outputTokens + thinkingTokens) / 1,000,000 OMBRA

Detalii: PoATU.

2. Proof of Token Used (PoTU)

Proposer: arde OMBRA per bloc ca "energy cost". Scalat cu munca AI din bloc.

Formula: burn_proposer = MAX(0.00001, total_block_tokens / 10,000,000) OMBRA

Detalii: PoTU.

3. Validator Attestation

Validatori: fiecare bloc cere cel puțin 1 semnătură de validator selectat reputation-weighted.

  • Selecție: selectValidators(prevHash, height, count) deterministic VRF cu reputation^1.5
  • Proposer mereu inclus ca prim validator (liveness guarantee)
  • Reward: 0.0001 OMBRA + 5% fee per attestare

Detalii: Validator Attestation.

Hard fork v1 → v2

Aspectv1 (pre-fork < #7500)v2 (post-fork ≥ #7500)
Reward miner50 OMBRA coinbase + 70% fee(output+thinking)/1M + 70% fee
Coinbase 50 OMBRAPe blocuri cu TASK_REWARDEliminat complet
Burn proposerMAX(0.00001, tokens/10M)
Validator attestationObligatoriu (1+)
Fee split user task70/20/5/570/25/5 (miner/burn/validator)
Selecție validatorReputation VRF + proposer guaranteed

Backward compat: blocuri pre-fork rămân valide cu reguli vechi; chain.ts ramifică pe isPostFork(block.index).

Block structure

interface Block {
// pre-fork (legacy)
index: number;
timestamp: number;
previousHash: string;
proposer: string;
nonce: number;
txRoot: string;
stateRoot: string;
transactions: Transaction[];
hash: string;

// v2 (post-fork)
attestations?: Attestation[]; // semnături validatori (1+, exclus din hash)
tokensBurned?: string; // micro-OMBRA arși de proposer
tokensConsumed?: number; // total tokens AI în bloc
}

Notă tehnică: attestations e exclus din block.hash (semnătura validatorului ar fi imposibilă altfel — validatorii ar semna un hash care le include semnătura). Atestațiile semnează un consensus target stabil = hash(index + prevHash + proposer + txRoot + tokensBurned + tokensConsumed).

Componente software

  • packages/core/ — chain logic, transactions, crypto, storage LevelDB
  • packages/node/ — P2P libp2p, MinerLoop, identity persistent
  • packages/ai-pool/ — task pool, dispatcher (CLI/API/openai-compatible), validator judge
  • packages/api/ — Fastify REST API + SSE live
  • apps/miner-node/ — daemon mainnet VPS (systemd unit)
  • apps/ide/ — Ombra Wallet desktop (Electron)
  • apps/extension/ — Ombra Wallet Chrome extension + Web3 provider
  • apps/explorer/ — OmbraScan web (Next.js 15)
  • apps/docs/ — această documentație (Docusaurus)

Continuă