NaslovnicaKripto za početnikeWhat is layer 1 and layer 2 in blockchain

What is layer 1 and layer 2 in blockchain

What is layer 1 and layer 2 in blockchain

The phrase "Layer-1" refers to the underlying core blockchain architecture. Layer-2, on the other hand, is a network that sits on top of the underlying blockchain. Consider the Lightning Network and Bitcoin. Bitcoin is a layer-1 network, whereas the lightning network is a layer-2 network. Let’s check at the solutions for each layer that companies are working on.

Good examples for layer-2 solutions are:

-        Nested blockchains

-        State channels

OmiseGO, an Ethereum-based dApp, is currently working on a layered blockchains solution dubbed Plasma. Plasma's architectural idea is simple: the main, base blockchain will provide the ground rules for the whole system. It will not directly participate in any activities until it is required to settle any issues. On top of the main chain, there will be numerous tiers of blockchains. These levels will be linked together to form a parent-child chain link. The parent chain distributes tasks to its junior chains. The child chains then carry out these acts and report the results to the parent chain. It significantly reduces the load in the root chains, and it increases the scalability.

The advantages of using layer-2 does not waste time with miner verification and it does not mess with the underlying blockchain protocol.

Examples for layer-1 solutions are:

-        Sharding

-        Consensus protocol changes

Sharding is a common layer-1 scalability solution that is being worked on by a number of projects. Rather than requiring a network to operate sequentially on each and every transaction, sharding divides these transaction sets into little data sets known as "shards." The network may then handle these shards in parallel.

Many projects, such as Ethereum, are transitioning from slower, more inefficient consensus algorithms such as Proof-of-Work (PoW) to quicker, less wasteful protocols such as Proof-of-Stake (PoS). Bitcoin and Ethereum both employ PoW, in which miners use their processing capacity to solve cryptographically hard equations. While PoW is very secure, it can be extremely sluggish. On a good day, Bitcoin can only handle 7 transactions per second, whereas Ethereum can only handle 15–20. This is why Ethereum is attempting to transition from PoW to PoS via the Casper protocol.

The biggest advantage of layer-1 is that nothing needs to be added on top of existing architecture.

Despite both being good and useful, both of them have also problems that need to be solved. The biggest one is with adding these solutions to existing protocols. It does not make sense to put unnecessary codes to experiment with, when millions of dollars are being transacted on the blockchain daily.

Provjerite ostale razine

Koristimo kolačiće za pohranu, pristup i obradu osobnih podataka kako bismo vam pružili najbolje online iskustvo. Klikom na Prihvati kolačiće pristajete na pohranu svih kolačića i osiguravate najbolje moguće djelovanje internetske stranice. Možete promijeniti postavke kolačića ili povući privolu klikom na Postavke kolačića. Da biste saznali više o kolačićima i svrhama, pročitajte Politika kolačića and Politika privatnosti

Postavke kolačića


Kontrola kolačića


Što su kolačići?

Kolačići su male tekstualne datoteke koje omogućuju nama i našoj usluzi jedinstvenu identifikaciju vašeg preglednika ili uređaja. Kolačići obično rade tako da vašem uređaju dodijele jedinstveni broj i na vašem ih pregledniku pohranjuju internetske stranice koje posjećujete, kao i treći pružatelji usluga za te internetske stranice. Pod pojmom kolačići treba uzeti u obzir druge tehnologije kao što su SDK-ovi, pikseli i lokalno pohranjivanje.


Ako je omogućeno

Možemo vas prepoznati kao klijenta što omogućava prilagođene usluge, sadržaj i oglašavanje, učinkovitost usluga i prepoznavanje uređaja za veću sigurnost
Možemo poboljšati vaše iskustvo na temelju vaše prethodne sesije
Možemo pratiti vaše preferencije i personalizirati usluge
Možemo poboljšati performanse internetske stranice.


Ako je onemogućeno

Nećemo moći zapamtiti vaše prethodne sesije, što će nam onemogućiti da internetsku stranicu prilagodimo vašim željama
Neke značajke možda neće biti dostupne i korisničko iskustvo bez kolačića će biti lošije


Strogo nužno znači da se osnovne funkcije internetske stranice neće aktivirati bez njihove upotrebe. Budući da su ovi kolačići ključni za pravilan rad i sigurnost usluga internetskog mjesta, ne možete odustati od korištenja ovih tehnologija. I dalje ih možete blokirati u svom pregledniku, ali to može uzrokovati greške u djelovanju osnovnih funkcija internetske stranice.

  • Postavljanje zaštite privatnosti
  • Sigurna prijava
  • Sigurna veza tijekom korištenja usluga
  • Ispunjavanje obrazaca

Analitika i tehnologije praćenja performansi za analizu načina na koji koristite internetsku stranicu.

  • Najgledanije stranice
  • Interakcija sa sadržajem
  • Analiza grešaka
  • Ispitivanje i mjerenje različitih učinkovitosti dizajna

Internetska stranica može koristiti tehnologije trećih strana za oglašavanje i marketing.

  • Promoviranje naših usluga na drugim platformama i internetskim stranicama
  • Mjerenje učinkovitosti naših kampanja