PoW calculates the difficulty by counting the number of leading zeros in the event ID bits. For PoW filtering, we convert the target number into zero bits and send it to the relay.