Skip to content

Commit

Permalink
Merge pull request #554 from o1-labs/barriebyron-fix-offchain
Browse files Browse the repository at this point in the history
fix 2: off-chain storage clarity
  • Loading branch information
barriebyron authored Aug 2, 2023
2 parents 39f4537 + 1fe11e3 commit bc03882
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions docs/zkapps/how-zkapps-work.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,7 @@ If you anticipate your state to be larger, or if the state accumulates per user

### Off-chain state

:::info

Off-chain state is not yet supported.

:::

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.
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. Mina doesn't offer an out-of-the-box solution for off-chain storage.

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.

Expand Down

1 comment on commit bc03882

@vercel
Copy link

@vercel vercel bot commented on bc03882 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs2 – ./

docs2-git-main-minadocs.vercel.app
docs2-minadocs.vercel.app
docs.minaprotocol.com

Please sign in to comment.