Git Product home page Git Product logo

jws-ct's People

Contributors

cyberphone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jws-ct's Issues

Q. Why compact detached rather than JWS JSON Serialisation

Qn. Since a key objective is to maintain human readability and general JSON-ness, why not leverage the JWS JSON serialized structures for the meta-info?

   …the syntax of a JWS using the flattened JWS JSON
   Serialization is as follows:
     {
      "payload":"<payload contents>",
      "protected":"<integrity-protected header contents>",
      "header":<non-integrity-protected header contents>,
      "signature":"<signature contents>"
     }

(or it's less-flat alternative for multi-sig) https://tools.ietf.org/html/rfc7515#section-7.2

I'm coming at this from wanting to avoid the complexity overhead of JSON-LD Signatures for (as you suggest) persistent signed JSON documents; finding https://tools.ietf.org/html/rfc7797; thinking all that was missing was some canonicalization; digging into JCS and https://gibson042.github.io/canonicaljson-spec/; discovering that all the 7797 implementations are focussed on detached serializations; and that all the payload examples seem to be of simple strings rather than anything with structure ☹️

And now stumbling across your jws-jcs which also uses the Base64 encoded detached (then re-attached) header and signature, I'm left thinking I must be missing something!??

(although, tbh, I'm not much of a fan of 'payload' as a property name, 'contents' or 'document' or 'body' would be more natural perhaps)

—edit—

So, when I wrote the above, I hadn't realized that this repo belonged to the JCS author/proposer, rather than just some random person's experiment! Thanks for JCS - I really don't understand how there isn't yet a standard for signed JSON documents that are, umm, JSON documents!

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.