Use the Epoch Nonce seeds and compare with the Pool sigma derived VRF key of the Pool to calculate the block assignment schedule.
Part 1: Setup test cases for developing scheduled-blocks in Haskell
As a Cardano Pool operator, I have setup stake pools both on testnets and mainnet since early 2021. Most of the time I was following the 2 tutorials Coincashdew and ARMada. Both of them are great detailed tutorials and are a must read when you first start to learn about stake pool operation. During my setups, the part where I need to manage the keys was the most confusing and error prone.