Skip to content

Commit 39f4537

Browse files
authored
Merge pull request #550 from o1-labs/how-zkapp-fix
fix: How zkApps Work off-chain content
2 parents 425e206 + 0d91bf4 commit 39f4537

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/zkapps/how-zkapps-work.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ When the prover function runs in a web browser, the smart contract outputs a pro
137137

138138
The integrity of these account updates is ensured by passing a hash of the account updates as a public input to the smart contract. The account updates must be present and unmodified for the verification function to pass successfully when it runs on Mina. In this way, the Mina network can confirm the integrity of both the proof and the associated account updates that describe how to update the zkApp account state.
139139

140-
### ZkApp state
140+
### zkApp state
141141

142142
- On-chain state describes state that lives on the Mina blockchain.
143143

@@ -157,7 +157,7 @@ Off-chain state is not yet supported.
157157

158158
:::
159159

160-
For larger data, you might want to consider storing the root of a [Merkle tree](/zkapps/snarkyjs/merkle-tree) or a similar data structure within your zkApp's on-chain storage that references additional off-chain state stored elsewhere, such as [IPFS](https://ipfs.io/) and others.
160+
For larger data, you might want to consider storing the root of a [Merkle tree](/zkapps/snarkyjs/merkle-tree) or a similar data structure within your zkApp's on-chain storage that references self-hosted off-chain state stored elsewhere.
161161

162162
When the zkApp runs in a user's web browser, it can insert state to an external storage, such as IPFS. When the transaction is sent to the Mina network, if it accepts this zkApp transaction then proof and state are known to be valid valid so the updates are allowed, then the zkApp transaction can update the root of the Merkle tree that is stored on chain.
163163

0 commit comments

Comments
 (0)