for the zinc smart contract, we have 2 examples in the documents.
I would like to see a smart contract which is able to make a zksync transfer when a condition is met.
The condition, for example, to be provide a piece of data whose sha256 is the target value. When this condition is met, then a zksync transfer is executed.
Can someone please help to put such an example in the document?
https://zks.org/en Is this project related in any way?
@reasv That project is concerning. It claims to be a rollup but looking at the white paper and description of ZKSpeed (the architecture it uses) it does not provide all information needed to rebuild the state using L1 information alone. Not only that but it also does not provide worst-case scenarios or how the data needed to create a merkel proof / rebuild the state is kept best-available since it is not 100% on Layer 1. I can't find this information easy accessible which I find to be quite an oversight. They do claim there is a "summary" of data for the L2 transactions (e.g., swaps)-- whatever that means (?update the merkel root?). Regardless, there is over $150 million USD locked into this thing and it worries me. Sorry to extend that conversation here @hedgar2017 , I just wanted to sneak that in.
Hi @hedgar2017 , I hope you are well, please let me know if maybe you could point me in the right direction with this message?
"Hi guys, I asked this question in the zkSync chat but thought maybe I should ask it here too. For L2 smart contract data on zkSync, if for example one is using Zinc's "Structure" data type, where would that sort of information end up getting stored? Would it be decentralised and/or censorship-resistant or would it be more prone to being lost than L1 data? It seems like the "State Merkle Tree" in zkSync keeps accounts and their balances with the same security guarantees as L1 but I am wondering about other types of data (e.g. Structures). Sorry if I am misunderstanding something. Thanks a lot! :)"
Hi! I'm trying to learn more about the zkSync VM. It's just a little hard to find in-depth info. There are 2 resources but they seem to conflict.
https://zinc.zksync.io/09-virtual-machine/00-overview.html says "The current VM is not supported anymore, as we move to another concept. Follow our official channels in order to get the latest information."
https://zksync.io/dev/contracts/#sync-vm says "The Sync VM is a high-efficient, Turing-complete, SNARK-friendly virtual machine for executing zkSync smart contracts."