> Markdown version of [/videos/209-p2p-networks-in-blockchain?t=1502](https://www.wearedevelopers.com/videos/209-p2p-networks-in-blockchain?t=1502). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # P2P networks in Blockchain How do unstructured P2P networks survive constant node churn and eclipse attacks? Discover how the Lisk SDK secures custom JavaScript blockchains using advanced peer management. - **Speakers:** Ishan Tiwari - **Event:** World Congress 2021 - **Published:** June 29, 2021 - **Duration:** 42:35 - **URL:** https://www.wearedevelopers.com/videos/209-p2p-networks-in-blockchain ## Summary The transition from centralized client-server models to decentralized P2P networks forms the infrastructural backbone of modern blockchain technology. While structured networks rely on distributed hash tables (DHT) for precise resource mapping, they often struggle with high node churn. Conversely, unstructured P2P networks leverage partial mesh topologies and gossip protocols, functioning much like an epidemic to achieve rapid, robust data dissemination even as nodes continuously join or drop out. This foundational architecture is essential for securely computing and broadcasting blocks and transactions across global nodes. To tackle the scaling and security challenges of unstructured environments, the Lisk P2P library introduces sophisticated peer management strategies. A custom peer bucket system utilizes IP prefixes and random secrets to securely categorize connections, which structurally mitigates targeted network spam and local infrastructure attacks. By differentiating between trusted outgoing and potentially risky incoming connections, and employing dynamic peer shuffling alongside strategic node eviction, the network actively defends against eclipse and isolation attacks. Furthermore, an internal reputation system assigns precise partial banning scores to malicious nodes, ensuring robust network health without triggering overly aggressive, false-positive expulsions. Abstracting these complex network logistics, the open-source Lisk SDK enables engineers to build custom functional blockchains entirely in JavaScript and TypeScript. The framework introduces a strict architectural divide between protocol-critical on-chain logic—managed via highly verifiable modules and sequential lifecycle hooks—and auxiliary off-chain logic powered by independent plugins. Paired with Lisk Commander for rapid CLI bootstrapping, a built-in dashboard monitoring UI, and token distribution tools, the SDK simplifies node deployment and dramatically lowers the barrier to entry for developing scalable, delegated proof-of-stake applications. **Keywords:** p2p networks, blockchain development, lisk sdk, gossip protocol, unstructured mesh networks, dht routing, delegated proof of stake, eclipse attack mitigation, node reputation scoring, javascript blockchain, cli bootstrapping, on-chain logic, off-chain plugins, network churn, sybil attack prevention, dynamic peer shuffling ## Chapters 1. **Introduction to the Lisk platform and delegated proof of stake** (00:02) — Building blockchain applications with JavaScript simplifies development while utilizing delegated proof of stake for block validation. 1. **Characteristics of centralized versus decentralized peer-to-peer communication architectures** (02:26) — Decentralizing data control through peer-to-peer structures enables nodes to function simultaneously as clients and servers. 1. **Comparing structured distributed hash tables with unstructured network topologies** (05:08) — Structured networks utilize distributed hash tables for targeted resource lookup while unstructured networks prioritize robustness through random connections. 1. **Spreading internal network information using mesh configurations and gossip protocol** (08:09) — Partial mesh configurations optimize connection resources while the epidemic routing model rapidly disseminates data across unstructured topologies. 1. **Propagating blocks and transactions across peer-to-peer blockchain networks** (11:11) — Applying the gossip protocol within blockchain architectures ensures rapid and secure broadcasting of forged blocks and new transactions. 1. **Core components and security features of the Lisk network** (12:41) — Mitigating potential infrastructure attacks requires implementing an unstructured partial mesh network alongside specific access lists and banning mechanisms. 1. **Organizing scalable peer connections through randomized routing buckets** (15:59) — Protecting node structures from localized attacks relies on sorting network peers into designated new and tried buckets based on internet protocol prefixes. 1. **Implementing connection shuffling and reputation metrics against structural attacks** (19:04) — Defending isolated nodes from eclipse attacks necessitates dynamic connection shuffling alongside specialized scoring systems to evict unresponsive participants. 1. **Configuring the standalone Lisk peer-to-peer TypeScript library** (22:07) — Integrating the independent peer-to-peer library standardizes network interactions by exposing easily configurable handshakes and active event listener functionalities. 1. **Orchestrating on-chain verification modules and off-chain utility plugins** (25:02) — Decoupling structural blockchain elements allows iterative protocol modifications through verifiable core modules while supplemental features run independently within associated plugins. 1. **Default architectural plugins and foundational modules within blockchain development** (29:12) — Leveraging predefined core modules and structural background plugins accelerates development deployment while ensuring secure state management and misbehavior reporting. 1. **Bootstrapping customized decentralized applications using graphical dashboard plugins** (31:26) — Interfacing with a localized web dashboard simplifies blockchain network monitoring and standardizes command-line interface bootstrapping for complex token environments. 1. **Generating distinct application modules and granular protocol event listeners** (35:49) — Generating specialized protocol logic via automated scaffolding commands allows server administrators to seamlessly deploy functional client nodes for real-time monitoring. 1. **Preparing local environments for hands-on distributed application building** (38:56) — Installing the appropriate runtime environments and system dependencies prepares developers to efficiently tackle live collaborative blockchain programming architectures. ## Related Moments - [Overview of the Lisk blockchain and JavaScript SDK](https://www.wearedevelopers.com/videos/49-build-your-blockchain-application-in-javascript) (from "Build Your Blockchain Application in JavaScript") - [Understanding Lisk SDK architecture and functional components](https://www.wearedevelopers.com/videos/188-develop-a-blockchain-application-in-javascript-with-lisk-sdk) (from "Develop a Blockchain Application in JavaScript with Lisk SDK") - [Key scalability benefits of the Lisk blockchain platform](https://www.wearedevelopers.com/videos/49-build-your-blockchain-application-in-javascript) (from "Build Your Blockchain Application in JavaScript") - [Designing on-chain architecture with custom Lisk modules](https://www.wearedevelopers.com/videos/49-build-your-blockchain-application-in-javascript) (from "Build Your Blockchain Application in JavaScript") - [Evolution of the Lisk SDK and recent protocol features](https://www.wearedevelopers.com/videos/49-build-your-blockchain-application-in-javascript) (from "Build Your Blockchain Application in JavaScript") - [Lisk grant program and Core release announcements](https://www.wearedevelopers.com/videos/188-develop-a-blockchain-application-in-javascript-with-lisk-sdk) (from "Develop a Blockchain Application in JavaScript with Lisk SDK") ## Related Articles - [From Hype to Code: Real Blockchain Use Cases for Developers](https://www.wearedevelopers.com/magazine/620-from-hype-to-code-real-blockchain-use-cases-for-developers) - [Why Blockchain? A Developer’s Perspective](https://www.wearedevelopers.com/magazine/616-why-blockchain-a-developer-s-perspective) - [Dev Digest 138 - Are you secure about this?](https://www.wearedevelopers.com/magazine/486-dev-digest-138-are-you-secure-about-this) - [Walking Into The Era of Supply Chain Risks](https://www.wearedevelopers.com/magazine/106-walking-into-the-era-of-supply-chain-risks) ## Related Jobs - [Senior Backend Engineer, Blockchain (Smart Contracts)](https://www.wearedevelopers.com/jobs/ext/1940851-senior-backend-engineer-blockchain-smart-contracts) at **Bitpanda** - [Backend Engineer, Python (Web3)](https://www.wearedevelopers.com/jobs/ext/1934515-backend-engineer-python-web3) at **Bitpanda** - [Senior Fullstack Engineer, Angular & Nestjs (Defi Wallet)](https://www.wearedevelopers.com/jobs/ext/1983681-senior-fullstack-engineer-angular-nestjs-defi-wallet) at **Bitpanda** - [Devops Engineer](https://www.wearedevelopers.com/jobs/ext/1940926-devops-engineer) at **Bitpanda** - [Software Engineer](https://www.wearedevelopers.com/jobs/ext/1304791-software-engineer) at **Bitpanda** - [Software Engineer, Platform Engineering (L2)](https://www.wearedevelopers.com/jobs/ext/1956829-software-engineer-platform-engineering-l2) at **Twilio**