Re: [Cbor] Decoding numbers and compliance verification in dCBOR
Anders Rundgren <anders.rundgren.net@gmail.com> Sun, 12 March 2023 13:43 UTC
Return-Path: <anders.rundgren.net@gmail.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 49B99C14CF18 for <cbor@ietfa.amsl.com>; Sun, 12 Mar 2023 06:43:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.095 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_BLOCKED=0.001, 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
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 1AS3C8UN7H1j for <cbor@ietfa.amsl.com>; Sun, 12 Mar 2023 06:43:30 -0700 (PDT)
Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 BCB2AC14F747 for <cbor@ietf.org>; Sun, 12 Mar 2023 06:43:30 -0700 (PDT)
Received: by mail-wm1-x32b.google.com with SMTP id ay8so1010944wmb.1 for <cbor@ietf.org>; Sun, 12 Mar 2023 06:43:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678628609; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7sDp1xG2j56y6uO39P0VKVCy4tqgEoUx0ARN8wzldzM=; b=nbi00fBcTKxmPMF3vZxA84QB9oF7/Tb210oDsgyuH9B84TJiKl7PoV0tKOhREJQ5I+ RJJHi/fgGNcff7TVR/bxndQghiNhhuPxZNcG8qnInb67yWqeotNu/vs83rjKKPCiNadL lskWU9NdbB+7FJ9YpIFScvnx69stUksdZTq8+PqaiuNvRWSb2+fdmI2i37Dhum7Q18RY XEr75LpJonV0kctNkoQKRNl6boYkisGXdklkrS4Yy0Q8PoI+a80v2GTQtsS/fELYUnac UlfUppcvxSFyzyBRNMZIqbWBi/sbynqcjUGpK+WhgOzQ5FIVEe89/AScJR+rdqkD4ILD rgrQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678628609; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7sDp1xG2j56y6uO39P0VKVCy4tqgEoUx0ARN8wzldzM=; b=oPOq/Lf0WJ7Pk1I6B2SclJDrx2pHPEYzgAAeSUJDxRI4TR2VMnZDLPoJZASYGSstrQ gacHK926nVVZQPwRXtmpKD9d6X23xS0q44GqwvzBWMIXS4j5ssew3lY4jw4Jakjlp/+V KSo5ox3fnMNYB4RtPDIlg5w1o16L8U2tF6dJ/IbMIaNJYWkimcUJP8FvnsguNqZvPb6b wU8tCMPOI3Nd0yYr//MwOg9h/K71nSn07eLFvOKzcjxFQmRvQDhUqoFTNP8nK0h2Gors 7DSSpGxv8Ui6D8MuQtA4786zXC74LYItx4K/u7KCWTKNsJKXFZI68UfVr0wWabBzbmBy EFJQ==
X-Gm-Message-State: AO0yUKUBpo+2evpgqZfEWdDJu99X/KLhLFXtSwgaNumfrh52kIR89zzH XJfbO5VJJuvzXTcYLcUO+txVAPxG+ZU=
X-Google-Smtp-Source: AK7set++fgggUs28JM+RcIIMPy2miA3/pb6lieO451ihsqqJAwKtyc2bwW85bXiCQYMFihPhlnOMpQ==
X-Received: by 2002:a05:600c:1c1d:b0:3ea:edd7:1f1f with SMTP id j29-20020a05600c1c1d00b003eaedd71f1fmr8116551wms.40.1678628608937; Sun, 12 Mar 2023 06:43:28 -0700 (PDT)
Received: from ?IPV6:2a01:e34:ec4e:5670:58c7:2aad:cc47:2c3? ([2a01:e34:ec4e:5670:58c7:2aad:cc47:2c3]) by smtp.googlemail.com with ESMTPSA id n6-20020a7bcbc6000000b003e21f01c426sm6146571wmi.9.2023.03.12.06.43.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Mar 2023 06:43:28 -0700 (PDT)
Message-ID: <fe0500aa-8da7-7d75-9381-497c94c06819@gmail.com>
Date: Sun, 12 Mar 2023 14:43:27 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0
Content-Language: en-US
To: Wolf McNally <wolf@wolfmcnally.com>
Cc: Laurence Lundblade <lgl@island-resort.com>, Carsten Bormann <cabo@tzi.org>, cbor@ietf.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>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
In-Reply-To: <77A66851-C258-4D4F-8EA1-EB2D5365B55B@wolfmcnally.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/qzzhmpGfp3bfhURXlzQ871wuIAw>
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 13:43:35 -0000
On 2023-03-12 13:06, Wolf McNally wrote: > Anders, > >> I recently flushed 10 years(!) of intense JSON programming [*] into the toilet in favor of deterministic CBOR. > > I know what Blockchain Commons’ goal is for dCBOR: it’s the foundation for Gordian Envelope: > > c7d0bc56-810c-4b42-8f2c-68cf669a8a6e.jpeg > Gordian/Envelope at master · BlockchainCommons/Gordian <https://github.com/BlockchainCommons/Gordian/tree/master/Envelope> > github.com <https://github.com/BlockchainCommons/Gordian/tree/master/Envelope> That's fine, many standardization efforts *begin* their life driven by more or less specific applications. > <https://github.com/BlockchainCommons/Gordian/tree/master/Envelope> > > As a plus, we think others in the security space will find it useful even without Envelope. But you say you’re all-in on deterministic CBOR (of some flavor.) May I ask, what were you hoping to accomplish with that? What is attractive to you about deterministic CBOR specifically? Why not just use standard CBOR? What exactly is "standard CBOR"? AFAIK, dCBOR is compliant with the RFC (=standard) but it is not supported by for example https://cbor.me. Apparently there is gap here. My goal (FWIW) would be to create a CBOR counterpart to I-JSON targeting *new* systems like the Gordian envelope. That some decoders may not be able to fully *validate* I-CBOR does not invalidate such a standard because presumably they are able to *decode* it at least. > I think if the demand for a unified dCBOR spec is strong enough, and we can articulate our use cases well, then it would definitely help a standard emerge. IMO, creating a useful CBOR profile could fulfill this goal and much more. Maybe I-CBOR won't take 100% of the market but 80% is definitely in range. It could even make it to browsers! Anders > > ~ Wolf
- [Cbor] Decoding numbers and compliance verificati… Laurence Lundblade
- Re: [Cbor] Decoding numbers and compliance verifi… Carsten Bormann
- Re: [Cbor] Decoding numbers and compliance verifi… Anders Rundgren
- Re: [Cbor] Decoding numbers and compliance verifi… Carsten Bormann
- Re: [Cbor] Decoding numbers and compliance verifi… Wolf McNally
- Re: [Cbor] Decoding numbers and compliance verifi… Wolf McNally
- Re: [Cbor] Decoding numbers and compliance verifi… Carsten Bormann
- Re: [Cbor] Decoding numbers and compliance verifi… Laurence Lundblade
- Re: [Cbor] Decoding numbers and compliance verifi… Wolf McNally
- Re: [Cbor] Decoding numbers and compliance verifi… Anders Rundgren
- Re: [Cbor] Decoding numbers and compliance verifi… Wolf McNally
- Re: [Cbor] Decoding numbers and compliance verifi… Anders Rundgren
- Re: [Cbor] Decoding numbers and compliance verifi… Wolf McNally
- Re: [Cbor] Decoding numbers and compliance verifi… Wolf McNally
- Re: [Cbor] Decoding numbers and compliance verifi… Anders Rundgren
- Re: [Cbor] Decoding numbers and compliance verifi… Carsten Bormann
- Re: [Cbor] Decoding numbers and compliance verifi… Anders Rundgren
- Re: [Cbor] Decoding numbers and compliance verifi… Wolf McNally
- Re: [Cbor] Decoding numbers and compliance verifi… Carsten Bormann
- Re: [Cbor] Decoding numbers and compliance verifi… Anders Rundgren
- Re: [Cbor] Decoding numbers and compliance verifi… Wolf McNally
- Re: [Cbor] Decoding numbers and compliance verifi… Laurence Lundblade
- Re: [Cbor] Decoding numbers and compliance verifi… Laurence Lundblade
- Re: [Cbor] Decoding numbers and compliance verifi… Anders Rundgren