Solving the NPoS problem with Phragmen | Substrate Seminar | Archives
Today we're joined by Kian Paimani to discuss Substrate's use of Phragmen's algorithm and it various on- and off-chain implementations.
0:00 Introductions
1:59 Overview - Three varieties of Phragmen
3:04 Sequential Phragmen
10:55 The NPos Problem
15:28 Question: How did we choose the criteria for a "good" NPoS solution
Criticism: The criteria incentivizes validators splitting stake
24:10 Example: Comparing two NPoS solutions
27:23 Question: When is Phragmen run?
30:30 Offline Phragmen
34:55 Offchain Phragmen
41:57 Encoding NPoS Solutions
1:01:37 Validating and Scoring Solutions
1:26:29 Wrap-up
Web3 research article on phragmen: https://research.web3.foundation/en/latest/polkadot/NPoS/index.html
PR where Kian implements this logic he's describing https://github.com/paritytech/substrate/pull/4947
Offline Phragmen Tool: https://github.com/kianenigma/offline-phragmen
⎼⎼⎼⎼⎼⎼⎼
→ For more videos on blockchain development and building Web 3.0,
subscribe to the channel: https://www.youtube.com/channel/UCSs5vZi0U7qHLkUjF3QnaWg?sub_confirmation=1
→ Website: https://www.parity.io/
→ To stay informed about Parity updates and events,
subscribe to the newsletter: https://www.parity.io/newsletter/
→ Follow us on Twitter (@ParityTech): https://twitter.com/ParityTech
→ Check our code on GitHub: https://github.com/paritytech/
→ Drop in the Riot chat to ask technical questions: https://riot.im/app/#/room/#watercooler:matrix.parity.io