[dispatch] JSON Canonicalization Standard

Anders Rundgren <anders.rundgren.net@gmail.com> Sat, 11 August 2018 05:47 UTC

Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: dispatch@ietfa.amsl.com
Delivered-To: dispatch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9134E130FB2 for <dispatch@ietfa.amsl.com>; Fri, 10 Aug 2018 22:47:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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, 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 xxPkFxj7cIJ4 for <dispatch@ietfa.amsl.com>; Fri, 10 Aug 2018 22:47:17 -0700 (PDT)
Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 957FF127332 for <dispatch@ietf.org>; Fri, 10 Aug 2018 22:47:17 -0700 (PDT)
Received: by mail-wm0-x22a.google.com with SMTP id w24-v6so3800446wmc.1 for <dispatch@ietf.org>; Fri, 10 Aug 2018 22:47:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:cc:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=rBZJYBF/JtFBuHG4e8JFj7vOwHYYJ6JgW+/XdrVU3WU=; b=VaJsyGJ/BoEKdkbtKImBqtLBhR79nqOZajD6z9LKw7LOYwmxxn1VqCbCWK2AiOgGkf NBgTilS4KI6Js7Plwr/6/mkZnJHrxIjumrIOP1dUVyAQDTPL0EmElVD7+IuMUxZJsG9Y MSqjCcgQ1Dkd9XmRkuvg9HnlBK9TL4qwAqHe0Cte8IErDtQa3nLPgrL0ujlF/DIT0XOx 3LTFjJ8UP56wHCfwRazswV8qtTIJrfRgtigg1WW7lo0QhhMQ/4baHOW4KUl9Xp6um3Bu jTwmPxIOLVbvw83ML70N3IYdLlCb+hbDMkTt3eXGWtLeVHUgCI4BMSl4IqBeHsZX241i Sb9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:cc:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=rBZJYBF/JtFBuHG4e8JFj7vOwHYYJ6JgW+/XdrVU3WU=; b=Z/Ix+4r9QSpCaVgHv0UU6K6Fz9Sd/8Ltk5WK4Wh6cEXAvHUM7MgyWsP0OiIbmacK/O u9qvVqI6LI44VZ+l/UUewH82bgRz65YhB1reG1RwVDU9ugneou+d4s+WgdegWFTFpXLf MGwWi0/6NXz9VZ9fKamXwsxh+5buQyUiiMWGR3pKJRK/hlKB9BGMKIiWA1d8Pi2qtFSQ 6nHM0wy+nnYc53EikJxSka453PAMXlKVwxckS0+iU0/8vuFsoQwa2XhK2HUgJ8gkSICi 2+e3N95PgyI2d51C4g/x98h4iZarNkXP51oJISrSJi7gJXCieYmPl89LwBQ/g2lD2XZS cAgw==
X-Gm-Message-State: AOUpUlHNDXTX8Y4yoosMsHWx20yH19dq3ZrkszvHLnmvqiGEErOJBXXB lR1FOKUFmh3odUsBN3F0xrs=
X-Google-Smtp-Source: AA+uWPxWPmM2KWBh0f8Y2TVqx076N3m7oHerLB30gr1nE2lAZQCrLxuZ2Mf6twKpzmLTzIsBpfAS4Q==
X-Received: by 2002:a1c:1dcd:: with SMTP id d196-v6mr3290261wmd.114.1533966436180; Fri, 10 Aug 2018 22:47:16 -0700 (PDT)
Received: from [192.168.1.79] (25.131.146.77.rev.sfr.net. [77.146.131.25]) by smtp.googlemail.com with ESMTPSA id e141-v6sm5561343wmd.32.2018.08.10.22.47.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 22:47:15 -0700 (PDT)
To: dispatch@ietf.org
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Cc: Samuel Erdtman <samuel@erdtman.se>, Eric Rescorla <ekr@rtfm.com>, Ben Campbell <ben@nostrum.com>
Message-ID: <4fea5830-dd5a-1709-f0d6-c8af28a78f94@gmail.com>
Date: Sat, 11 Aug 2018 07:47:13 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/dispatch/fMU5UY9DGHxBrg2H0nay-53owC4>
Subject: [dispatch] JSON Canonicalization Standard
X-BeenThere: dispatch@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: DISPATCH Working Group Mail List <dispatch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dispatch>, <mailto:dispatch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dispatch/>
List-Post: <mailto:dispatch@ietf.org>
List-Help: <mailto:dispatch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dispatch>, <mailto:dispatch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 11 Aug 2018 05:47:21 -0000

Hi Dispatchers,

I'm currently trying to develop a JSON Canonicalization Standard as an individual effort: https://tools.ietf.org/html/draft-rundgren-json-canonicalization-scheme-01
I have been asked by the individual submission editor to get feedback from the SEC and ART directors but they in turn have directed me to the DISPATCH forum, and here I am :-)

There are efforts creating an alternative to JOSE JWS since there are JSON-based protocols not benefiting from being cast into a form converting signed JSON messages into something completely alien to their unsigned counterpart.  However, after a number of iterations and vendor feedback, I have come to the conclusion that the "Missing Link" is not necessary a new signature format but a way to canonicalize [*] JSON data.

The scheme is currently implemented in Java, C#/.NET, Python3 and EcmaScript V6 (https://www.npmjs.com/package/canonicalize).

Related: https://github.com/cyberphone/jws-jcs#combining-detached-jws-with-jcs-json-canonicalization-scheme
If you want to test the jws-jcs signature scheme, an on-line demo is currently available at: https://mobilepki.org/jws-jcs/home

What do you think?

Sincerely,
Anders Rundgren

*] The goal is rather creating a "hashable" JSON representation but since the described scheme does not change data, these terms are effectively interchangeable.