Overview of ZKsync’s Storage Proofs
ZKsync is a layer-2 scaling solution for Ethereum, designed to increase transaction throughput and reduce fees while maintaining the security and decentralization of the Ethereum network. It operates as a rollup that posts state roots and Zero Knowledge proofs to Ethereum, ensuring the integrity of computations performed on ZKsync. Although ZKsync is an EVM-compatible blockchain, it uses a different hashing method called Blake2, which differs from Ethereum’s SHA-256 hashing algorithm.

OffchainLookup
error, which acts as a trigger for the client to handle specific off-chain data requests.
When the client encounters the OffchainLookup
error, it responds by calling a specified gateway URL, which in this case is the Clave Gateway. The Clave Gateway then provides a storage proof for the requested subname. The client subsequently verifies this proof, ensuring that the subname data is authentic and trustless. This mechanism makes Clave subnames trustless by design.
Here’s the OffchainLookup
error definition:
The current flow for resolving a Clave Username is as follows:
- An application queries the Ethereum client for the address associated with
dogan.clv.eth
. - The Ethereum client calls the Clave Gateway for a proof.
- The Clave Gateway provides a storage proof and the necessary data to prove the name on-chain.
- The Ethereum client simulates the proof and returns the corresponding
0x
address to the application.
