Re: [Cbor] What's your opinion of using CDDL to simultaneously define CBOR and JSON?

Henk Birkholz <henk.birkholz@sit.fraunhofer.de> Thu, 09 September 2021 09:07 UTC

Return-Path: <henk.birkholz@sit.fraunhofer.de>
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 F08C03A2322; Thu, 9 Sep 2021 02:07:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=fraunhofer.onmicrosoft.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 22zJ7u9pY2nU; Thu, 9 Sep 2021 02:07:30 -0700 (PDT)
Received: from mail-edgeS23.fraunhofer.de (mail-edges23.fraunhofer.de [153.97.7.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BF0483A231C; Thu, 9 Sep 2021 02:07:27 -0700 (PDT)
IronPort-SDR: bJpAiLylToZwvfYZjSE23P9Ajp7x4OFW6dgwejUEVGjq0K+nZHHegAerYOeQqmMBjKLwA9bABE mdTsPu3nED+A==
IronPort-PHdr: A9a23:W8+pQhZg2bZ2+xXJ4efBk1L/LTDNhN3EVzX9orImhq5ANKO58MeqME/e4KBri1nEFcXe5ulfguXb+6bnRSQb4JmHvXxDFf4EVxIMhcgM2QB1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RIEVJw+Ccz6CYgEBAgGEdIJkhnABRTRcBEMOAi8sIEoZNUwYkT02qzAtB4IDgSuBMQYLiH6UCgYULINmi2eFGXcGL5BzomCTV4UUAgQCBAUCDgEBBoFoBYIJTSRPgmlRGQ+OIDdvAQiCQ4UUhUxyAjYCBgEKAQEDCYVHizABAQ
X-IronPort-AV: E=Sophos;i="5.85,279,1624312800"; d="scan'208";a="31656860"
Received: from mail-mtas26.fraunhofer.de ([153.97.7.26]) by mail-edgeS23.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2021 11:07:23 +0200
IronPort-SDR: mW5S38SNkhv72TQYgR+i973Rnt1vyClsHGBb9849RanFvWp74N11+HT1Fi3IFhvc2VfphAY3kR E2ghFL/Pcmor+XzucrIdjRZROnvW8Fdv4=
IronPort-PHdr: A9a23:v+LaCBSuTvhpXm79xRDa4PWOXtpso1/LVj580XJvo7NDbqrl+I7tbwTT5vRo2VnOW4iTq/dJkPHfvK2oX2scqY2Av3YPfN0pNVcFhMwakhZmDJuDDkv2f//ncyJ8G95NBxdp+nihOh1TH8DzL1TZvny162sUHRPyfQp4L+j4AMjclcOygvuz59vdeQxVgjq6b75oahm7/m3s
IronPort-HdrOrdr: A9a23:0VyxkaysTyjNqWNyMOrEKrPxu+skLtp133Aq2lEZdPULSKOlfpGV8MjziyWYtN9wYhAdcdDpAtjlfZquz+8I3WB3B8bcYOCGghrUEGgG1+XfKlLbalXDH4JmpMFdmu1FeafN5DtB/LbHCWuDYq8dKbC8mcjC74eurAYecegpUdAG0+4QMHfrLqQcfnglOXNWLuv42iMKnUvaRZxBBf7LeEXtEtKz6+HjpdbDW1orFhQn4A6BgXeB76P7KQGR2lM7XylUybkv3GDZm0ihj5/T/c2T+1v57Sv+/p5WkNzuxp9qA9GNsNEcLnHJhhyzbIpsdrWetHQeof2p6nwtjN7Qyi1QcPhb2jf0RCWYsBHt0w7v3HIH7GLj80aRhT/ZrcnwVFsBeoF8rLMcViGcx1srvdl63q4O9XmerYBrARTJmzm4z8TUVjlx/3DE4kYKoKo2tThyQIEeYLheocg050VOCqoNGyr89cQODPRuNsfB//xbGGnqL0wxhlMfheBEY05DWitvGiM5y4uoOnlt7TFEJnIjtY4idixqzuN6d3EsjN60QZiBl9l1P4crhOxGdb48qPCMexjwqCT3QSuvyGTcZdQ60k322unKCZUOlauXkc8zvdYPcKqoaiIviYd1QTO3NfGz
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DMAABwzjlh/z6wYZlaHAEBAQEBAQcBARIBAQQEAQFACYE+BQEBCwGBUikoB3dZJkOER4NJAQGFOYVigXYuAzgBmiSBLoElA1QLAQMBAQEBAQgBBCYLCQECBAEBhHICNYIGAiY2Bw4BAgQBAQESAQEFAQEBAgEGBIERE4VoDYZCAQEBAQIBAQEQEQ8BBQgBARQYCwEECwkCDgoCAiMDAgInCwcNEQYNAQUCAQEegk8BglUDDiACAwuOG480AYE6AooPEHqBMYECgggBAQYEBIE6Ag5BRoI5GFqBWgMGCQGBBioBgn6KfTeBVUSBFScPgnM+gmIBAQIBhHSCZIZwAUU0XARDDgIvLCBKGTVMGJE9NqswLQeCA4ErgTEGC4h+lAoGFCyDZotnhRl3Bi+Qc6Jgk1eFFAIEAgQFAg4BAQaBaAUvgVlNJE+CaVEZD44gN28BCIJDhRSFTEExAjYCBgEKAQEDCYVFAQGLMAEB
X-IronPort-AV: E=Sophos;i="5.85,279,1624312800"; d="scan'208";a="152692981"
Received: from 153-97-176-62.vm.c.fraunhofer.de (HELO mobile.exch.fraunhofer.de) ([153.97.176.62]) by mail-mtaS26.fraunhofer.de with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2021 11:07:20 +0200
Received: from XCH-HYBRID-01.ads.fraunhofer.de (10.225.8.57) by XCH-HYBRID-02.ads.fraunhofer.de (10.225.8.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.15; Thu, 9 Sep 2021 11:07:20 +0200
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (10.225.8.37) by XCH-HYBRID-01.ads.fraunhofer.de (10.225.8.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.15 via Frontend Transport; Thu, 9 Sep 2021 11:07:20 +0200
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JobQrGpuVTPfusK5QlLxQy4FkZEyWcue5eKowjXc7BBXZZE63Qa9k644rr3OW55LKDW4OYAWgEn4l/92aTXflAfKiqDiwDJK2l1/IfxtDn8zBbU9T40hy8gneqsj9vL3azxybHFRDig75JUMJ4yCD1jrUhhv2gac3SczCb3KBlOvivIxPB59kBwCv3vtPXxi1VZDVTBF/rTvuKFDThgybBgPqaCDy5iVzy7ozNCTVc0ZMJmxpI9KdDYZY4V4RpcNx6Xiv8Q9XqJTwR0DH25ty4uDaaq4nbjePLorgyt4SIUc6Pyo3+K7w5b02wdIIgXEUxpc5qoDQklX+FS8tBE0Qw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=tRG5ji6a0KW8QEoobd+5+n3A6Ql43pngqGUTxRr5vsE=; b=WepQOi9Fzd2j8oj0LYUBHVzKIbQEl/8lfEpaSvN4TkSfUkrSOMhr2BYgkps1tZQcN+kn8JGCXrxLqRjqAXm1oEpT4XTkzKELzr44AxVlQU+hxLY7bW5U539k48UQo8ZOnQX6LOqQptGQzTjXp/Z+DwKuvKk3+BDqzK1clNPU2mxZ4Ax9jPu+SjfEA+KY1MS2B78t2TdJdqYEnU5LAoZpAx2nEB7iEx/TAR08tr/Md/aJuZlvXUknS21GAwTaMFs0xuOogLk5Q852Ix72Qv7Vyg9k5TCUqEGT7HdEsKnadkQx72yhe0ACBG1c7QykLR0/Xptpr/SaN0khU+TPrS2qBw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sit.fraunhofer.de; dmarc=pass action=none header.from=sit.fraunhofer.de; dkim=pass header.d=sit.fraunhofer.de; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fraunhofer.onmicrosoft.com; s=selector2-fraunhofer-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tRG5ji6a0KW8QEoobd+5+n3A6Ql43pngqGUTxRr5vsE=; b=RWA8mWwWbgYpJGMbXVlHm+Ikj7dNQNkQADjeMuKOj7L/Q95mXYe3s4QZjTGvhKduu0gbqP4sijvXWnVkSKABs6RtXLEob+dKeKQ95OKPtviuNIhs65qsv3pg2SO+z+uh+Nj0f1jTvu3wbnECYywbJ5h30fksV7S50/Dddfc6gPI=
Authentication-Results: ietf.org; dkim=none (message not signed) header.d=none; ietf.org; dmarc=none action=none header.from=sit.fraunhofer.de;
Received: from DU2P194MB1709.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:276::9) by DB9P194MB1466.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:29c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Thu, 9 Sep 2021 09:07:19 +0000
Received: from DU2P194MB1709.EURP194.PROD.OUTLOOK.COM ([fe80::34a3:5ae8:873e:13ac]) by DU2P194MB1709.EURP194.PROD.OUTLOOK.COM ([fe80::34a3:5ae8:873e:13ac%3]) with mapi id 15.20.4478.026; Thu, 9 Sep 2021 09:07:19 +0000
To: Laurence Lundblade <lgl@island-resort.com>
CC: cbor@ietf.org, "rats@ietf.org" <rats@ietf.org>
References: <51537C68-F495-4750-9376-A637BD0E78DD@island-resort.com> <0d4b6a9a-dc26-ee31-725b-3689dfdce041@sit.fraunhofer.de> <4BD93D61-1668-4AE8-B59B-ABC2D3F5C455@island-resort.com>
From: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
Message-ID: <c175728e-bf24-be2c-d4d5-87a0151939f4@sit.fraunhofer.de>
Date: Thu, 09 Sep 2021 11:07:17 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
In-Reply-To: <4BD93D61-1668-4AE8-B59B-ABC2D3F5C455@island-resort.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-ClientProxiedBy: AM3PR05CA0155.eurprd05.prod.outlook.com (2603:10a6:207:3::33) To DU2P194MB1709.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:276::9)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [172.16.7.90] (217.171.227.46) by AM3PR05CA0155.eurprd05.prod.outlook.com (2603:10a6:207:3::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Thu, 9 Sep 2021 09:07:18 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: af3a4a67-c1f8-4ab6-9860-08d9737139d5
X-MS-TrafficTypeDiagnostic: DB9P194MB1466:
X-Microsoft-Antispam-PRVS: <DB9P194MB146676B4E51A685EE9914198A8D59@DB9P194MB1466.EURP194.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:8273;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 5DrCZsNZ/FUD92YJFpG74PGXfU1df92kAAxdiomwtIp2i0D4RQe273nIerqum/SKcoaR9OYSAozgaoijjOTKiVhmYvX+6g+deoH/4rFpQamWvCDK2N4OMbK7e+NocMZU/FRqdOED7hAzhrm4PG/pJ2Q5NeNV3ERQQefnawO9HtlIBum6WmIUInOhtc0mnaDWbeOTG3DRguMiRHVaij9dzgRQpvMUpU2xXdrxCeDCOTfroC3FRiJz9YPgr2ei8hqNj36LGFnAnuCpkxGewZbLtUuxHt+jywZ2FnqIOVGDBXCWNZAmbddZPzeAfBW+mge4lpITnwLOXwE4JlVKlbUfQLX7JnPuuvkXTJBYCJEA9kXUTppPAUy3xX9ovmDGBWPyl94OxN+KbIpmR+rIVkiTV1fgpu34JCE4RtDHxswkdA4CmqWNTAqVDXbm8fXmCJGz4RXHqqvLRsfHZQ44T2sRUyfdvYaabBoWAxYaaY0VCrA4FsM38SQi4rfLkaHcwgWEz2e1vEwdt1kdHQZ+0SaIa7Qf/tmb67r80KLssRDd5CF6cQOPuVE13Ug7A3FmB2smnDd1yqOzjcnISX5jBJ+k98JrP549wqjkNYMZYdvsz0IB3yWiKkBLqigtTLW2yVyq38UBhOlcPjiUK/6e8+WFceM6qko0eze423YvKYdYuOZWpha56p5Z/pAOX0p6eqj4kTRrMItFZ/TBQ8pzFiKdsmCayxZqhhPRJdfzyLLK4J0F4G7qS/sxEAXYhKJU/69+BIREeDBBXkdNA4FAGvoImCTWtSxmv4aZFjhv3UIyCbZkZfFamCFSP0RF7Stb5p8tBnHA83XlaQfFopvblhHq4WIJoT+F498/tg4/3tUn49gbFbZ9bdHryzegFhWsogkthQgawNu6x4eXtLavq0ON5w==
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2P194MB1709.EURP194.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(346002)(39860400002)(376002)(136003)(8936002)(44832011)(5660300002)(966005)(8676002)(478600001)(26005)(86362001)(956004)(38100700002)(53546011)(6486002)(52116002)(66946007)(186003)(66556008)(66476007)(31696002)(83380400001)(2616005)(316002)(38350700002)(16576012)(6916009)(2906002)(31686004)(4326008)(21314003)(45980500001)(43740500002); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiS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75atZhU3FIXS5vrT/2N3sFcn6ZJno3gEEQ6iRwwyLG6S6IxZBQkodkksh+wiysdZVGxpubMfajUkyCnVDmRQqwgQcjZJ0WynQpzDbRTsYajNvblNGQROQZUoT/jJ8WpZJhRz/A19XS3wllEMGODfZgANClTMBtcbhZwezhKA/FcywIMyTZ/EEvdBn3HrQygoWTzRTl5gWoJ3ucsksjSb2wWLMmd5uDo6tscv5GLMt6ksbhHfnCovZJjciOve0whmTuGludbg9lzafOE4DGipGT5ZrA6F/dv4OljB5UW4kxzOe9RD0ub
X-MS-Exchange-CrossTenant-Network-Message-Id: af3a4a67-c1f8-4ab6-9860-08d9737139d5
X-MS-Exchange-CrossTenant-AuthSource: DU2P194MB1709.EURP194.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Sep 2021 09:07:19.0425 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: f930300c-c97d-4019-be03-add650a171c4
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: ZLDAkOeb9/4rNcg6SaORgaY346mnOwxggruvpevwijHjW1YUsAzSfchTetzm5+VshUDfeOJQwc0eq+socCkt0MTBJ0Id/B12FpV4CvnvPZ4=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9P194MB1466
X-OriginatorOrg: sit.fraunhofer.de
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Qw5AhlMGY55D8sJCB4L5gfET52A>
Subject: Re: [Cbor] What's your opinion of using CDDL to simultaneously define CBOR and JSON?
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 09 Sep 2021 09:07:37 -0000

Hi Laurence,
adding more rats due to UCCS scope,

both the web tokens, senml and actually cose (but Jim was in high 
frequency interaction with us) predate RFC 8610. That might be one 
reason for the surprising volume of English text.

Actually, I am really in favor of replacing 'prose' with CDDL. That is 
exactly the point. It reads faster, is precise, has low noise, and 
provides a quick comprehensive overview of message or document layouts. 
Essentially, it's like this typical "figure in section 2.5" where you 
finally have this aha! moment with the benefit that it is the actual 
specification and not just an overview.

In consequence, I think that creating a CDDL definition for CWT is a 
useful and practical contribution to the "CCS" part in UCCS. Carsten 
took the liberty to run a quick review cycle with a proposal and the 
result of a late night's work can be found here:

> https://github.com/ietf-rats-wg/draft-ietf-rats-uccs/pull/7

Please mind, that I still think that this is additional content that 
extends the contribution of this I-D. Ripple effects definitely should 
effect abstract & intro content.

Additionally, I am still quite opposed to address CDDL for 
https://datatracker.ietf.org/doc/html/rfc7519#section-6 in the UCCS I-D. 
That has nothing to do with CWT or UCCS. Maybe some JOSE folks can offer 
more insight.

I read the term polluting somewhere in the discussion, I think. I am 
against polluting the content of the UCCS I-D with a related but 
different problem statement. We can (and probably should) do that, but 
not there.

Viele Grüße,

Henk




On 08.09.21 21:05, Laurence Lundblade wrote:
> Hi Henk,
> 
> I don’t mean this to be a loaded question. I really do want to hear what 
> people have to say about this even if it is negative.
> 
> As far as I know, no I-D or standard has defined a protocol solely, 
> directly, and abstractly in CDDL such that it /simultaneously/ specifies 
> CBOR, JSON and other encoding except EAT.
> 
> Thanks for the SenML reference. It mostly answers my question. It is a 
> standards track document that specifies a protocol that is to be encoded 
> in CBOR, JSON, XML and EXI. That means a lot of people think it is a 
> good idea to define protocols with multiple encodings and it went 
> through a last call and IESG review.
> 
> However, it doesn’t entirely answer the question, because the primary 
> definition of SenML is in prose, not in CDDL. For EAT, the primary 
> definition of the protocol is in CDDL. There is no prose that says what 
> the CDDL says in many cases.
> 
> Note also that while the CDDL RFC does mention use with JSON 
> (https://datatracker.ietf.org/doc/html/rfc8610#appendix-E 
> <https://datatracker.ietf.org/doc/html/rfc8610#appendix-E>), it doesn’t 
> quite say that it is for the simultaneous definition of CBOR and JSON.
> 
> I’ll ask my CWT/JWT question another way.  What if we had some brand new 
> protocol to define and wanted it to encode in CBOR and JSON, would we 
> use CDDL as the primary expression of it?
> 
> Another way to ask this is to ask why SenML didn’t use CDDL as the 
> primary representation. What is some limits in CDDL? Was it easier to do 
> in prose? Lack of a convention to go from CDDl to XML? Didn’t think of 
> it at the time?
> 
> The other answer I’m getting is here is the lack of anyone saying 
> “Laurence, you dummy, didn’t you know about the xxx problem with doing 
> that?” :-)
> 
> LL
> 
> 
> 
>> On Sep 7, 2021, at 1:16 PM, Henk Birkholz 
>> <henk.birkholz@sit.fraunhofer.de 
>> <mailto:henk.birkholz@sit.fraunhofer.de>> wrote:
>>
>> Hi Laurence,
>>
>>> If we set out to define JWT plus CWT today from scratch, would we use 
>>> CDDL?
>>
>> that reads a bit like a loaded question. While CDDL can do what is 
>> intended to do (e.g., 
>> https://datatracker.ietf.org/doc/html/rfc8428#section-11 
>> <https://datatracker.ietf.org/doc/html/rfc8428#section-11>), I am not 
>> sure what that has to do with defining "JWT plus CWT today from 
>> scratch". Could you elaborate on your motivation a little bit 
>> (excluding the can of worms that is the association with YANG modeled 
>> data and ASN.1 modeled data very deliberately for now).
>>
>> Viele Grüße,
>>
>> Henk
>>
>>
>> On 07.09.21 19:45, Laurence Lundblade wrote:
>>> Right now, the EAT draft is using CDDL to simultaneously define the 
>>> EAT protocol such that it can be encoded in either CBOR or JSON. This 
>>> also gives transcoding of the protocol between CBOR and JSON which is 
>>> useful at the Verifier. There is also some interest in expanding to 
>>> ASN.1. That seems doable. Then maybe on to YANG, but that seems harder.
>>> The goal here is NOT to be able to translate any arbitrary CBOR 
>>> to/from any arbitrary JSON. It is just for the protocol messages 
>>> defined by EAT.
>>> Mostly this has been straight forward in EAT: base64 encoding of 
>>> binary data and a few other little items. See here 
>>> <https://datatracker.ietf.org/doc/html/draft-ietf-rats-eat#section-6.3 <https://datatracker.ietf.org/doc/html/draft-ietf-rats-eat#section-6.3>>. 
>>> That CBOR has tags and JSON doesn’t is the biggest mismatch and has 
>>> to be compensated for in other ways.
>>> I personally think this is working pretty well and is a good idea. 
>>> The main text for each claim is described only in CDDL. A few little 
>>> general rules, like b64 of binary data, say how to handle the 
>>> encoding for JSON.
>>> This kind of all started when CWT was created out of JWT, but that 
>>> was all before CDDL. If we set out to define JWT plus CWT today from 
>>> scratch, would we use CDDL?
>>> Other comments?
>>> Thx,
>>> LL
>>> _______________________________________________
>>> CBOR mailing list
>>> CBOR@ietf.org <mailto:CBOR@ietf.org>
>>> https://www.ietf.org/mailman/listinfo/cbor
>>
>> _______________________________________________
>> CBOR mailing list
>> CBOR@ietf.org <mailto:CBOR@ietf.org>
>> https://www.ietf.org/mailman/listinfo/cbor
>