Re: [Cbor] Decoding numbers and compliance verification in dCBOR

Carsten Bormann <cabo@tzi.org> Sun, 12 March 2023 19:54 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9F513C151551 for <cbor@ietfa.amsl.com>; Sun, 12 Mar 2023 12:54:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.896
X-Spam-Level:
X-Spam-Status: No, score=-6.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t2zy0yWKg02q for <cbor@ietfa.amsl.com>; Sun, 12 Mar 2023 12:54:39 -0700 (PDT)
Received: from smtp.uni-bremen.de (smtp.uni-bremen.de [134.102.50.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A43CDC14CE33 for <cbor@ietf.org>; Sun, 12 Mar 2023 12:54:38 -0700 (PDT)
Received: from [192.168.217.124] (p548dc9a4.dip0.t-ipconnect.de [84.141.201.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.uni-bremen.de (Postfix) with ESMTPSA id 4PZVqc256DzDCbJ; Sun, 12 Mar 2023 20:54:36 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <c9f09139-41e9-2718-6182-7303791712be@gmail.com>
Date: Sun, 12 Mar 2023 20:54:35 +0100
Cc: Wolf McNally <wolf@wolfmcnally.com>, Laurence Lundblade <lgl@island-resort.com>, cbor@ietf.org
X-Mao-Original-Outgoing-Id: 700343675.872506-7b094ba4d53154423520e4f12d65b7c3
Content-Transfer-Encoding: quoted-printable
Message-Id: <F8EB9F5B-CB0E-40EA-B6F9-5428B7736206@tzi.org>
References: <83BF059D-BEF2-4C5F-9DE8-7A99A529833F@island-resort.com> <8999DCEA-6572-4A69-85EC-AA7AD0170837@tzi.org> <38de8a78-0140-45af-b4fb-f601265809e4@gmail.com> <09207367-8B74-434C-89B1-881780DCECA5@wolfmcnally.com> <B3E53C3A-7205-4D3F-B3A3-ED27D52D2A70@island-resort.com> <d0f82da7-77c6-86f9-f1b8-a9cd38dbc5ee@gmail.com> <5A7DB347-2247-4986-92BF-A053866ADB40@wolfmcnally.com> <d5e184a3-730d-8468-f9e7-7016df8838e3@gmail.com> <77A66851-C258-4D4F-8EA1-EB2D5365B55B@wolfmcnally.com> <fe0500aa-8da7-7d75-9381-497c94c06819@gmail.com> <5E462C34-30B6-4CA4-A8E6-FD96C9F6626A@tzi.org> <c9f09139-41e9-2718-6182-7303791712be@gmail.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/2Kp9wEc5HzdhCb9ongsEn8q7Oqk>
Subject: Re: [Cbor] Decoding numbers and compliance verification in dCBOR
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 12 Mar 2023 19:54:43 -0000

On 2023-03-12, at 15:45, Anders Rundgren <anders.rundgren.net@gmail.com> wrote:
> 
> So there will be a checkbox making https://cbor.me produce dCBOR from diagnostic notation?

I was thinking about a checkbox for producing deterministic encoding first.

The numeric fold-up would be a bit out of character for what cbor.me is usually doing, but could be added later.  As could be a check for null map entry values (as much as I disagree with that), but cbor.me is even less in the business of application layer validation than numeric transformation.

Grüße, Carsten