Skip to content

Polygon knowledge layer. Polygon Faucet¶ Start by navigating to faucet. Optionally, you can enable a local blockchain explorer, which auto-indexes all transactions, and provides a feature-loaded dashboard with an overview of the chain. It is designed to realize the core values of decentralization, privacy and assurance. As part of that mission, the team has committed $1 billion, a significant portion of the treasury, to ZK-related efforts. For more details on Polygon’s stance and plans on Governance, please refer to The 3 Pillars of Polygon Governance post in the community forum. Network details ¶ Mumbai testnet deprecated Polygon zkEVM is to Ethereum a Layer 2 network and a scalability solution utilizing zero-knowledge technology to provide validation and fast finality of off-chain transactions. Staking¶. Visit the Polygon Portal documentation page for guides on how to connect to and operate the Polygon Portal website Polygon Knowledge Layer Home CDK zkEVM PoS Miden Developer tools Innovation & design Polygon Knowledge Layer Polygon Knowledge Layer Home CDK CDK Overview The logic within the consensus contract verifies the zero-knowledge proofs, thereby endowing the zkEVM with the security of Layer 1. ; trustedAggregator: trusted aggregated address in wallets. This document provides examples of token mappings on the Polygon PoS mainnet and Amoy testnet. Polygon node consists of 2 layers: Heimdall and Bor. Overview - Polygon Knowledge Layer. Each transaction is encoded according to the Ethereum pre-EIP-155 or EIP-155 formats using RLP (recursive-length prefix) standard, together with the signature values, v, r and s, concatenated as shown below; Local test chain explorer with Ethernal¶. Before committing new L2 state roots to the consensus contract, verification is essential. Plonky was Polygon’s original implementation of a zk-SNARK computational cryptographic library based on Plonk with some customizations. Higher congestion in the network may result in delayed checkpoints. Getting started. We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. This document explains how to automatically write a smart contract using the OpenZeppelin Wizard. Handles block producer selection. The following output should appear: address : 0 x 6 c 468 c f 8 c 9879006e22e c 4029696e005 c 2319 c 9 d coi ns : - de n om : ma t ic amou nt : i : "1000000000000000000000" accou ntnu mber : 0 seque n ce : 0 Using packages Overview¶. It operates as an EVM-compatible Layer-2 (L2) scaling solution for Ethereum, enhancing its throughput while also significantly bringing down gas costs, i. In the context of ZK-proof protocols, a prover can use an Arithmetic circuit to prove knowledge of a valid assignment to all wires of the circuit. The majority of developers use a node provider, or a third-party external service that receives node requests and returns responses for you automatically. This wallet’s private key is on the validator node for signing purposes. Validators on the Heimdall layer pickup the StateSynced event and pass it on to the Bor layer. Our goal is to establish a high-quality, curated, and comprehensive "source of truth" for Polygon's technology. Changes to network architecture. Public notes ¶ 5. AggLayer v1 (AL1), is the first version of many planned iterations that relies on ZK checks to ensure operational soundness, and a unified bridge infrastructure. . Heimdall’s bor module is responsible for managing span intervals and coordinating interactions with the Bor chain. While L2s are their own chains, they are considered “extensions” of Ethereum. These batches are submitted to the L1, where their integrity is proved and verified before being included in the L1 state. This document covers more concepts needed in understanding our specific design of the zkProver storage using binary SMTs. The Polygon bridge brings over an ERC20 version of LINK, and LINK is an ERC677, so we just have to update it with this swap. Introduction. Use that opportunity to open an issue on the Polygon Knowledge Layer’s GitHub repository. There is often a need to access information from the outside world that is relevant to the contractual agreement. EIP-1559. Polygon consists of the three following layers: Ethereum layer: A set of contracts on the Ethereum mainnet. technology and connecting/verifying your Discord by selecting Connect Discord in the top-right corner of the page. This guide provides an index of network details for the Polygon Amoy testnet and Polygon PoS mainnet, including their associated RPC and node endpoints. The design paradigm at Polygon has shifted to developing a zero-knowledge virtual machine that emulates the Ethereum Virtual Machine (EVM). Node how-tos Delegate tokens Sync node using snapshots Run a validator node Run a validator node System requirements Prerequisites Using binaries Using Ansible Using packages This time is approximate and may vary based on validator consensus on the Polygon Heimdall layer. Polygon zkEVM overview Take a global view of the Polygon zkEVM network. System requirements. The unified UI comes with a comprehensive dashboard that can be used by connecting your wallet via popular tools such as MetaMask, Coinbase, Bitski, Venly, WalletConnect, and more. Polygon PoS is an EVM-compatible, proof-of-stake sidechain for Ethereum, with high throughput and low costs. Bor is an integral component of the Polygon network that operates based on principles derived from the Clique consensus protocol, detailed in EIP-225. Replit Overview¶. Although the Dragonfruit upgrade had some advantages over previous zkEVM versions, it has its own pain points. Polygon Chain Development Kit (CDK) is a modular, open-source blockchain stack for developers launching sovereign L2 chains powered by zero-knowledge (ZK) proofs. Polygon zkEVM is a zero-knowledge rollup (or zk-rollup) designed to emulate the Ethereum Virtual Machine. Using Docker. Addresses ¶ There are currently only a few operational Chainlink oracles on the Polygon Mumbai Testnet. Write a contract. The receiver contract inherits IStateReceiver , and custom logic sits inside onStateReceive function. Run an access node. the information about transactions that occurred on the L2). There are some configurable options that are available for all API’s. Replit is a coding platform that allows you to write code and host apps. Polygon Miden is a zero-knowledge rollup for private, high-throughput applications. Configure the Full node. The Polygon team distributes official Docker images which can be used to run nodes on the Polygon PoS mainnet. Check out the all the QRNG Providers here. 10 specifies that the source code is for a Solidity version greater than 0. Heimdall is a tendermint fork that monitors contracts in parallel with the Ethereum network. These concepts also help in elucidating how keys influence the shape of binary SMTs. The L2 gas price cannot simply be set to be the same as the L1 gas price (especially in the case of rollups where the goal is to reduce gas fees). Layer 2s can differ in how they interact with Ethereum. Start the Full node. In particular, and on the execution client side, it delineates on snapshots and state syncing, network configurations, and frequently used commands when running PoS nodes. Staking module manages validator related transactions and state for Heimdall. Be sure to select Layer 2 on the Filter menu on the left side of the page to list wallets that are compatible with Polygon networks. Owner and signer wallets¶. Nodes on Polygon are therefore designed with a two-layer implementation represented by Bor (the block producer layer) and Heimdall (the validator layer). dApp projects are divided into two parts: Nov 14, 2023 · OKX and Polygon Labs today announced the launch of the testnet for ‘X Layer,’ a new Ethereum-based Zero Knowledge (ZK) Layer-2 (L2) network. Transactions¶ These are byte arrays containing the concatenated batch transactions. At the time of writing, cdk-erigon supports the following chains and fork ids: Transactions get reverted if the \(\texttt{gasUsed}\) is greater than the \(\texttt{gasLimit}\). WalletConnect is an open protocol - not a wallet - built to create a communication link between dApps and wallets. Get started. 5. The general configuration for running a Polygon full node is to have at least 4 CPUs/cores and 16 GB of RAM. This is a startup guide for users who wish to use the implementation packages published by Polygon team, to generate and publish a Polygon Decentralized Identifier (DID) on the Polygon ledger. Prepare the Full Node machine. Etrog upgrade¶. Below are some of the key features of CDK: Security: CDK builds high-performance, high-security, scalable L2s that utilize the latest innovations in zero-knowledge technology such as Plonky3 . The Polygon Proof-of-Stake (PoS) network is designed to address scalability challenges within the Ethereum ecosystem. 0, the AggLayer will use ZK proofs to create a seamless, aggregated environment that feels like a single chain–even as each chain in the ecosystem remains sovereign. It queries the RPC for eth_feeHistory and fetches the 10 th , 25 th , and 50 th percentiles of priority fees for transactions in each of the last 15 blocks. Jul 25, 2022 · Polygon zkEVM, which stands for zero-knowledge Ethereum Virtual Machine, leverages the power of zero-knowledge (ZK) proofs to reduce transaction costs and greatly increase throughput, all while inheriting the security of Ethereum. Replit supports Solidity so it provides all of the features and functionality for Web3 developers to create and deploy smart contracts. 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. A wallet and an application supporting this protocol will enable a secure link through a shared key between any two peers. Understanding these ports is crucial for network configuration and effective communication between nodes. Our goal is to establish a high-quality, curated, and comprehensive \"source of truth\" for technical knowledge surrounding Polygon's main technology. Edit the following parameters to match the generated wallet parameters. The learning curve may be daunting, but the barrier to entry is low: The community is very open and welcoming! Projects welcome pull Polygon Knowledge Layer Home CDK CDK Overview Get started Concepts Concepts Layer 2s L2 architecture overview L2 transaction lifecycle Rollups vs. If you’re a new Web3 developer, it’s unlikely that you’ll need to run your own full node on Polygon. Downloading and using client snapshots¶. This document provides details of the Etrog upgrade, which is Polygon zkEVM’s upgrade that succeeds the Dragonfruit upgrade. For example, AWS EC2 r5 or r6 series instances. It is built with read-heavy use-cases in mind such as data indexing and high-load frontend usage. The signer wallet is an address that is used for signing Heimdall blocks, checkpoints, and other signing-related activities. Polygon CDK provides the components necessary to build a layer 2 blockchain that is secure, scalable, and interoperable with other chains. The metadata is a . Execute transactions on Polygon PoS without changing provider on MetaMask (this tutorial caters to MetaMask’s in-page provider, can be modified to execute transactions from any other provider) Under the hood, user signs on an intent to execute a transaction, which is relayed by a simple relayer to execute it on a contract deployed on Polygon Polygon gas station has been deployed both on the Polygon mainnet & Amoy testnet. Token mapping Want to get a custom token mapped to Polygon PoS so it can be bridged over? MetaMask is a crypto wallet for web browsers and mobile devices that interacts with the Ethereum blockchain. To begin, ensure that your node environment meets the prerequisites outlined here. It is a scaling-solution to Ethereum as it rolls up many transactions into one batch. You can try QRNG on the Polygon and Polygon zkEVM for free. Heimdall is the heart of the Polygon PoS network. It performs the following functions: Manages validators. Overview¶. Welcome to the technical documentation and knowledge resources for Polygon protocols and scaling technologies. These checkpoints are attested by a majority of the validator set before being validated and submitted on Ethereum contracts. 5 to 5 terabytes of SSD (or faster) storage. Rollups vs. Polygon is so bullish on the future of ZK, the core development team made it a centerpiece of its strategic vision in the Zero Knowledge Thesis published in August. The first line pragma solidity ^0. The AggLayer is the interoperability layer that CDK chains connect to, enabling features such as seamless and efficient cross-chain communication, unified liquidity, and more. Understand the CDK A high-level overview of the CDK, its features and benefits. This guide provides a detailed list of default ports used across Polygon nodes, including Bor and Heimdall. This community discussion is guiding the Local test chain explorer with Ethernal¶. json file where all the data associated with the NFT is stored. These configurations can be passed as parameters. Welcome to the Polygon Knowledge Layer. Current chain/fork support status¶. More specifically, they often differ in what they do with the transaction data (i. Use the machine with high IOPS and RAM for the faster initial sync; Memory optimized nodes are recommended for faster sync. The Heimdall doesn’t look in sync and hence it won’t have data on all the things that Bor would require. Pragmas are common instructions for compilers about how to treat the source code (e. ChainList¶ Depending on the network profile that you want to add to your MetaMask wallet, use one of the following links to navigate to the respective ChainList page. Polygon portal¶ The Polygon Portal is a comprehensive solution for account management on Polygon. The London hard fork introduced a new EIP that modifies how gas estimation and costs work for transactions on Polygon. Set up MetaMask¶. Retrying again in 5 seconds to fetch data from Heimdall path=bor/span/1¶. And if the proof is correct, the verifier is convinced that the computation expressed as the Arithmetic circuit is valid, but learns nothing about the wires’ assigned values. System requirements¶. The resulting smart contract code can either be integrated with Remix by Clicking the Open in Remix button, or copied to a clipboard and pasted in the user’s intended IDE. Crust supports multiple storage-layer protocols such as IPFS, and exposes instantly accessible on-chain storage functions to users. Cookie consent. 0 Polygon’s governance position¶ Polygon is committed to aligning itself with Ethereum’s norms and values regarding L2 Governance. The Polygon DID method implementation comprises of 3 packages: polygon-did-registrar; polygon-did-resolver; polygon-did-registry SMT concepts. Note that a validator stakes their tokens on the Ethereum chain and becomes a validator. Use the Polygon Portal to deposit and swap tokens between the Polygon zkEVM chain (or the Cardona zkEVM testnet) and other chains. PIP-18 has suggested a phased approach for upgrading Polygon PoS to a zkEVM validium. Heimdall¶. Changes to network token. Polygon zkEVM is a Layer 2 network of the Ethereum Virtual Machine (EVM), a zero-knowledge (ZK) rollup scaling solution. g. The minimum system requirements allow you to run the nodes, but the setup may not be future-proof. Computing L2 gas fees¶. Learn how to build and deploy dApps, launch ZK rollups and validiums as Layer 2s on Ethereum, spin up nodes, and find out about the latest in zero-knowledge research. Install Heimdall and Bor packages on the Full Node machine. This is a major milestone for the Polygon ecosystem, as it would enable Polygon PoS to become more secure, more performant, and a core part of the Polygon 2. To fork Polygon zkEVM, for example, run the following command: dapp-launchpad dev -n polygonZkevm To fork at a particular block number run the command including the optional flag -b : How rollbacks work. Specifically, it determines when a new span can be proposed on Heimdall based on the current block number n and the current span span. 10. This is an important milestone for Polygon PoS’s upgrade to a ZK secured chain. Heimdall and Bor. API3 Docs; API3 Market on Polygon; API3 Market on Polygon zkEVM; Get started with dAPIs; get started with QRNG; Github; Medium; YouTube Plonky 2 & 3 are active research efforts into the development of libraries containing performant cryptographic functions for use in zero-knowledge proof systems. validiums Polygon RPC Proxy and Caching¶ eRPC is a fault-tolerant EVM RPC proxy and re-org aware permanent caching solution. The use of the above-mentioned prover, to a certain extent, adds trustlessness to the Polygon CDK validium. Becoming a zero-knowledge validium instead of a zk-rollup. Polygon zkEVM supports a majority of Ethereum EIPs, precompiles, and opcodes. Layer 2 (L2) blockchains are scaling solutions, typically built on top of Ethereum (L1) that are designed to increase transaction throughput without sacrificing decentralization or security. This section of the documentation contains guides on how to connect wallets to the Polygon zkEVM network, deploy new or existing Ethereum smart contracts, and bridge assets between Polygon zkEVM and Ethereum. Additional resources¶ Here are some additional developer resources. Polygon Knowledge Layer \n. The Portal can be used to perform a variety of tasks, such as: This guide provides a curated list of common commands and Polygon-specific operations essential for node operators. Specifically, the following changes are being proposed: Bridging POL to Polygon PoS: if you bridge POL tokens to Polygon PoS, you will receive an equal amount of native tokens (POL) on Polygon PoS. Verification on layer 1¶ Users typically interact with trusted L2 state. This includes sections on: Polygon CDK; Polygon zkEVM; Polygon PoS; Polygon Miden; Developer tools The Polygon Knowledge Layer consists of technical documentation that developers need for building with Polygon protocols, products, and services. This may also vary based on Ethereum Network. Set a token URI (optional)¶ A token URI is a function that returns the address where the metadata of a specific token is stored. Polygon PoS testnet (Amoy) Polygon PoS mainnet; Polygon zkEVM testnet (Cardona) Polygon zkEVM mainnet Bor. This is the flow required from dapps / users to work with state-sync: Running the script, verifies the inclusion of the Polygon transaction hash on Ethereum chain, and then in turn calls the exitToken function of the predicate contract. Checkpoints. Transaction option¶. These instructions are for running a full Node, but they can be adapted for running sentry nodes and validators as well. Torus is a user-friendly, secure, and non-custodial key management system for decentralized apps. Polygon zkEVM is designed to be EVM-equivalent rather than just compatible. Welcome to the Polygon Knowledge Layer! This documentation is built using the Material theme for MkDocs. To configure MetaMask to use your local environment, make sure the network is running and follow these steps. e. But smart contracts can’t access data from outside of their blockchain network. We’re focused on providing mainstream users a gateway to the decentralized ecosystem. cdk-erigon is a fork of erigon and is currently in alpha. validiums¶. In terms of space, for a full node you’ll need from 2. It is optimized for syncing with the Polygon zkEVM network. Select one of the blockchain testnet networks from the drop-down list: Polygon zkEVM (Cardona) Polygon PoS Amoy (Amoy) Sepolia; Select the type of token you want to receive: A full zk-rollup schema requires on-chain publication of both the transaction data (which users need to reconstruct the full state) and the validity proofs (zero-knowledge proofs). Checkpoints are vital components of the Polygon network, representing snapshots of the Bor chain state. Log in to your MetaMask wallet. Releases. Whether you’re setting up a full node, validator node or troubleshooting, these commands will assist you in managing your Polygon PoS environment effectively. dApp Launchpad is an automated CLI tool for initializing, creating, and deploying a fully-integrated web3 dApp project. You can use the same methods to add Polygon zkEVM to your MetaMask wallet. Available configurations are - Cookie consent. While researching, you may find complex code repositories, 404s on a documentation site, or even no documentation. Getting started Follow the Miden getting started guide to get up and running. However, because of specific protocol characteristics, the verification process for L2 transactions on L1 (to enable withdrawals) can be lengthy, usually taking about 30 minutes, and in rare instances, up to a week. Securing state changes The important thing to note is that the verification of the transaction hash from Polygon PoS and triggering the predicate contract happens in a single Integrate Polygon DID. Polygon Portal is an integrated UI platform that serves as a one-stop solution for asset management and token operations such as swapping and bridging. Recall that the server-source protocol begins with calling the \(\texttt{StartAtomicOp}(\ )\), corresponding to which a message is sent to the stream server, preparing to receive entries related to a specific atomic operation. This consensus model is characterized by predefined block producers who collectively participate in a voting process to appoint new producers, taking turns in block generation. The system requirements listed in this section are both for the Sentry node and the Validator node. txt. , transaction fees. The majority of snapshot providers have also outlined the steps that need to be followed to download and use their respective client snapshots. Jun 20, 2023 · Today, the engineering team at Polygon Labs published a proposal to upgrade Polygon PoS to a zkEVM validium, a first-of-its-kind decentralized L2 secured by zero-knowledge (ZK) proofs. The code and state of those accounts is visible to the network and anyone can execute transactions against them. Crust Network provides a decentralized storage network for Web3. These docs use the Material theme for MkDocs. Click here to read more about API3 QRNG. Jan 24, 2024 · As a central component of Polygon 2. Feb 8, 2024 · The Polygon zkEVM prover now supports a Type 1 mode, allowing any existing EVM chain to become a ZK Layer 2 (L2) and connect to the AggLayer. polygon. Once the wallet is connected, the next step is to bridge crypto assets from Ethereum to zkEVM. Heimdall is a Tendermint fork that monitors contracts in parallel with the Ethereum network. Polygon Miden supports public smart contracts like Ethereum. trustedSequencer: trusted sequencer address in wallets. Heimdall layer: A set of proof-of-stake Heimdall nodes running in parallel to the Ethereum mainnet, monitoring the set of staking contracts deployed on the Ethereum mainnet, and committing the Polygon PoS network checkpoints to the Ethereum mainnet. CHAIN_ID: The Polygon mainnet chain ID with the client prefix: heimdall-137. We also publish resources necessary for learning about and contributing to Polygon technologies. These logs in Bor mean that it cannot connect to Heimdall. The bridge will undergo modifications, with community approval, to change the native token of Polygon PoS to the new POL token. Get started with PoS Get started with building on Polygon PoS. Otherwise, the transaction is successful. However, given Ethereum’s current framework, publishing callback data to L1 incurs high gas fees, complicating the decision between opting for a full zk-rollup or Polygon Portal. , pragma once). This includes detailed sections on: \n \n; Polygon CDK \n Tips for faster sync¶. Introduction of a Staking Layer, which will eventually serve all L2 chains in the Polygon network. Bor is basically a Geth fork that generates blocks shuffled by Heimdall nodes. Due to this, there is a change in how the transaction object is formed when sending transactions on Polygon. It allows you to run Ethereum dApps in your browser without running a full Ethereum node. The Polygon CDK validium is in fact a zero-knowledge validium (zkValidium) because it utilises the Polygon zkEVM’s off-chain prover to produce zero-knowledge proofs, which are published as validity proofs. Proving and verification of transactions in Polygon zkEVM are all handled by a zero-knowledge prover component called the zkProver. Welcome to the Polygon Knowledge Layer! This documentation is built using the Material theme for MkDocs . njnky hfvfxq rqkgii qkei mzeh zpvz pxy iymaf mmlm ueppsaj