English below
Olá pessoal! Esse artigo tem como objetivo educar sobre as blockchains. Até o final dele você já vai saber o que é, como funcionam e quais são algumas das principais blockchains.
Para facilitar seu entendimento do artigo usaremos o glossário da Leo Finance onde você pode clicar em algumas das palavras usadas no artigo e ir para um link explicando o que ela significa de forma mais aprofundada. Outros termos explicaremos aqui mesmo de forma mais simplificada.
Espero que esse seja o primeiro de uma serie educacional sobre web3 onde você possa aprender progressivamente e auxiliar na sua trajetória. Então vamos ao que interessa.
O que é uma Blockchain?
A Blockchain é uma tecnologia que permite que informações sejam armazenadas de forma segura e transparente. Já que depois que a informação vai para o bloco ela não pode ser alterada. Ela é amplamente conhecida por ser a tecnologia por trás das criptomoedas tendo sido usada primeiramente no Bitcoin.
A tecnologia funciona com as informações sendo gravadas em blocos de dados interligados e quando um bloco é fechado se inicia outro que é conectado ao anterior e assim por diante. Sendo assim toda a cadeia pode ser monitorada desde o ultimo bloco de dados escrito até o primeiro bloco que chamamos de bloco gênesis.
Existem diferentes tipos de blockchains e cada uma pode utilizar uma forma de validar e garantir a segurança dos blocos diferentes. Uma das formas mais comuns de validação desses blocos, são os mecanismos de consenso que iremos ver a seguir.
O que são mecanismos de consenso e como eles funcionam?
Os mecanismos de consenso são o conjunto de ações, protocolos e contratos inteligentes que validam que as informações num bloco são verdadeiras e seguras. Para que exista mecanismos de consenso é necessário que varias pessoas ao redor do mundo rodem servidores com as informações da blockchain que chamamos de nó. Esses nós que determinarão o consenso e irão validar os blocos e garantir a segurança da rede.
A forma de consenso pode variar e vamos falar aqui sobre prova de trabalho(PoW), Prova de participação (PoS), Prova Delegada de Participação (DPoS).
Prova de trabalho (PoW)
O mecanismo de prova de trabalho consiste em uma disputa entre os nós para ver qual computador consegue resolver um quebra-cabeça matemático de forma mais ágil e completar o bloco primeiro, quando o computador encontra a solução ele assina o bloco e compartilha o bloco com o restante da rede, e geralmente ganha a moeda da rede como recompensa pelo trabalho de solucionar o problema. Esse processo é o tão falado processo de mineração das criptomoedas.
E o processo utilizado pelo Bitcoin e inicialmente era utilizado pela rede Ethereum e foi modificado em 2022.
A segurança da blockchain validada por prova de trabalho está no fato de que para fraudar os blocos seria necessário mais de 50% da capacidade dos computadores minerando a rede e isso seria inviável e mesmo que fosse feito teria custos absurdamente exorbitantes e só traria prejuízos.
A grande desvantagem desse mecanismo de consenso é que exige um alto custo para mineração devido a necessidade do uso de hardware especializado de alta performance e alto consumo de energia envolvido no processo. O que acaba refletindo em altas taxas de gás.
Prova de participação (PoS)
O mecanismo de prova de participação vem como uma solução para redução dos valores de taxas e para melhorar a escalabilidade da blockchain. Além de aumentar ainda mais a segurança, já que para fraudar os blocos seria exigido um investimento gigantesco na moeda da rede.
Existem diferentes blockchains utilizando o PoS com pequenas variações no mecanismo, mas basicamente para rodar um nó validador é necessário de uma grande quantidade do token de governança da rede em stake.
O "peso" da validação depende da quantidade de tokens em stake dos validadores e o consenso é determinado garantindo a segurança da rede.
As vantagens dessa forma de validação com prova de participação são:
- Maior facilidade de se ter um nó de validação, já que exige menos dos hardwares tendo um custo de entrada mais barato.
- Maior descentralização da rede considerando que são necessários vários validadores para assinar um bloco e precisa de consenso de mais de 50% dos validadores para o bloco ser fechado.
- Devido ao menor custo para validadores, é necessário uma menor emissão de moeda para pagar os validadores.
- A segurança da blockchain é ainda maior que na PoW já que existem mais medidas de seguranças que podem ser tomadas.
Esse é o mecanismo de consenso atualmente usado pela Ethereum blockchain.
Prova Delegada de Participação (DPoS)
O mecanismo de consenso por DPoS é bem parecido com o PoS com a diferença que mesmo os usuários que não rodam nós validadores podem delegar seu poder do token de governança para aqueles que rodam os nós dando maior autoridade para validadores que recebem mais votos. Nesse modelo a quantidade de tokens em stake na carteira do usuário da blockchain determina o poder do voto dele. Ou seja, quanto mais tokens em stake, mais autoridade ele delega para os validadores.
Esse mecanismo de consenso torna a blockchain ainda mais descentralizada já que toda a comunidade tem um poder de voto para decidir quem serão os validadores responsáveis pelas assinaturas de blocos, tendo assim um maior poder de governança.
O que é Ethereum Virtual Machine(EVM)
A EVM ou Ethereum Virtual Machine, é o que sustenta o protocolo da blockchain Ethereum, é como se fosse o cérebro da rede mantendo ela funcionando e atualizada.
Para isso acontecer de forma segura ela roda em milhares de computadores através dos validadores que atualmente funcionam por PoS.
E a EVM que permite a criação de contratos inteligentes mantendo a confiabilidade e transparência da blockchain.
É graças a EVM que podem se criar aplicativos, bancos de dados, jogos online, votações eletrônicas e muitas outras coisas. Os contratos inteligentes executados pela EVM são o que tornam possível o mint de NFTs e moedas digitais.
Atualmente algumas outras blockchains utilizam virtual machines semelhantes e compatíveis com a EVM original da Ethereum como é o caso da rede Polygon que veremos mais a frente. Isso possibilita e facilita a criação de pontes para transferência de informações entre as diferentes blockchains que utilizam EVM compatíveis.
Bitcoin
O Bitcoin foi a primeira criptomoeda e até hoje é a moeda referencia para o mercado. Ele se baseia em uma tecnologia blockchain sendo minerado atraves da Prova de Trabalho(PoW).
O Bitcoin foi desenvolvido, e teve seu whitepaper lançado em 2008 por Satoshi Nakamoto e até hoje ninguém sabe quem é a pessoa ou grupo de pessoas por trás desse nome.
O Bitcoin foi criado para ser uma moeda digital descentralizada que facilitasse a transferência de valores diretamente de pessoa pra pessoa. A ideia original era não ter necessidade de um intermediário como bancos para fazer transações digitais.
O Bitcoin originalmente não foi desenvolvido para receber NFTs embora existam projetos explorando essa possibilidade através de subterfúgios.
Ethereum
A Ethereum Blockchain inicialmente funcionava através de PoW, mas em 2022 seu protocolo foi modificado e atualizado para trabalhar em PoS, tornando a rede mais barata em termos de taxa de gás e mais segura.
A EVM da rede Ethereum é o que possibilita a criação de inúmeros e diversos contratos inteligentes, possibilitando a criação de NFTs, novos tokens e diversas outras informações. A Ethereum Blockchain é também base de varias blockchains que rodam na segunda camada da rede.
A segunda camada da Ethereum é uma espécie de extensão da rede Ethereum e muitas vezes estão ligadas a redes de testes publicas da Ethereum blockchain.
Polygon
A Polygon é um blockchain independente que foi construída na segunda camada da rede Ethereum como uma solução para escalabilidade e diminuição de custos de taxa.
Para conseguir isso a Polygon Blockchain se utiliza de uma serie de sidechains e plasma chains que nada mais são do que blockchains independentes que rodam em paralelo com a Ethereum.
Dessa forma ela consegue taxas de transações mais baixas e maior capacidade de processamento. Além disso oferece suporte a EVM tornando a Polygon compatível com a Ethereum blockchain, facilitando uma ponte entre as 2 redes.
Hive
Chegamos a nossa tão amada Hive! A Hive é uma blockchain que funciona através de DPoS. Todo usuário que tem Hive Power(HP) pode votar em até 30 testemunhas, que rodam nós de validação. A quantidade de HP que representa o voto de cada testemunha determina a prioridade na assinatura dos blocos e quanto mais blocos o validador assinar mais ele recebe em Hive por isso.
A Hive não possui taxa de gás por transações tornando ela ainda mais acessível. Ela usa um sistema de recursos de credito(RC) onde cada HP gera uma quantidade de RC e esse RC é utilizado em cada ação feita na blockchain, seja ela uma transação financeira ou uma simples assinatura. O RC regenera 20% ao dia, fazendo com que não seja necessário ter custo para utilizar a rede, apenas ter HP o que incentiva ainda mais a manutenção do token de governança e descentralização da rede tornando ela ainda mais segura.
A Hive tem suas próprias redes de segunda camada facilitando a criação de tokens e NFts que interagem de forma simples com a blockchain principal.
Resoluções finais, fontes e disclaimers
Esse artigo tenta explicar de forma simplificada o que é uma blockchain e mostrar algumas delas e como elas funcionam. Existem inúmeras outras blockchains importantes como a gigante Binance e algumas menores como Cardano, Tesos entre outras, mas decidi trazer essas que são as que tenho um pouco mais conhecimento.
A imagem de capa foi feita por mim no Canva com material fornecido pela Leo Finance e HiveBR.
A fonte de pesquisa foi https://ethereum.org/pt-br/developers/docs
Todas as informações aqui foram retiradas da fonte citada e do conhecimento adquirido por mim ao longo do tempo em conversas, spaces e artigos lidos nos últimos anos, caso tenha alguma informação desatualizada ou de alguma forma imprecisa peço que comuniquem nos comentários para que possa ser editado.
Agradeço a todos que leram até aqui e espero ter ajudado de alguma forma com esse conhecimento. Se você quer ver mais dos meus conteúdos me segue pro aqui e se puder deixa seu upvote para valorizar conteúdo de qualidade. Até mais.
Hey guys! This article aims to educate about blockchains. By the end of it you will already know what it is, how they work and what are some of the main blockchains.
To facilitate your understanding of the article we will use the glossary from Leo Finance where you can click on some of the words used in the article and go for a link explaining what it means in more depth. Other terms we will explain right here in a more simplified way.
I hope this is the first of an educational series about web3 where you can progressively learn and help in your path. So let's get down to business.
What is a Blockchain?
Blockchain is a technology that allows information to be stored securely and transparently. Once the information goes to the block it cannot be changed. It is widely known to be the technology behind cryptocurrency having first been used in Bitcoin.
The technology works with information being recorded in blocks of interconnected data and when a block is closed, another one is started that is connected to the previous one. and so on. Therefore, the entire chain can be monitored from the last block of data written to the first block that we call the genesis block.
There are different types of blockchains and each one can use a way to validate and guarantee the security of different blocks. One of the most common forms of validation of these blocks, are the consensus mechanisms which we will see next.
What are consensus mechanisms and how do they work?
The consensus mechanisms are the set of actions, protocols and smart contracts that validate that the information in a block is true and secure. For consensus mechanisms to exist, it is necessary for several people around the world to run servers with blockchain information that we call node. These nodes will determine the consensus and will validate the blocks and ensure network security.
The form of consensus can vary and we are going to talk here about proof of work(PoW) , Proof of Stake (PoS), Delegated Proof of Stake (DPoS).
Proof of Work (PoW)
The proof-of-work mechanism consists of a dispute between the nodes to see which computer can solve a mathematical puzzle more quickly and complete the block first, when the computer finds the solution it signs the block and shares the block with the other. rest of the network, and usually earns network currency as a reward for the work of solving the problem. This process is the so-called mining process of cryptocurrencies.
And the process used by Bitcoin and was initially used by the Ethereum network and was modified in 2022.
The security of the blockchain validated by proof of work lies in the fact that to defraud the blocks it would take more than 50% of the capacity of the computers mining the network and that would be unfeasible and even if it were done it would have absurdly exorbitant costs and would only bring losses.
The big disadvantage of this consensus mechanism is that it requires a high cost for mining due to the need to use specialized hardware with high performance and high energy consumption involved in the process. Which ends up reflecting in high gas rates.
Proof of Stake (PoS)
The proof-of-stake mechanism comes as a solution to lower the fee amounts and to improve the scalability of the blockchain. In addition to further increasing security, since to defraud the blocks a huge investment in the network's currency would be required.
There are different blockchains using PoS with small variations in the mechanism, but basically to run a validator node you need a large amount of the network governance token in stake.
The "weight" of the validation depends on the amount of tokens staked by the validators and the consensus is determined ensuring the security of the network.
The advantages of this form of validation with proof of participation are:
- Easier to have a validation node, since it requires less hardware and has a cheaper entry cost.
- Greater decentralization of the network considering that several validators are needed to sign a block and a consensus of more than 50% of the validators is needed for the block to be closed.
- Due to the lower cost for validators, less coin issuance is required to pay validators.
- Blockchain security is even higher than PoW as there are more security measures that can be taken.
This is the consensus mechanism currently used by the Ethereum blockchain.
Delegated Proof of Stake (DPoS)
The DPoS consensus mechanism is very similar to PoS with the difference that even users who do not run validator nodes can delegate their governance token power to those who run the nodes giving greater authority to validators who receive more votes. In this model, the amount of staked tokens in the blockchain user's wallet determines his voting power. That is, the more tokens in stake, the more authority it delegates to the validators.
This consensus mechanism makes the blockchain even more decentralized as the entire community has voting power to decide who will be the validators responsible for block signatures, thus having greater governance power.
What is Ethereum Virtual Machine(EVM)
The EVM or Ethereum Virtual Machine, is what sustains the Ethereum blockchain protocol, it's like it was the brain of the network keeping it running and up to date.
For this to happen safely, it runs on thousands of computers through the validators that currently work via PoS.
And the EVM that allows the creation of smart contracts while maintaining the reliability and transparency of the blockchain.
It is thanks to EVM that applications, databases, online games, electronic voting and many other things can be created. The smart contracts run by the EVM are what make minting of NFTs and digital currencies possible.
Currently, some other blockchains use virtual machines similar and compatible with the original Ethereum EVM, such as the Polygon network that we will see later. This enables and facilitates the creation of bridges for transferring information between different blockchains that use compatible EVMs.
Bitcoin
Bitcoin was the first cryptocurrency and to this day it is the reference currency for the market. It relies on a blockchain technology being mined through Proof of Work (PoW).
Bitcoin was developed, and had its whitepaper released in 2008 by Satoshi Nakamoto and to this day no one knows who the person or group of people behind that name.
Bitcoin was created to be a decentralized digital currency that would facilitate the transfer of values directly from person to person. The original idea was to not need an intermediary like banks to make digital transactions.
Bitcoin was not originally designed to receive NFTs, although there are projects exploring this possibility through subterfuge.
Ethereum
Ethereum Blockchain initially worked through PoW, but in 2022 its protocol was modified and updated to work over PoS, making the network cheaper in terms of gas fee and more secure.
The Ethereum network EVM is what enables the creation of numerous and diverse smart contracts, enabling the creation of NFTs, new tokens and various other information. The Ethereum Blockchain is also the basis of several blockchains that run on the second layer of the network.
The second layer of Ethereum is a kind of extension of the Ethereum network and is often linked to public testnets of the Ethereum blockchain.
Polygon
Polygon is an independent blockchain that was built on the second layer of the Ethereum network as a solution for scalability and lowering costs of rate.
To achieve this, Polygon Blockchain uses a series of sidechains and plasma chains that are nothing more than independent blockchains that run on parallel with Ethereum.
In this way, it achieves lower transaction fees and greater processing power. Furthermore, it supports EVM making Polygon compatible with the Ethereum blockchain, facilitating a bridge between the 2 networks.
Hive
We arrived at our much loved Hive! Hive is a blockchain that works through DPoS. Every user who has Hive Power(HP) can vote for up to 30 witnesses, which run validation nodes. The amount of HP that represents the vote of each witness determines the priority in signing the blocks and the more blocks the validator signs, the more he receives in Hive for it.
Hive has no gas fee per transaction making it even more affordable. It uses a credit resources(RC) system where each HP generates an amount of RC and that RC is used in every action taken on the blockchain, be it a financial transaction or a simple signature. The RC regenerates 20% a day, making it not necessary to have a cost to use the network, just having HP, which further encourages the maintenance of the governance token and decentralization of the network, making it even more secure.
Hive has its own second layer networks facilitating the creation of tokens and NFts that seamlessly interact with the main blockchain.
Final resolutions, sources and disclaimers
This article tries to explain in a simplified way what a blockchain is and show some of them and how they work. There are countless other important blockchains like the giant Binance and some smaller ones like Cardano, Tesos among others, but I decided to bring these that I have a little more knowledge of.
The cover image was made by me in Canva with material provided by Leo Finance and HiveBR.
The search source was https://ethereum.org/pt-br/developers/docs
All information here was taken from the cited source and from the knowledge acquired by me over time in conversations, spaces and articles read in recent years, if you have any outdated or inaccurate information, please let me know in the comments so that it can be edited .
I thank everyone who has read this far and I hope I have helped in some way with this knowledge. If you want to see more of my content, follow me here and if you can, leave your upvote to value quality content. Until later.