Skip to content

Commit

Permalink
Udpate bridge (#59)
Browse files Browse the repository at this point in the history
update docs

---------

Co-authored-by: kksamoy <[email protected]>
  • Loading branch information
abrahamcruise321 and kksamoy authored Mar 9, 2024
1 parent 0480ffb commit fb4893b
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 8 deletions.
52 changes: 49 additions & 3 deletions docs/zkevm/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,54 @@ id: overview
title: Overview
displayed_sidebar: zkevm
---
Dogechain is powered by Dogechain team and Polygon, and now supports zkEVM.

Dogechain zkEVM is a Layer 2 network of the Ethereum Virtual Machine (EVM), a zero-knowledge (ZK) rollup scaling solution. Dogechain zkEVM uses a cryptographic primitive called a ZK proof to validate state transitions.
Dogechain serves as a layer-2 solution for the Dogecoin PoW blockchain. As such, the Dogechain PoS is a standalone EVM sidechain that brings utility to Doge and uses the original memecoin as gas.

While the initial PoS chain greatly serves its purpose in this regard, it still needs to rely on third-party services for interoperability and liquidity (bridges, aggregators, etc.) with the broader blockchain ecosystem.

To solve this shortcoming, the Dogechain community voted in favor of developing a chain that uses Polygon CDK and will use rollup technology that will allow better asset composability and interoperability with the broader EVM ecosytem.

# What is Dogechain zkEVM ?

## Why does Dogechain as an L2 of Ethereum bring to the table?

- Dogechain PoS serves as a L2 solution to Dogecoin PoW and it has provided abundant usage scenarios for more than 300M DOGE and their holders. However, centralized bridges, albeit vital to bringing liquidity to the chain, have proven to be vulnerable and exert a high risk to users. Dogechain zkEVM will benefit from trustless asset bridging using rollups, from Ethereum and the numerous chains utilizing Polygon CDK. In this regard, it will remove the dependence on third-party bridges, increase security and provide higher interoperability with other blockchains.
- Dogechain zkEVM will connect to a wider Layer 2 Dapp ecosystem & liquidity with zkEVM technology while remaining to be powered by Dogecoin, where DOGE is used as gas.
- Sets a platform for a growing ecosystem for EVM-native ZK applications and enhances utility for Dogecoin by providing it with industry-leading EVM-equivalent smart contracts. As the zkEVM inevitably grows, so will the opportunities for Dogechain users of trustlessly access and utilize liquidity from these blockchains.
- Rolls up transactions on the Ethereum blockchain, enforcing immutability and benefitting from its high security and decentralization.

## How Does Dogechain zkEVM Work?​

Co-developed by Dogechain, Polygon, and Caldera, Dogechain zkEVM is a Layer 2 network of the Ethereum Virtual Machine (EVM) and a zero-knowledge (ZK) rollup scaling solution. Dogechain zkEVM uses a cryptographic primitive called a ZK proof to validate state transitions.
As EVM-equivalent, Dogechain zkEVM supports the majority of Ethereum EIPs, pre-compiles, and opcodes. Developers benefit from the seamless deployment of smart contracts, developer tools, and wallets that already work on Ethereum, but in an environment with significantly lower costs.

The Dogechain zkEVM testnet launched with a complete ZK proving system and full transaction data availability. The proving system uses a combination of eSTARK proofs and FRI, that are then compressed using FFLONK SNARKs to create the final ZK proof.

### Lower Fee and Higher Accessibility

Leveraging Polygon CDK’s full transaction data availability and Gas customization feature (upcoming), Dogechain zkEVM delivers a fast and cheap building environment for Ethereum L2 and the Dogecoin PoW ecosystem.

The gas customization feature will allow Dogechain zkEVM users to plug in their Dogecoin and use it as gas on the chain, instead of ETH. This perpetuates the Dogechain narrative of bringing utility to Dogecoin and providing a smart contract layer for the Dogecoin PoW blockchain.

### Easy-to-Build; More-to-Explore

Empowered by Polygon, Dogechain zkEVM is designed to be EVM-equivalent rather than just compatible.

The difference between EVM-compatibility and EVM-equivalence is that;
- Solutions that are compatible support most of the existing applications, but sometimes with code changes. Additionally, compatibility may lead to breaking developer tooling.
- Dogechain zkEVM strives for EVM-equivalence which means most applications, tools, and infrastructure built on Ethereum can immediately port over to Dogechain zkEVM, with limited to no changes needed.

EVM-equivalence is critical to Dogechain zkEVM for several reasons, including the following:
- Development teams don’t have to make changes to their code, and this eliminates the possibility of introducing new security vulnerabilities.
- No code changes means no need for additional audits. This saves time and money.
- Since consolidation of batches and finality of transactions is achieved via smart contracts on Ethereum, Dogechain zkEVM benefits from the security of Ethereum.
- EVM-equivalence allows Dogechain zkEVM to benefit from the already vibrant and active Ethereum community.
- It also allows for significant and quick dApp adoption, because applications built on Ethereum are automatically compatible.

Ultimately, Dogechain zkEVM offers developers the same UX as on Ethereum, with significantly improved scalability.
The following differences have no impact on the developer’s experience on the zkEVM compared to the EVM:
- Gas optimization techniques.
- Interacting with libraries, like Web3.js and Ethers.js.
- Deploying contracts seamlessly on the zkEVM without any overhead.


Dogechain zkEVM is EVM-equivalent. It supports the majority of Ethereum EIPs, precompiles, and opcodes. Developers benefit from the seamless deployment of smart contracts, developer tools, and wallets that already work on Ethereum, but in an environment with significantly lower costs.
3 changes: 2 additions & 1 deletion docs/zkevm/quick-start/bridge-to-zkevm.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ title: Bridging assets to zkEVM
-->

Users can deposit assets from Ethereum and transact off-chain on Dogechain zkEVM. For moving assets across chains (L1 &harr; Dogechain zkEVM), you will need to use the Dogechain zkEVM Bridge.
Testnet bridge interface: https://dogechain-bridge.caldera.dev

Testnet bridge interface: https://bridge.testnet-cdk.dogechain.dog

<!-- The next video is a guide on how to bridge tokens from L1 to the Dogechain zkEVM Testnet. The same video applies to the Dogechain zkEVM Mainnet.
Expand Down
6 changes: 3 additions & 3 deletions docs/zkevm/quick-start/connect-wallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Connect to either the Dogechain zkEVM's mainnet or the testnet.

Add the Dogechain zkEVM network of your choice to your wallet by navigating to the add network input, and enter the respective network details as given in the below table:

| Network | RPC URL | ChainID | Block Explorer URL | Currency |
| ------- | ------------------------------- | ---------------- | ---------------- | ----- |
| Testnet | `https://rpc.testnet-cdk.dogechain.dog` | `2024115` | `https://explorer.testnet-cdk.dogechain.dog` | **ETH** |
| Network | RPC URL | ChainID | Block Explorer URL | Bridge |Currency |
| ------- | ------------------------------ | --------------- | --------------- | --------------- | ----- |
| Testnet | `https://rpc.testnet-cdk.dogechain.dog` | `2024115` | `https://explorer.testnet-cdk.dogechain.dog` | `https://bridge.testnet-cdk.dogechain.dog` | **ETH** |

<!-- Here is a video tutorial on how to add Dogechain zkEVM Testnet to MetaMask and deploy smart contracts:
Expand Down
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = {
{
to: 'docs/zkevm/overview',
activeBasePath: 'docs/',
label: 'zkEVM',
label: 'Dogechain zkEVM',
position: 'left'
},
{
Expand Down

0 comments on commit fb4893b

Please sign in to comment.