What is verified, and what is not
Verifiable RPC is precise about its guarantees. This page states what a verified response proves today and, just as important, what it does not prove yet. Every check below is fail-closed: if a check fails, the call throws a typed error and no unverified data is returned.
What every response proves
The sidecar signs each HTTP response with Ed25519 over a fixed 104-byte fingerprint:
[ 0.. 32] sha256(utf8(chain_id))
[ 32.. 64] sha256(request body)
[ 64.. 96] sha256(response body) content-decoded
[ 96..104] timestamp_ms, u64 little-endian
The chain id is an opaque string (for example "42161", "0x89", or TON's "-239"), hashed as given. The signature covers the content-decoded body, so gzip on any hop does not affect it. On every response the SDK rebuilds the fingerprint from the bytes it sent and received and enforces that the response is:
- Signed:
vRPC-Signatureis a valid Ed25519 signature by the key invRPC-Pubkey. - Untampered: any change to the request or the response body breaks the signature (
BadSignature). - An answer to your request: the hash of the exact request bytes you sent is in the fingerprint, so an answer to a different or modified question fails.
- Fresh: the signed timestamp is inside the replay window (60 seconds by default), so an old answer fails as
StaleTimestamp. - Chain-bound: verified against the chain id you pinned. A response from another chain binds a different fingerprint and fails.
What the attestation proves
The first time a key signs a response, and again after the one-hour cache expires, the SDK anchors that key to hardware:
- Fresh and about this key: the TDX quote's report data equals the signing key followed by the random 32-byte nonce the SDK just sent, so the quote was produced now, for this key.
- The signer is the attested node: the attested key equals the key that signed the response, and the attestation is fetched for the exact node in
vRPC-NodeId. - The reported configuration matches: the sha256 of the configuration text the node returns equals the configuration hash, and that hash sits at its fixed position in the quote.
- Genuine hardware: the quote is verified by a mandatory, always-on hardware verifier, Phala's cloud verifier by default, replaceable with a self-hosted endpoint. With no verifier, the call fails rather than passing unverified.
What these checks mean, and which parties you still trust, is laid out in the Trust model.
In Ankr Confidential RPC mode
Ankr Confidential RPC keeps every check above and adds:
- The signature covers the ciphertext. The fingerprint is computed over the encrypted request and response bytes, so no hash of your plaintext appears on the wire.
- The signer must equal the node you attested and pinned (
ConfidentialSignerMismatchotherwise). Only after the signature and signer checks does the SDK decrypt. - Only the attested node can read the call, and any configuration approved for that node's key. The request is encrypted to the attested key of the pinned node, and the answer is encrypted with a key that only your request can derive.
The details are in Ankr Confidential RPC cryptography.
What is not (yet) verified
Full local TDX attestation
The default path verifies the DCAP quote, but it delegates that verdict to a remote verifier service. Still deferred:
- Verifying the quote locally against the Intel PCK root, so you do not have to trust a remote verifier.
- RTMR event-log replay, and comparing
MRTDandRTMR0toRTMR2with the published dstack image and the key provider inRTMR3with a known key service. Until then you rely on Ankr to boot nodes on the genuine dstack image with its own key service. - A node-independent configuration-hash source. Today's check is self-consistency only: the configuration text and the hash come from the same node, so it catches drift, not a malicious node. There is no published registry of approved hashes yet.
- TCB-status policy.
If you want the full local chain of trust now, run Phala's dstack-verifier against the node's quote yourself. The default public cloud verifier has no SLA and publishes the quotes submitted to it; point the SDK's hardwareVerifier at a self-hosted endpoint to avoid that.
WebSocket subscription streams
The sidecar signs HTTP responses only. WebSocket push streams (eth_subscribe) bypass the signing path and are unverified. Use an HTTP transport for anything you need a signature on. HTTP event polling through filters stays on the verified path.
ENS off-chain reads
ENS off-chain resolution (CCIP-Read), avatars and IPFS metadata are fetched from gateways outside the signed RPC path. Those bytes are unverified even when the on-chain RPC legs around them are signed. In Ankr Confidential RPC mode the SDK switches CCIP-Read off for ethers, and you switch it off for viem, so call data does not go to those gateways. ENS avatar and IPFS metadata fetches are not RPC calls and still go out in plaintext.
Whether the answer is correct
A signature proves the source, not the data. A node that is still syncing, on a minority fork, or hit by a client bug produces a wrong but authentic answer, and the sidecar signs it faithfully. Combine vRPC with a light client where you need proof of state.
Related
- Overview: what vRPC is and how the attestation flow works.
- Quickstart: the integration for ethers, viem and any HTTP client.
- Trust model: who is trusted for what, attack vectors and residual risks.
- github.com/w3tech/verifiable-rpc-sdk: the SDK source and the full verification details.