Implement a Payment Channel with Libp2p
summary
Shows a working proof‑of‑concept: a Solidity channel manager contract plus JavaScript libp2p nodes that exchange signed state updates and settle on chain. Uses an ERC‑20 escrow, OpenZeppelin ECDSA signature recovery to verify counterparty messages, nonce + timeout dispute logic, and a ganache local chain for testing. Claims thousands (e.g. 10,000) of free off‑chain updates, but code is explicitly not production‑ready and contains known bugs; demo partially works over libp2p and ganache local chain.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 3:13What is Centrifuge
- 4:38Protocols
- 7:21Second Module
- 11:18State Channels
- 15:26Nonce
- 21:23Libp2p
- 32:08Channel Manager
- 40:38Verifying Updates
- 44:38Verifying Conditions
- 56:38Code








