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

Wolf McNally <wolf@wolfmcnally.com> Sun, 12 March 2023 20:38 UTC

Return-Path: <wolf@wolfmcnally.com>
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 5710BC151540 for <cbor@ietfa.amsl.com>; Sun, 12 Mar 2023 13:38:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.893
X-Spam-Level:
X-Spam-Status: No, score=-6.893 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=wolfmcnally-com.20210112.gappssmtp.com
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 g393JHCS9ueM for <cbor@ietfa.amsl.com>; Sun, 12 Mar 2023 13:38:27 -0700 (PDT)
Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 BCDBAC151527 for <cbor@ietf.org>; Sun, 12 Mar 2023 13:38:27 -0700 (PDT)
Received: by mail-oi1-x229.google.com with SMTP id bm20so8108239oib.7 for <cbor@ietf.org>; Sun, 12 Mar 2023 13:38:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfmcnally-com.20210112.gappssmtp.com; s=20210112; t=1678653506; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=nC/7cOLo4ddeR/zu6ek6G6sH0n6JzYCWPIhBCDkNv9I=; b=7yR6yx8MzG6RXE0QOORvswUqKoQTcok6OMerkRF6BusfRVqT7nL/4aZciNepiQDCq/ 145ETQm1PEWsAeRzd8Cn4gmmKTv4Tuplu7w2zg31y6bGV/tzwbN1MbFrkANS5/5UHXTZ qHl3XQ5GGDrlJEagVwSyol7kHS8MRmRcx4Jp6+Re35gFiuZpwRshqdjctTOn+0vgQZbk uol3aPVNwkhlP0Jy8yu3L5mYAKTFoyFlIKY0GKbfp9cKn+I6ZB2H9GMiNplqLbQpxTsV 7SZOhMS5uYCP4zozBgUwA/aNB55XlcwW6xxmQnku/Z5vcJ8h6dgxnOjWuU5Nb006dFCM YItw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678653506; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nC/7cOLo4ddeR/zu6ek6G6sH0n6JzYCWPIhBCDkNv9I=; b=TNXuQ4ex6ES8SxFmcghwFDWg8BlnCRmaRwTm6g9dg4ZKaDr9qhOk5i9qz9LqjyKbhy IQPd4IMBQWhhHAbJlv4fJLhYHIbKeqPKp1wFg0QblfQ8hLR/4aLLeqhC8j9s2oq4vIF4 DGZoCPjbYC6MRYrqkFo+nXisXi49XifWpJ03JF41oth51O027XQ52KDJs9+z6qEgHNXx xu4x4UAQ1tlt8n4i4HO/I4CAgHSOeLNSol/84PvGbPJna6Z7tf1/D6DXYYb3MD6ckRnU SJGsyE4DmKLKfEvDBDw83cH3NP3A5lg1GGyC7/9CQAvcz9MN7HNlW0W90PF/6gP53zcw kbug==
X-Gm-Message-State: AO0yUKX574aEyvhtfM9okLwgye25hnVDgPuc/Glt4fU7Yd8aNdAA6QV6 T57faFiZWauvbgxiZ62ccbi/cg==
X-Google-Smtp-Source: AK7set/hI28kliVayrRqYsW7Ul8JI2YAwC5lNLGiupTOVGn9zlcJPXERLOvVDxYeo7vYJqzRrZfn8Q==
X-Received: by 2002:aca:110f:0:b0:37e:aa97:4660 with SMTP id 15-20020aca110f000000b0037eaa974660mr16243516oir.16.1678653506626; Sun, 12 Mar 2023 13:38:26 -0700 (PDT)
Received: from smtpclient.apple ([185.222.243.89]) by smtp.gmail.com with ESMTPSA id c7-20020aca1c07000000b00384a45d3106sm2339542oic.58.2023.03.12.13.38.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Mar 2023 13:38:26 -0700 (PDT)
From: Wolf McNally <wolf@wolfmcnally.com>
Message-Id: <1D202D7F-0C45-4E9F-8D70-B2EB5F90AEA1@wolfmcnally.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_FC9B57C0-BAFB-4176-9793-B19D7EF1157B"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\))
Date: Sun, 12 Mar 2023 13:38:14 -0700
In-Reply-To: <F8EB9F5B-CB0E-40EA-B6F9-5428B7736206@tzi.org>
Cc: Anders Rundgren <anders.rundgren.net@gmail.com>, Laurence Lundblade <lgl@island-resort.com>, cbor@ietf.org
To: Carsten Bormann <cabo@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> <F8EB9F5B-CB0E-40EA-B6F9-5428B7736206@tzi.org>
X-Mailer: Apple Mail (2.3731.400.51.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/qml_HUKyMz4uXKd2rgqpfC0_Wbg>
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 20:38:32 -0000

Carsten,

On Mar 12, 2023, at 12:54 PM, Carsten Bormann <cabo@tzi.org> wrote:
> 
> 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.

I don’t consider any of the codec-level dCBOR requirements to be application layer validation in any sense.

~ Wolf

P.S. I again apologize for any duplicate messages anyone on the list receives. It’s been years since I’ve actively corresponded on a listserv.