Wakeless

Bindings

The interface

The SettlementBinding interface: what a Wakeless settlement pool must provide, typed with @solana/kit addresses and signatures and bigint base-unit amounts. @wakeless/binding-magicblock implements it; Rings and Privacy Cash bindings follow the same shape. Nothing outside a packages/binding-* package may import a privacy primitive directly; an eslint rule enforces it.

interface SettlementBinding {
  id: "magicblock" | "rings" | "privacycash";
  network(): Caip2;
  escrowAddress(): Address;
  readDeposit(sig: Signature, ref: DepositRef): Promise<{ amount: bigint; buyer: Address } | null>;
  settle(to: Address, amount: bigint, ref: SettleRef): Promise<{ sig: Signature; receipt: Receipt }>;
  refund(to: Address, amount: bigint, ref: ClientRef): Promise<{ sig: Signature }>;
  privateBalance(): Promise<bigint>;
  transferStatus(sig: Signature): Promise<"landed" | "failed" | "not_found">;
  observe(sig: Signature): Promise<ObserverView>;
}

MagicBlock today

Every settlement call goes through one SettlementBinding (readDeposit, settle, refund, privateBalance, transferStatus, observe) implemented over MagicBlock's Private Ephemeral Rollup. Construction verifies TEE attestation with verifyTeeRpcIntegrity from @magicblock-labs/ephemeral-rollups-kit 0.17.3 and refuses to start otherwise (shielded_attestation_failed); the report is written with every run. A binding call that cannot be made privately fails with shielded_binding_rejected, is never retried, and is never retried as a public transfer; no path in the code falls back to a public transfer, and nothing is simulated.

PieceValue
Base layerSolana devnet, CAIP-2 solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1, asserted by genesis hash before any RPC call; devnet USDC 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU
Private Ephemeral RollupMagicBlock's devnet TEE validator MTEWGuqxUpYZGFJQcp8tLN7x5v9BSeoFHYWQQ3n3xzo, RPC https://devnet-tee.magicblock.app (Intel TDX; quote verification data from https://pccs.phala.network/tdx/certification/v4)
Private Payments APIhttps://payments.magicblock.app, cluster: "devnet-private" (plain devnet is the public validator, not a PER); it builds the private transfers, which are signed locally and submitted to the attested TEE RPC; its memo field is never set
Ephemeral SPL Token programSPLxh1LVZzEkX99H6rqYizhytLWPZVV296zyYDPagv2: the Global Vault that holds every private balance; deposits into it and withdrawals out of it are the base-layer edges
Delegation programDELeGGvXpWV2fqJUhqcF5ZSYMS4JTLjteaAMARRSaeSh: delegates ephemeral token accounts to the validator
Permission programACLseoPoyC3cBqoUtkbjZ4aDrkurZW86v19pXz2XQnp1: per-account read permissions inside the rollup; permission accounts exist only on the rollup
Attestation reportsdocs/attestation-facilitator.json, docs/attestation-client.json, docs/attestation-mcp.json, docs/attestation-vendor.json, rewritten on every start; the spike's report with the raw quote is docs/attestation-devnet.json, sha256 de6b34c5b59795db28e7066d0e461bd6df84a8c3cf0849b57a3f103340f87f40 on 8 Nov 2026
Escrow (v1)A keypair held by the facilitator, EasXF7gqHLMMncsB7aV18EtzrhNkzQy2oC7pdKPKT3k6 on devnet, whose private ephemeral USDC balance is funded by buyers' private deposits; docs/ESCROW.md decides the v2 program-owned escrow

What is on the base layer: a party's vault deposit (its address, the vault, the amount, under the Ephemeral SPL Token and delegation programs), a vendor's vault withdrawal (cranked by the validator identity; the vault and the vendor, the amount; the source is the vault, never the escrow), and each party's one-time onboarding deposit. What is not: the channel deposit from the buyer's private balance to the escrow, every voucher (off chain), every redemption from the escrow to a vendor, and every refund back to the buyer; these are ephemeral-to-ephemeral transfers that execute inside the rollup and are never broadcast, and the TEE RPC returns for them an ephemeral transaction with no accounts, logs or balances, to the recipient as much as to anyone. Two consequences the design rests on: the facilitator verifies a deposit from the client-signed transaction the x402 deposit payload carries (buyer, amount, no Memo), then checks that it landed and that the escrow's private balance grew; and the randomised settlement delay and split the binding sends shape only the queued route, so they are not relied on.

Roadmap: Rings and Privacy Cash

  • Binding to Helius Rings beside MagicBlock, behind BINDING=rings, so the same scheme runs over a prover instead of an enclave; and a Privacy Cash binding, behind BINDING=privacycash, for the payout leg only: the vendor's income stays public and its link to the buyer is broken.

On this page