alderconfidential DA on Solana
Core Concepts

Blinded DAS and Multiproofs

Client-chosen random cell sampling, on-chain Solana RPC root verification, Merkle DAS proofs, 2D RS codeword verification, and availability confidence math.

Data Availability Sampling (DAS) lets any light client confirm that an encrypted blob's coded cells are available by downloading a small client-chosen random subset of cells and verifying their SHA-256 Merkle inclusion paths directly against BlobRecord.commitment_root read from Solana RPC.

Why Sampling Works on Ciphertext

Because the n x n TCDA matrix is encoded from AES-256-GCM ciphertext, a DA node cannot infer payload content, and a light client never needs the content key to verify availability. Every SampleBlobResponse sets plaintextExposed: false.

When calling POST /v1/blobs/:id/sample (or sdk.sampleAvailability), the client supplies:

  • sampleCount: integer from 1 to 64 (default 16)
  • coordinates: distinct random { row, col } pairs generated client-side over 0..n-1
  • blindedSalt: client-generated random hex salt (8..128 characters; @alder/sdk generates 12 random bytes = 24 hex characters) folded into the Fiat-Shamir transcript digest to bind each sampling session
NOTE
In v1, coordinates are sent in the sample request and bound by blindedSalt in the transcript digest. Oblivious PIR queries with encrypted index vectors (hiding requested coordinates from DA nodes) are scheduled in Build 2 of road/ROAD.md.

Merkle DAS Proof Structure (alder-poly-multiproof-v1)

For each sampling request, the backend returns each sampled cell's Merkle inclusion path alongside a Fiat-Shamir transcript digest (PolynomialMultiproof schema in @alder/contract, implemented in backend/src/crypto/tcda.ts):

  1. Cell Merkle paths: Each sampled cell (row, col) at row-major index row * n + col includes dataBase64, cellHash, rowCommitment, colCommitment, merkleIndex, and merklePath of exact length ceil(log2(n * n)) up to commitmentRoot.
  2. Fiat-Shamir challenge scalar:
text
   challengeScalarHex = SHA-256(
     "alder:fiat-shamir:v1:" || commitmentRoot || ":" || blindedSalt || ":" ||
     join(sampledCells, (r, c) => "${r},${c}", ";")
   )
  1. Aggregated evaluation digest:
text
   aggregatedEvalHex = SHA-256(
     "alder:poly-eval:v1:" || challengeScalarHex ||
     concat(sampledCells, c => "${c.row}:${c.col}:${c.cellHash}")
   )
  1. Transcript proof digest:
text
   proofDigestHex = SHA-256(
     "alder:multiproof:v1:" || commitmentRoot || ":" ||
     challengeScalarHex || ":" || aggregatedEvalHex
   )

Local Light-Client Verification Against On-Chain Root

fetchOnChainBlobCommitmentRoot(rpcUrl, blobPda) reads BlobRecord directly from Solana RPC (getAccountInfo, commitment confirmed) and extracts commitment_root from bytes 72..104.

verifyMultiproof(sample, expectedCommitmentRoot, expectedCoordinates?) in @alder/sdk requires an explicit 64-character hex on-chain root (never falling back to the server's response) and checks:

  1. sample.multiproof.commitmentRoot === expectedCommitmentRoot (matching Solana BlobRecord.commitment_root).
  2. Every sampled cell is within 0 <= row < n and 0 <= col < n, with zero duplicate (row, col) coordinates (preventing single-cell replay inflation).
  3. cell.merkleIndex === cell.row * sample.n + cell.col and cell.merklePath.length === expectedMerkleDepth(n * n).
  4. For each sampled cell, hashCell(row, col, fromBase64(dataBase64)) === cell.cellHash, and merklePath hashes up to expectedCommitmentRoot.
  5. Every client-requested coordinate in expectedCoordinates is present in sample.sampledCells.
  6. Recomputed challengeScalarHex, aggregatedEvalHex, and proofDigestHex match sample.multiproof byte for byte.
  7. valid = true only when failedCells === 0, sample.missingCells.length === 0, digestMatches === true, and verifiedCells > 0.

2D Reed-Solomon Codeword Verification and Confidence Math

Before anchoring and attesting a blob, the API runs verifyTcdaCodeword(cells, k, n) to confirm that all n * n cells form a valid 2D Reed-Solomon codeword over GF(256) (0x11d). Under a valid 2D (2k, k) Reed-Solomon codeword, withholding enough cells to prevent reconstruction requires withholding more than 25% of all n * n cells (at least (k + 1)^2 cells).

After s distinct verified cells with zero missing cells, the availability confidence percentage computed by both the backend and @alder/sdk is:

ts
confidencePct = Math.min(99.99, Number((100 * (1 - Math.pow(0.75, verifiedCells))).toFixed(2)))
Verified Samples (s)Withholding Miss Probability (0.75^s)Confidence (confidencePct)
431.64%68.36%
810.01%89.99%
16 (default)1.00%99.00%
240.10%99.90%
320.01%99.99%

Next Steps