Showing posts with label SOLUTIONS. Show all posts
Showing posts with label SOLUTIONS. Show all posts

Sunday, March 13, 2022

How to Use Layer-2 Solutions to Save on Ethereum Fees: StarkWare

Source: AdobeStock / Jay

Over 7,000 decentralized applications (dapps) are presently operating on the Ethereum (ETH) network. However, the Ethereum network was not initially created for such a work. Ethereum dapps have suffered from the chain’s scalability problems, which have triggered deal speeds to sluggish down and gas costs to skyrocket.

Layer-2 scaling options are being released to address these concerns. Starkware is one of the most appealing ones.

What is Starkware?

StarkWare, established in January 2018 by Eli Ben-Sasson, Uri Kolodny, Michael Riabzev, and Alessandro Chiesa, is a designer of layer-2 scaling services that permits for high throughput and decreased deal charges on layer-1 blockchains.

Layer 1 (L1) is the base procedure (the Ethereum blockchain), while Layer 2 (L2) is any procedure constructed on top of Ethereum.

In addition to enhancing scalability, Starkware likewise brings increased personalprivacy to Ethereum utilizing its STARK innovation, which consistsof items like StarkEx and StarkNet.

StarkEx is a layer-2 scaling engine constructed with Cairo and SHARP that assists scale cryptoasset exchanges and non-fungible token (NFT) platforms through ZK-Rollups (Zero-Knowledge Rollups). It can dealwith area and derivative trading, payments, and NFTs minting. DiversiFi, dYdX, Sorare, and Immutable X have all released StarkEx on their platforms.

According to Starkware's site, StarkEx has USD 1.1bn in overall worth locked (TVL), settling USD 426bn worth of trades and assistingin about 123m deals. These deals were processed for verylittle costs.

StarkNet is a decentralized and trustless layer-2 STARK-based ZK-Rollup that permits designers to produce and run clever agreements on its platform. Decentralized applications can be released individually on StarkNet simply like on Ethereum for exceptionally low costs with increased speed and high throughput. StarkNet likewise intends to be interoperable with the Ethereum primary chain and other layer-2 services, makingitpossiblefor liquidity for the basic layer-2 crypto market.

Beyond scalability, the innovation behind Starkware's items is intended at maintaining security even when quantum computing endsupbeing mainstream. This addresses issues raised about the security of public-key cryptography used in numerous cryptoassets when dealtwith with an attack of the enormous power of quantum computing. Starkware utilizes light-weight cryptographic hash functions, which makes its items quick and quantum-secure.

How does Starkware work?

To comprehend how Starkware works, we requirement to initially checkout how the innovation behind its 2 significant items work, these being StarkEx and StarkNet.

StarkEx and StarkNet are based on ZK-STARKs (Zero-Knowledge Scalable Transparent Arguments of Knowledge) and ZK-Rollups.

ZK-STARKs allows users to share and show the credibility of a information calculation openly without exposing the contents of the information. It's like enabling 3rd celebrations to validate your banking details without exposing it to them. ZK-STARKs are an enhancement of the so-called zk-snarks, as the latter needs a reliedon 3rd celebration to set up the evidence system, thus, leaving a possibility for that reliedon 3rd celebration to compromise the personalprivacy of the system.

ZK-STARKs, on the other hand, eliminate the requirement for a reliedon 3rd celebration to set up the evidence system, makingitpossiblefor the sharing of information to be decentralized and trustless.

One of its advantages for blockchain systems consistsof enhancing scalability by taking wise agreements calculation and storage off-chain for the STARK system to create evidence with leaner cryptographic hash functions. These evidence are then sentout on-chain to the blockchain network for confirmation -- in turn, increasing deal speed and minimizing expenses for users.

ZK-Rollups are layer-2 scaling services madeuseof by StarkEx for increasing throughput and speed on the Ethereum network. ZK-Rollups package/rollup hundreds of deals off-chain into a single deal and create a SNARK (succinct non-interactive argument of understanding) evidence that is published to the primary chain for confirmation. This minimizes the number of deals being processed on the Ethereum primary chain and, in turn, decreases gas charges. 

