You're either misinformed or are willingly spreading misinformation.
The other reply already explained but I'm going to repeat in my own words again so that you may understand:
Your data is stored on your physical ID card. You create an account on Pornhub. Pornhub then asks you to prove your age. You hold your card against your phone or card reader, provide your PIN and the information that was requested (in our case a pseudonym and a yes/no whether you're over 18) is transmitted directly from your device to pornhub.
There is no government server (or any third party server for that matter) involved in the process. The only thing the government knows is that they once gave pornhub a certificate to prove to users they really are pornhub.