Fundamentos de Blockchain
Banco de dados distribuído mantido por uma rede de computadores e protegido por criptografia.
Lançada na prática em 2009 com o Bitcoin por Satoshi Nakamoto para evitar o 'gasto duplo' sem depender de bancos. Existem blockchains públicas (Permissionless), abertas a todos, e privadas (Permissioned), restritas a entidades autorizadas.
graph LR
Center["Fundamentos de Blockchain"]:::main
Pre_cryptography["cryptography"]:::pre --> Center
click Pre_cryptography "/terms/cryptography"
Pre_distributed_systems["distributed-systems"]:::pre --> Center
click Pre_distributed_systems "/terms/distributed-systems"
Rel_layer_1["layer-1"]:::related -.-> Center
click Rel_layer_1 "/terms/layer-1"
Rel_distributed_ledger_technology_dlt["distributed-ledger-technology-dlt"]:::related -.-> Center
click Rel_distributed_ledger_technology_dlt "/terms/distributed-ledger-technology-dlt"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 Explique como se eu tivesse 5 anos
Imagine um caderno compartilhado que milhares de pessoas possuem. Quando alguém quer escrever uma página nova (um bloco), todos checam se está correto. Se concordarem, a página é colada para sempre. Ninguém pode apagar nada, e qualquer trapaça é descoberta imediatamente.
🤓 Expert Deep Dive
A imutabilidade é garantida por funções de hash (como SHA-256) e Árvores de Merkle. As redes resolvem o Problema dos Generais Bizantinos através de mecanismos de consenso como Proof-of-Work ou Proof-of-Stake. As arquiteturas modernas são modulares, separando a execução da disponibilidade de dados.
❓ Perguntas frequentes
Are blockchain and cryptocurrency the same thing?
No. Cryptocurrency (like Bitcoin) is just one application built on top of a blockchain. Blockchain is the underlying database technology that makes cryptocurrencies possible.
Why can't blockchain data be changed or hacked easily?
Because the blocks are linked mathematically using hashes. If a hacker tries to change data in an old block, its hash changes, which breaks the connection to the next block. They would have to recalculate the entire chain faster than the rest of the network combined.
What is a 'node' in a blockchain?
A node is simply a computer running the blockchain's software. It keeps a copy of the ledger, validates new transactions, and communicates with other nodes to reach an agreement (consensus) on the true state of the network.