block chain notes
block chain notes
🔹 Why is it needed?
Enterprises cannot use fully open blockchains due to privacy, legal, and control reasons. They
need:
Controlled access – not open to the public
Data confidentiality – important info (like patient records or banking details) must remain
private
Faster decision-making – fewer nodes = quicker consensus
Compliance – easier to meet regulations and audit requirements
Trusted environment – all participants are known and verified
🔹 Limitations:
Less decentralized – requires trust in the managing authority
Transparency is limited – outsiders cannot verify anything
Single point of control – if the authority is corrupt, it can misuse power
More complex setup – needs identity management, role settings, etc.
🔹 Advantages:
✅ Faster transactions – fewer nodes, no mining
✅ High security for private data
✅ Custom roles and access – everyone doesn't need full access
✅ Legal and regulatory support – better fit for businesses needing audits and records
✅ Industry-specific customization – great for banks, hospitals, supply chains, etc.
🔷 Design Issues in Permissioned Blockchain
🔹 Intro:
Permissioned blockchains are built for private use — only selected members can access or
control the system.
But designing such a system isn't as simple as just restricting access. There are several
challenges that must be handled carefully for the blockchain to work efficiently, securely,
and fairly.
Identity Management
In a permissioned blockchain, every participant must be known and verified.
A secure identity system must be built to manage who joins and what role they have.
Problem: If identity is mismanaged, unauthorized people may get access or valid users may
be blocked.
Centralization Risk
Since one or few authorities control permissions, it creates a central point of trust.
If that authority is dishonest or hacked, the whole system is at risk.
This goes against decentralization, which is a key blockchain idea.
🔷 Distributed Consensus
🔹 Intro:
In blockchain or any distributed system, there’s no single boss or central computer to make
decisions.
So, how do all the computers (called nodes) agree on what’s true — like which transaction is
valid or which block should be added?
That’s where Distributed Consensus comes in — it helps all nodes come to the same decision,
even if some fail or lie.
🔹 Why is it Important?
Blockchain has no central authority.
So, nodes must agree among themselves about which transaction/block is correct.
Prevents cheating, double spending, or forks.
🔹 Example to Understand:
Imagine 10 friends trying to agree on what movie to watch.
If 6 out of 10 vote for the same one, they go with it.
Even if a few lie or don’t respond — as long as most agree, a decision is made.
That’s consensus.
🔷 RAFT Consensus (Simple + Technical)
🔹 Intro:
RAFT is a method used in private blockchains (like those in banks or companies) to help all the
computers (called nodes) agree on the same data, like transactions inside a block.
It is used when users are known and trusted, and we need fast, secure, and clear agreement
without using mining.
🔹 What is RAFT?
RAFT is a consensus algorithm. That means it helps all the nodes in a blockchain network agree
on which transaction blocks are correct and in what order they should be saved.
It is not used in public blockchains like Bitcoin, but in permissioned (private) blockchains where
the users are already trusted.
🔹 Limitations:
❌ Not good for public blockchains (no mining, no anonymous users)
❌ Needs a trusted system
❌ If the leader fails, the system pauses briefly
🧠 Simple Example:
Imagine a team of friends working on a shared notebook (blockchain).
One friend (leader) writes what happened today (transactions).
Before finalizing the page (block), they ask everyone if it’s correct.
If most agree, the page is saved, and everyone copies it.
If the leader leaves, they vote and pick a new leader.
🔹 What is BFT?
Byzantine Fault Tolerance is the ability of a system to keep working properly even when some
of its members give wrong or misleading information.
It means the system can still make the right decision even if some people inside are lying, not
responding, or making mistakes.
🔹 Advantages of BFT:
✅ Prevents wrong decisions even with bad actors
✅ Keeps the system running smoothly
✅ No need for a central authority to decide
✅ Useful in private networks where all members are known
🔹 Limitations of BFT:
❌ Not suitable for very large public systems (too much communication needed)
❌ Can be slower with many members
❌ Requires members to know and trust the system setup
🔹 Why is it needed?
In distributed systems:
Some computers (nodes) may fail or act maliciously (called Byzantine faults).
But we still want all the honest ones to agree on the same decision.
This algorithm tells us:
✅ How many nodes we need
✅ How to communicate
✅ And how to detect faulty behavior
🔹 What it does:
It helps a group of n nodes reach an agreement even if up to f nodes are faulty —
but only if n ≥ 3f + 1
👉 For example:
If you want to tolerate 1 faulty node, you need at least 4 total nodes.
🔹 Example:
Let’s say:
Commander says “Attack”
One traitor lieutenant lies and says, “Commander said Retreat”
Others cross-check all messages
Majority still says “Attack”, so the final decision is safe ✅
🔹 Limitations:
Message-heavy: Requires a lot of communication between nodes.
Doesn’t scale well to very large systems.
Works best when all participants are known (like in permissioned blockchain).