However, the ZK-Rollup used on Starkware produces a STARK evidence rather of SNARK that is sentout to the primary chain for recognition.

How does Starkware vary from other Ethereum layer 2 scaling services?

Starkware's distinction compared to other Ethereum layer-2 services is seen in the mix of ZK-Rollups and its created ZK-STARKs.

The 3 layer-2 scaling services madeuseof by most Web 3 platforms are Plasma, Optimistic Rollups, and ZK-Rollups. Plasma and Optimistic Rollups both scale the Ethereum network utilizing scams evidence. However, scams evidence generally take a extremely long time to validate withdrawal demands from users. Their calculation is complex and comes with huge information sizes.

ZK-Rollups -- zk-SNARKs in this case -- address this obstacle, through credibility evidence that permit immediate withdrawals and decrease information size. Although it comes with a disadvantage.

Before now, common layer-2 ZK-Rollups are notable to carryout clever agreements, which assistin decentralized applications. However, the introduction of Starkware's STARK is start to modification the outlook.

ZK-SNARKs decrease information size and usage elliptic curve cryptography for personalprivacy, Starkware services usage cryptographic hash functions, which makes it quantum-resistant and trustless. But its STARK-based evidence normally have bigger evidence sizes, making them more costly to validate.

Who is currently utilizing Starkware?

Numerous significant dapps are currently utilizing StarkWare’s scaling services to supply a muchbetter item for their users.

DiversiFi: a decentralized exchange that permits you to invest, trade, and swap tokens on Ethereum without paying the pricey gas charges needed by the network. DiversiFi makes usage of the ingenious StarkEx scaling service to supply high-speed, low-latency, and gas-free self-custodial trading.

dYdX: one of the most popular decentralized exchanges (DEXes) in the crypto market, offering self-governing derivatives trading. dYdX provides layer-2 continuous clever agreements through the StarkEx scalability engine, makingitpossiblefor traders to delightin minimized gas and trading costs, more trading sets, decreased minimum trade size, immediate trade settlements, greater utilize, and lower liquidation charges.

Sorare: a dream football NFT videogaming platform on the Ethereum network that permits users to purchase, offer, trade, and handle a virtual football group with digital gamers. StarkEx enables immediate uses, benefits, declares, and transfers on Sorare while likewise decreasing gas charges.

To findout more about how to decrease Ethereum gas costs utilizing an L2 service, check out the first piece of our layer-2 scaling service covering Arbitrum.

____


Read More. https://bitcofun.com/how-to-use-layer-2-solutions-to-save-on-ethereum-fees-starkware/?feed_id=10731&_unique_id=622ed16439c0b

Saturday, February 26, 2022

How to Use Layer-2 Solutions to Save on Ethereum Fees: Optimism

Source: Adobe/woodpencil

Ethereum (ETH)’s scaling challenges have led to exorbitant gas fees that are increasingly excluding people from using the network to access decentralized finance (DeFi) applications or to mint non-fungible tokens (NFTs).

Fortunately, there are layer-2 (L2) scaling solutions that are addressing Ethereum’s scalability woes by taking weight off the main chain. Optimism, for example, is a layer-2 scaling solution that is helping Ethereum run computations off-chain and only publish transaction data on-chain in a bid to drastically reduce gas fees.

Read on to learn more about Optimism and how to use the layer-2 protocol to save on Ethereum transaction fees.

What is Optimism?

Optimism is a layer-2 scaling protocol for the Ethereum network. The scaling solution works by moving transactions and computations from layer-1 (L1) onto a second layer, thus reducing transaction fees and increasing network throughput.

Layer 1 (L1) is the base protocol (the Ethereum blockchain), while Layer 2 (L2) is any protocol built on top of Ethereum.

Since the transactional data is broadcast onto the Ethereum mainnet, the structural integrity of the network remains intact. However, Optimism allows you to transact in milliseconds and save up to 10x on gas fees.

From a developer’s perspective, you get to reuse programming languages on Ethereum with little to no changes in the code.

