Giter Club home page Giter Club logo

Comments (11)

justusranvier avatar justusranvier commented on May 21, 2024

Note that I'm working on an improved pull request that will replace #25

from stacks.

shea256 avatar shea256 commented on May 21, 2024

OK cool I was thinking we could discuss each of these points individually. I have some suggested improvements for this, for example, and I think we can get others to chime in as well.

from stacks.

justusranvier avatar justusranvier commented on May 21, 2024

I worked out a simpler schema overall, as well as an easier way to add features incrementally.

from stacks.

shea256 avatar shea256 commented on May 21, 2024

Sweet, look forward to checking it out.

from stacks.

shea256 avatar shea256 commented on May 21, 2024

I also have a few new ideas for improvements that I've been working on. I'll throw it into an issue and tag you.

Think the process works a bit better when things are first fleshed out and discussed in issues and then they're converted to code and submitted as pull requests. Take a look at these schema discussions for example: https://github.com/jsonresume/resume-schema/issues.

from stacks.

shea256 avatar shea256 commented on May 21, 2024

Anyway, back to the suggestion. I really like the idea of a fingerprints array. As you mentioned at an earlier date, having an entire section for PGP probably doesn't make as much sense as something more generic, like a section for various keys (including PGP and OTR keys) that the user is in control of.

I thought the section could be called "keychain." Here's an example of the format:

{
  "keychain": [
      { "type": "otr", "fingerprint": "756CE84F90ABDE840555F4E2E0B2ACB1297F9E65" },
      { "type": "pgp", "fingerprint": "DDA1CF3D659064044EC99354429E1A42A93EA312",
        "publicKey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG..." },
      { "type": "ssl", "fingerprint": "C1956DC8A7DFB2A5A56934DA09778E3A11023358" },
      { "type": "bitcoin", "address": "1FbynFXB1C6jSAQZivucAnzAm9N7GxURYa",
         "publicKey": "083a0518062cc3c5ad48501c60aa06059785449f579a256ed2f1a5e781a109d978e54b20fb43b6e90dc91d8f9898665b969e122df6e1d1e5ce06c790f618a2c4"},
  ]
}

You'll notice that I even included a Bitcoin public key in there (which could also be referred to as an ecdsa public key).

These keys could be used for identifying users in various ways, including

  • when chatting over OTR messaging
  • when chatting over PGP-encrypted email
  • when logging into a web application (this could work nicely with BitId or some variation thereof)

from stacks.

justusranvier avatar justusranvier commented on May 21, 2024

Right now you're calling this a "user" schema, but I think it can be a more general "identity" schema.

People have identities, but so do organizations and businesses.

Imagine a business identity putting their name, and url, and SSL cert fingerprint in one of these entries.

Oops... I think I just destroyed the CA industry.

from stacks.

shea256 avatar shea256 commented on May 21, 2024

Yeah you're right. Could even have a { "type": "person" } or { "type": "organization" }.

Updating to include SSL.

from stacks.

justusranvier avatar justusranvier commented on May 21, 2024

For space reasons, I'd leave public key distribution out of this spec.

There are many ways to distribute public keys - that's the easy part of the problem.

Generating a secure mapping between logical identities and public keys is the hard part.

You can upload your public key anywhere, maybe even to Namecoin under another namespace, and provide a like to it in the URL section.

from stacks.

shea256 avatar shea256 commented on May 21, 2024

Agreed, linking to URLs is often better. That said, some people will want to include their full keys and I feel that the protocol should support that option.

URL references are already supported by v0.2. For example, my PGP data right now is:

{
  "pgp": {
    "url": "https://s3.amazonaws.com/97p/pubkey.asc", 
    "fingerprint": "DDA1CF3D659064044EC99354429E1A42A93EA312"
  }
}

from stacks.

jackzampolin avatar jackzampolin commented on May 21, 2024

Much has changed since this discussion. If you would like to reopen the issue please do so on one of these three repos:

Closing as stale.

from stacks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.