Currently `pubKeyToEntity()` assumes that everything happens on the `main` network, which is not always the case.