Optimism uses Optimistic Rollups, which rely on aggregators to compile batches of transactions off-chain and transmit them to a smart contract on-chain via fraud proofs. Conversely, fraud proofs prevent invalid state transitions from happening.

To ensure deterministic smart contract execution between the mainnet and L2 layer, Optimism uses OVM (Optimistic Virtual Machine). This is an Ethereum Virtual Machine (EVM)-compatible execution environment designed for use in layer-2 solutions.

The OVM feature acts as a repository for OVM contracts and ensures any functionality between L1 and L2 remains consistent. In other words, any action executed on Optimism is eventually mirrored in L1.

Remember, Optimism is EVM-compatible and, therefore, allows for seamless and near-instant transfers from L1 to L2. However, transactions going from L2 to L1 will take roughly a week to allow for potential fraud proofs.

With the OVM 2.0 upgrade, which occurred in November, EVM equivalence was introduced to Optimism, bringing it to almost 1:1 parity with Ethereum. EVM compatibility required Optimism to continuously modify, even reimplement, lower-level code that the layer-1 supporting infrastructure relies upon.

On the other hand, EVM equivalence bridges the gap between Ethereum’s L1 infrastructure network effects and the L2 execution environment. This upgrade makes Optimism in complete compliance with the base Ethereum protocol.

How to use Optimism to save on Ethereum gas fees

The easiest way to start using Optimism is through the popular Ethereum wallet MetaMask. Here’s how!

1. Open your MetaMask wallet browser extension.

2. Select the dropdown ‘Ethereum Mainnet’ at the top of the wallet.

3. Should Optimism not appear in your list, choose ‘Add Network.’

4. Add the following details:

  • Network name: Optimistic Ethereum
  • RPC URL: https://mainnet.optimism.io
  • Chain ID: 10
  • Currency: ETH
  • Explorer: https://optimistic.etherscan.io

5. Click ‘Save,’ and you will be connected to Optimistic Ethereum.

To start holding and using Optimistic Ethereum tokens, you will need to bridge your ERC-20 assets to Optimistic Ethereum using the Optimism Gateway.

To access the Optimism Gateway, access ​​gateway.optimism.io, connect your MetaMask wallet and swap your tokens from the mainnet onto layer-2 in the same way you would swap tokens on a decentralized exchange (DEX) like Uniswap (UNI).

With the ETH bridged into Optimism, you can interact with protocols in the same way as on the main chains, inheriting Ethereum's structural integrity and features.

Optimism-supported applications

Dozen of dapps (decentralized applications) have already adopted Optimism to provide a more affordable user experience to their users.

Here is a list of popular Optimism-supported applications:

Decentralized apps 

  • Uniswap
  • Synthetix
  • 1inch
  • Lyra
  • Perpetual Protocol
  • Kwenta
  • Gelato

Wallets

  • Coinbase Wallet
  • MetaMask
  • Rainbow
  • Encrypted Ink
  • Trust Wallet
  • imToken
  • TokenPocket
  • Rabby

NFTs

  • Quixotic
  • OptiPunks
  • Circular Art
  • Dope Wars
  • Optimistic bunnies
  • Optimistic Loogies
  • tofuNFT.

Gas fees on Optimism

According to Optimism’s team, baseline user transactions are between 10-50x cheaper and are expected to improve over time. However, the baseline costs are just a benchmark. There are capacity constraints on Optimism that must be controlled by a variable cost.

The control is through the Ethereum Improvement Proposal (EIP) 1559 pricing mechanism where should demand rise, the protocol will increase fees until daily transactions fall back within the limit. Note that gas is affected by several factors, such as gas price and gas consumed by the transaction.

To learn more about how to reduce Ethereum gas fees using an L2 solution, check out the first piece of our layer-2 scaling solution covering Arbitrum.

____


Read More https://bitcofun.com/how-to-use-layer-2-solutions-to-save-on-ethereum-fees-optimism/?feed_id=8391&_unique_id=621ab605463ff

Leading 7 Decentralized Derivatives Trading Platforms

Decentralized derivatives are a brand-new method for traders to trade crypto possessions without straight holding them. Read on to disc...