[Cbor] Review of draft-ietf-cbor-tags-oid-00

Jim Schaad <ietf@augustcellars.com> Thu, 27 August 2020 18:13 UTC

Return-Path: <ietf@augustcellars.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 7D4673A11C0; Thu, 27 Aug 2020 11:13:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 uHiFNFP-qZk9; Thu, 27 Aug 2020 11:13:25 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AB0683A11AA; Thu, 27 Aug 2020 11:13:24 -0700 (PDT)
Received: from Jude (73.180.8.170) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 27 Aug 2020 11:12:59 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: <draft-ietf-cbor-tags-oid@ietf.org>
CC: <cbor@ietf.org>
Date: Thu, 27 Aug 2020 11:12:57 -0700
Message-ID: <00b201d67c9d$b2fd1b10$18f75130$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Content-Language: en-us
Thread-Index: AdZ8mProVh929J/fRoqjhKb3w1O2sQ==
X-Originating-IP: [73.180.8.170]
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/5lj35zvO85Yu2tVO_Fw__KWLadc>
Subject: [Cbor] Review of draft-ietf-cbor-tags-oid-00
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, 27 Aug 2020 18:13:27 -0000

*  Is (should) there be a way to have a map which can have a mix of OID and
binary fields w/o having to individually apply the tag to every OID in the
map?  (Assuming we are just talking about keys.)

** Addressing the request for discussion in the draft:

* Only doing one layer seems to me to be high preferable due to the
inability to turn the tag off.  I would be perfectly happy with 

[111({ h'550406': "US" }),
 111({ h'550407': "Los Angeles", h'550408': "CA", h'550411': "90013" }),
 111({ h'550409': "532 S Olive St" }),
 111 ({ h'55040f': "Public Park", h'0992268993f22c640130': "Pershing Square"
})]

* A different, and strange, restriction would be to state that you can
inherit though one array, one map, or one (array then map).  This is going
to cover all of the cases that we would every care about but makes sure that
if you have an array within an array the tag does not continue to migrate
downwards after the first array.   You still have the question about
canceling the effect on a true binary field.  However the following would
not be understood as doing the inheritance of the tag.

111([
     { h'550406': "US" },
     [{ h'550407': "Los Angeles"},{ h'550408': "CA"},   { h'550411': "90013"
}],
     { h'550409': "532 S Olive St" },
     [{ h'55040f': "Public Park"},  [ h'0992268993f22c640130': "Pershing
Square" }]
])

111([
	[ h'550406', "US" ],
     	[[ h'550407', "Los Angeles"], [h'550408', "CA"],  [ h'550411',
"90013"]],
	 [ h'550409', "532 S Olive St"],
	 [[ h'55040f', "Public Park"], [h'0992268993f22c640130', "Pershing
Square"]]
])
(yes I know that this does not match the subject name of X.500 but it might
be a better representation than what is there.)

Jim