Re: [jose] Canonical JSON form

Sergey Beryozkin <sberyozkin@gmail.com> Thu, 11 October 2018 17:26 UTC

Return-Path: <sberyozkin@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E36A1130E4D for <jose@ietfa.amsl.com>; Thu, 11 Oct 2018 10:26:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZafDC_B9G_W9 for <jose@ietfa.amsl.com>; Thu, 11 Oct 2018 10:26:14 -0700 (PDT)
Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8D15E130EB9 for <jose@ietf.org>; Thu, 11 Oct 2018 10:26:14 -0700 (PDT)
Received: by mail-yb1-xb41.google.com with SMTP id h1-v6so3915161ybm.4 for <jose@ietf.org>; Thu, 11 Oct 2018 10:26:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=59+t9TRfSCHATgo41qh0+I+ET8MXRfPtQ4jMo9PorjA=; b=XLPN3WTxgza6ej6+VxfA9t1reQCcDXx9kWftm25iSdo6McGBhkj57TIdltE/9YxZlu 7ggBjR0jqs9woBzhinBbrcfNnBeVMOkmeG4UsP4p0aFl5ojyb+c3BE3yzdnnY00mEh+0 l8+icSL1hTvTUWnfaX1ESBTiBLyQkhI3EvxaEFXuk4HP1+lGoERPoEu+R+UZGY12/+Fl H9Ub7QIbhRuwU0lhJBL3cCdOdgM8LREe8vq3eDhJY8LJZTY0MaCei0XJ7DmCIdx64VCb DNAfzMX16VXWOOe3Njqk4SKX5TcQsgKdjLojbkltsg699/8k3b6lZSnA0zaT9bg9LZGl 2hyQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=59+t9TRfSCHATgo41qh0+I+ET8MXRfPtQ4jMo9PorjA=; b=G7BRe99k3T+IKmht8i1IcLCPIO3Qe3qSAtZqZA5QiEk+TYpC5wYQ0TElK6valYKpxo gmtcnW43llCOziaq+IRot5sGeb8Ac5JuLF4PQ0fvxEC3lt3bedXb7aSGuY82FrGmbYDL JzZFb5tbgYvCI8qyoIX36caRfwI5TG2YTbGQNZD421U0HYMbr6c5WjzjBpyqoM0uqx6r n/20AlwbGlSi+SkZFmli0FrFFYsMnzUzCBurQHuSVFTRlQBX3BPCMMgiMNOuUHOwBqJM Kbz4ZccL7m9sZUlSnbaZWwDoP0CP06tYaNloVuFW2jBwaBY+NYkn1p0rAjQbMj6M03Rz e8wQ==
X-Gm-Message-State: ABuFfogXWOr/IJBxu6cNXA1d4oTZ2xntC0ll8dD+oihPfBVGJGpDEZCq oXaaU0dKRRqEPY4+g2wdqcdN4hpmIwjCO+EU5QM=
X-Google-Smtp-Source: ACcGV61k59fKyU8ZsZeOitw2ZnsKFazr39ZiiSkISC/SZICxti+J1wvyx3AeoQX1PXGpzwh3UFL82xYb2MIhPUel2k8=
X-Received: by 2002:a25:a489:: with SMTP id g9-v6mr1403091ybi.276.1539278772757; Thu, 11 Oct 2018 10:26:12 -0700 (PDT)
MIME-Version: 1.0
References: <12DD2F97-80C3-4606-9C6B-03F7A4BF19DE@gmail.com> <CAOASepNX4aYVmPWXyODn0E2Om_rimACPECqJBvZSOXVVd_p8LA@mail.gmail.com> <D21F3A95-0085-4DB7-A882-3496CC091B34@gmail.com> <CAOASepM=hB_k7Syqw4+b7L2vd6E_J0DSAAW0mHYdLExBZ6VBuw@mail.gmail.com> <00ad01d460f4$69ae8a00$3d0b9e00$@augustcellars.com> <8436AEE7-B25A-4538-B8F6-16D558D9A504@gmail.com> <69EB3C20-0863-4D00-948B-989EB69D67CD@forgerock.com> <8E99AF32-6DBC-48BA-B4E8-768AFE196FB7@gmail.com>
In-Reply-To: <8E99AF32-6DBC-48BA-B4E8-768AFE196FB7@gmail.com>
From: Sergey Beryozkin <sberyozkin@gmail.com>
Date: Thu, 11 Oct 2018 18:26:01 +0100
Message-ID: <CAOtGrGKSDtJzqLBMRCkjGZ_zJP3ZH=rZYLPMSZgc2M5fvk=FyA@mail.gmail.com>
To: jordan.ietf@gmail.com
Cc: neil.madden@forgerock.com, Jim Schaad <ietf@augustcellars.com>, Nathaniel McCallum <npmccallum@redhat.com>, jose@ietf.org
Content-Type: multipart/alternative; boundary="00000000000075e8b60577f744a2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/V70CouKBRKmGLoVKMjwla30PrJk>
Subject: Re: [jose] Canonical JSON form
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 11 Oct 2018 17:26:17 -0000

Hi

If the signature can be verified then what difference does it make what the
signature value is, the same for every JSON variation or not ? If JSON1,
JSON2, etc, with some minor formatting differences, all make it, after
being validated, into SomeJsonBean, then it should work ?

Thanks, Sergey

On Thu, Oct 11, 2018 at 3:35 PM Bret Jordan <jordan.ietf@gmail.com> wrote:

> Neil,
>
> That is interesting.  But as others have said, I need to be able to round
> trip the content.  The JSON data needs to be consumed by solutions, acted
> on, added to, and resigned.
>
> Thanks,
> Bret
> PGP Fingerprint: 63B4 FC53 680A 6B7D 1447  F2C0 74F8 ACAE 7415 0050
> "Without cryptography vihv vivc ce xhrnrw, however, the only thing that
> can not be unscrambled is an egg."
>
> On Oct 10, 2018, at 11:33 PM, Neil Madden <neil.madden@forgerock.com>
> wrote:
>
>
> On 11 Oct 2018, at 01:02, Bret Jordan <jordan.ietf@gmail.com> wrote:
>
>
> Other implementations say that you should preserver the order of the
> fields you read when serialized which is part of JSON for the browser
> implementations but not necessarily elsewhere.
>
>
> Preserving order is hard.  Depending on your programming language you
> might be deserializing the content in to a struct or you may be using a
> map.
>
> What I need is a way for individuals and organizations to be able to pass
> around and share JSON data and collaboratively work on that JSON data and
> sign the parts that they have done.
>
>
> Have you considered Git with PGP-signed commits? It solves this use-case
> extremely well.
>
> — Neil
>
>
> _______________________________________________
> jose mailing list
> jose@ietf.org
> https://www.ietf.org/mailman/listinfo/jose
>