Hello everyone! I’m Ayano, the student council vice-president💜
Starting from this week, our Gakuen Magazine is launching! Although We’re still beginners, I hope to write articles that can be of use to everyone.
Lately, there has been a lot of buzz surrounding zkRollups, including zkSync and zkEVM. The comparison of these two zkRollups has been a hot topic in the community, and today, we'll be diving into an overview and comparison of these two exciting technologies. Stay tuned to learn more about their differences and potential implications in the blockchain ecosystem!
(Notice: This content is not a financial advice. Please conduct thorough research and invest at your own risk and responsibility.)
zkSync and zkEVM
ZkSync Era and Polygon's zkEVM are both zkRollup, but there are some differences.
The main difference between them is that zkEVM pushes all transaction data from Layer 2 to Layer 1, while ZkSync Era only stores the state changes resulting from executing Layer 2 transactions.
ZkSync Era's approach is more efficient as it requires less data storage and allows for batching multiple changes that affect the same accounts. This efficiency is demonstrated in the gas cost, with ~450k gas for 4 transactions in zkEVM versus 1M gas for 512 transactions in Era. (It's worth noting that verification cost is not included in these figures). It’s MASSIVE!
So, why push raw tx data then? It’s TRANSPARENCY! It’s significantly easier to implement force tx mechanism when submitting full tx data onchain.
As we can see, there are differences in the mechanisms of some zkRollups. Since both chains' ecosystems have yet to fully develop, there is much anticipation for their future development!
Sentiment
Last week, there was a lot of excitement around the “Yama”. Now, we will explain Sentiment, which is a similar project that came before it.
https://twitter.com/sentimentxyz
Sentiment is categorized under the "leveraged farming" in Defillama. It consists of lenders and borrowers. Lenders deposit USDC or other assets to earn rewards.
Borrowers can take out loans using the lenders' collateral to leverage their positions. However, borrowers must also deposit a certain amount of collateral. The borrowed funds are not directly transferred to the borrower's address, but can only be used within the Sentiment protocol's strategies. The protocol's goal is to enable high leverage with small initial capital to earn rewards.
Yama
Yama is a protocol that achieved TVL of 1 million within just one day, which is an impressive feat!
The protocol is launched on Arbitrum and is similar to Sentiment, with lenders and borrowers able to engage in leveraged farming.
One unique feature of Yama is the “Yama” stablecoin, which acts as an intermediary. For example, if a lender lends USDT and withdraws their rewards, they would receive Yama instead of USDT. Yama is exchangeable with USDT at a 1:1 ratio within the protocol. It is unclear what role the Yama stablecoin serves, but overall the protocol seems interesting!
Solidity’s new variable - block.prevrandao
Can we generate random number on smart contracts?
In Solidity 0.8.18, a new global variable called "block.prevrandao" was implemented. Its value is derived from the RANDAO, which is the random number generator used in the Beacon chain. RANDAO generates a number by combining multiple sources, so the block proposer can only have a minimal impact on the outcome. However, if the same validator proposes two or more blocks consecutively, their probability of significantly affecting the resulting number increases. Although "block.prevrandao" is not 100% secure, it is a positive development as generating randomness on the blockchain was not possible before. (This feature is likely only available on the Ethereum mainnet).
Today's article was brought to you by Ayano. Thank you for reading until the end🥳
The next article will be by Mirai. Stay tuned for next week!
Please follow Lenster as well.
https://lenster.xyz/u/346137