Re: [apps-discuss] CBOR: convert CBOR bignum to base64url JSON string

Nico Williams <nico@cryptonector.com> Fri, 24 May 2013 19:35 UTC

Return-Path: <nico@cryptonector.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 43A4A21E8090 for <apps-discuss@ietfa.amsl.com>; Fri, 24 May 2013 12:35:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.864
X-Spam-Level:
X-Spam-Status: No, score=-1.864 tagged_above=-999 required=5 tests=[AWL=0.113, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MUpYgyQfKySn for <apps-discuss@ietfa.amsl.com>; Fri, 24 May 2013 12:35:23 -0700 (PDT)
Received: from homiemail-a89.g.dreamhost.com (caiajhbdccah.dreamhost.com [208.97.132.207]) by ietfa.amsl.com (Postfix) with ESMTP id 5367921E8086 for <apps-discuss@ietf.org>; Fri, 24 May 2013 12:35:21 -0700 (PDT)
Received: from homiemail-a89.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTP id 9ECE531805D for <apps-discuss@ietf.org>; Fri, 24 May 2013 12:35:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=O7+es5wXGo0FSHN284Bj wS9a1uY=; b=wY1o8eMIVYFT06lEu4AuuQIHO4wZJoTKSswd96M/rnq8Kn1v1wmC pHCHPQ9PhYQsutRKTKI8RvMBCgAIM/9uLKqg7X/GbL6iIdB+NkeRLxptnem7BJ1H fKyuDBgN6T4wSL9mcioy+f7NRKe1MWP3Afpw93pYyNyoaK4PvbIsoYU=
Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTPSA id F3AAE31805C for <apps-discuss@ietf.org>; Fri, 24 May 2013 12:35:18 -0700 (PDT)
Received: by mail-wi0-f172.google.com with SMTP id m6so94758wiv.11 for <apps-discuss@ietf.org>; Fri, 24 May 2013 12:35:17 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6MHaBCtOhCbkUojeSvRKSyKkIDUAmoSihrSsckDJcU0=; b=jE80z50RRtoM6nygcAq3ZCYpf4mwezJT1JZDHkGEAMcgxYhQ0KbWq/JEwLiqQSrMu6 8GGE0EqgU1qwe8w45hbAwo2eJ1CGHUaRpj+m5i4RkMTo92IQkcO6/8SnbCV+Ptte9gYJ DWIcmLitBt+PqbVVf/agNmqAlV7ckNp4lpEEzvkK63t4I/fo99PNCCnPvX9vmp6uolZf EkMmQTbzcmXgpprbL6BZ6PBWpdwTyv0sUYEgM92aYhJLbzHF+6kEFYymhU1XpSIAZAxo jyPnM5273bNlgbxOP2VzZcYMPn/mdPjh5K3DxuET4ZEnO05k04VG2ZMpcYhh8C968I9D Nzaw==
MIME-Version: 1.0
X-Received: by 10.194.134.73 with SMTP id pi9mr774281wjb.38.1369424117700; Fri, 24 May 2013 12:35:17 -0700 (PDT)
Received: by 10.217.133.83 with HTTP; Fri, 24 May 2013 12:35:17 -0700 (PDT)
In-Reply-To: <CAMm+Lwih46xeRBLkpHKJyZGCWQN5D_M3eoitQ788zJYd=CQs-A@mail.gmail.com>
References: <255B9BB34FB7D647A506DC292726F6E1151A9721A1@WSMSG3153V.srv.dir.telstra.com> <F04007CB-D23F-4547-BCC4-3ED5A7F141E1@tzi.org> <CAMm+Lwih46xeRBLkpHKJyZGCWQN5D_M3eoitQ788zJYd=CQs-A@mail.gmail.com>
Date: Fri, 24 May 2013 14:35:17 -0500
Message-ID: <CAK3OfOipDi+E3eFHN5gECwKryffFfnCt0tTFDTovGZYc2aSCYQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Phillip Hallam-Baker <hallam@gmail.com>
Content-Type: text/plain; charset="UTF-8"
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, "apps-discuss@ietf.org Discuss" <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] CBOR: convert CBOR bignum to base64url JSON string
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 24 May 2013 19:35:28 -0000

On Fri, May 24, 2013 at 6:59 AM, Phillip Hallam-Baker <hallam@gmail.com> wrote:
> The idea that JSON can never change by an iota seems rather silly. The
> specification is not really complete. Where difficult parts come up they are
> ignored and so we don't know how implementations are expected to behave for
> overflow or for NaN values.

What can't change is what existing consumers expect.  With care JSON
can be extended just fine.  At worst we might need a new MIME type.
Anyways, being able to represent more things would be nice.  It might
also be nice to be able to degrade for decoder implementations that
use NaN coding and that don't want to box things like bignums.