Hi Anders

That resembles a bit a JWS JSON serialization format; if a signature is taken on a thumbprint of the natural payload, then perhaps there's some scope for the alignment there ?

Sergey

On 10/12/14 07:18, Anders Rundgren wrote:
Dropping XML DSig bloat and adding support for JOSE algorithms made JCS
even nicer:

{
     "Statement": "Hello signed world!",
     "OtherProperties": [2000,true],
     "signature":
         {
             "algorithm": "ES256",
             "publicKey":
                 {
                     "type": "EC",
                     "curve": "P-256",
                     "x": "vlYxD4dtFJOp1_8_QUcieWCW-4KrLMmFL2rpkY1bQDs",
                     "y": "fxEF70yJenP3SPHM9hv-EnvhG6nXr3_S-fDqoj-F6yM"
                 },
             "value":
"MEUCIQDXU1ph6-MRs0upj5PHA_bOcUv0pz5zIpvcQowgVj_wzQIgRW1_VMuTtc7C64vMh2kKpdGC70tqjpAAcbnn2qnVGuE"

         }
}

My claim that JSON parsers featured in browsers are compliant with JCS
was unfortunately not entirely correct -(
Properties expressed as numbers only ("1":"hi!"), are dealt with in a
special way.  OTOH, this seems like an
unusual construct so it is not a show-stopper.

Cheers,
Anders

_______________________________________________
jose mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/jose

_______________________________________________
jose mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/jose

Reply via email to