Re: [Cbor] correctness of implied top level array?

Michael Richardson <> Thu, 28 February 2019 00:53 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id C0B5812D829 for <>; Wed, 27 Feb 2019 16:53:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id oNIYiismMoiq for <>; Wed, 27 Feb 2019 16:53:27 -0800 (PST)
Received: from ( []) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id E1AD1126C15 for <>; Wed, 27 Feb 2019 16:53:26 -0800 (PST)
Received: from (unknown [IPv6:2607:f0b0:f:2:56b2:3ff:fe0b:d84]) by (Postfix) with ESMTP id 39B07380BE; Wed, 27 Feb 2019 19:53:19 -0500 (EST)
Received: by (Postfix, from userid 179) id 1C08B989; Wed, 27 Feb 2019 19:53:24 -0500 (EST)
Received: from (localhost []) by (Postfix) with ESMTP id 197935BE; Wed, 27 Feb 2019 19:53:24 -0500 (EST)
From: Michael Richardson <>
To: Carsten Bormann <>
cc: Joe Hildebrand <>,, Laurence Lundblade <>
In-Reply-To: <>
References: <> <> <> <> <>
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 24.5.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature"
Date: Wed, 27 Feb 2019 19:53:24 -0500
Message-ID: <9644.1551315204@localhost>
Archived-At: <>
Subject: Re: [Cbor] correctness of implied top level array?
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Thu, 28 Feb 2019 00:53:30 -0000

Carsten Bormann <>; wrote:
    >> However, in my opinion both of the above cases are instances of
    >> protocols built on top of CBOR, not inherent in the CBOR design itself.

    > Indeed, that’s why cbor-seq is a separate document (and a separate media type).

    > When updating CBOR, we just need to be careful not to rule out decoders
    > that are fine to find additional data when done with the data item they
    > were tasked to decode.  (Both for cbor-seq and for piggy-backing CBOR
    > data in front of a binary blob in some other form.)
    > It took me a while to add that API to my CBOR implementation…

An alternative way to do the desired action (and bring this inside of cbor)
would be an (indefinite?) array type that was specified to concatenate.

I'm not really arguing for this, but I think it's worth knowing why this
would be less good a thing.

BTW: we certainly would up with "ASN1-SEQ" being an unevenly defined/implemented
     defacto-non-standard.  Certificates can sometimes be concatenated, and
     sometimes they can't, depending upon the location and the software being used.

Michael Richardson <>;, Sandelman Software Works
 -= IPv6 IoT consulting =-