Consensus/proof_of_authority library
Proof of Authority (PoA) - authority-based block production
A compact PoA scheduler for permissioned networks. This module demonstrates validator rotation, authority list management, and deterministic leader selection via round-robin or weighted round-robin. It is intended for protocol simulations and unit tests rather than production ledger code.
Contract:
- Input: list of authorities and optional weights
- Output: leader for a given slot
- Errors: throws on empty authority list