Hello,

I was gonna post this on Ask Lemmy, but then I thought maybe Technology would be a better fit for the theme. But then I saw it’s mostly news, so I thought perhaps Ask Lemmy would indeed be a better fit. If this is not the case, please point me to the right direction.

As a heads-up, I am not 'Murican, and never been to 'Murica, so keep that in mind.

Seeing the recent news with France trying to age-restrict pornographic material online, I was wondering and have sort of an idea, that I wonder if it is actually doable and actually good.

Hear me out: the gobermint likely already has your data, right? At least stuff like name, date of birth, etc. The gobirment could have a private and secure service, which websites and services could use to confirm certain requirements.

For instance: A website wants to confirm if you’re over 18. The website essentially asks the official gob. service, “is this user at least 18 years of age?”. The official gob. service essentially has to answer “yes, your requirements are met” or “no, your requirements are not met”, without giving away information on a person. The user gets prompted, being told what information is being required and whether they wish to share that. The official service wouldn’t know where the request is coming from, but the original website requesting the information generates and shows a temporary code, which is not related to the website at all and is sent to the gob. service, so that the user can confirm it is indeed the website they were using that is requesting this, and not a hijack of some kind. The gob. service, if allowed by the user, sends out this confirmation to the original website, without the gob. service knowing the website and without the website knowing the user’s info. The website then knows whether their requirements are met and can then act accordingly, such as by not allowing someone to access adult material if they do not meet the age requirement.

Does this make sense? Is it doable? Could it be a potential private and secure way of confirming user information without either party having access to the other’s information? Obviously, the idea could be worked on and polished, but as a starting point.

Edit: so, what I’m gathering from comments here:

  1. Som’o’y’all didn’t get it (no, you don’t got to log in to your porn tube of choice with an official gob. account)
  2. This cannot be done
  3. This could be done
  4. This is already a thing being worked on
  • Leejon95@lemmy.world
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    2 days ago

    Yes, such systems are in development and are called identity wallets. https://yivi.app/ for example has the idea of zero trust attribute sharing. You can request attributes the government knows and store these on your phone. You could then share an attribute like “over 18” with the porn site without the government knowing you shared it with them. Most identity wallets don’t want to touch the porn industry tho. So it isn’t used for that (yet).

    • BorgDrone@feddit.nl
      link
      fedilink
      arrow-up
      2
      ·
      8 hours ago

      To add to this: The EU is developing this and it’s supposed to be available to all EU citizens at the end of 2026. From that time government services should also be able to accept it. (Not sure if they’re going to make it, the standards are still under active development).

      It’s all based on OpenID Connect (OIDC). Everything is being developed in the open, as open source software. You can find the github project here.

      If you want to take a look at the draft standards themselves, search for OpenID4VCI (standard for issuing of credentials to a wallet) and OpenID4VP (standard for presenting credentials to 3rd parties).

      • Leejon95@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        The attributes are cryptographically signed by the provider. With their public key you can check if they are actually signed by them.

        • jaybone@lemmy.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 day ago

          To verify the signature with the public key, don’t you need to contact the service/party that signed it?

          • Nighed@feddit.uk
            link
            fedilink
            English
            arrow-up
            1
            ·
            15 hours ago

            Yeh, but it’s public and normally has a decent validity, so you could fetch it once and then use it for years.

            • jaybone@lemmy.zip
              link
              fedilink
              English
              arrow-up
              1
              ·
              3 hours ago

              But for the same signed attribute?

              It seems like the signer would know which clients are attempting to verify authenticity?

              • Nighed@feddit.uk
                link
                fedilink
                English
                arrow-up
                1
                ·
                33 minutes ago

                If the signer (government in this case) is signing everyone’s attribute with the same private key, then the public key will be able to verify all of them.