[Cbor] Re: Private tag numbers / 1010

Anders Rundgren <anders.rundgren.net@gmail.com> Sun, 15 December 2024 07:07 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 C475AC14CE22 for <cbor@ietfa.amsl.com>; Sat, 14 Dec 2024 23:07:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 zXm4ZfQ1-rM1 for <cbor@ietfa.amsl.com>; Sat, 14 Dec 2024 23:07:04 -0800 (PST)
Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A19DBC151082 for <cbor@ietf.org>; Sat, 14 Dec 2024 23:07:04 -0800 (PST)
Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4361c705434so21869655e9.3 for <cbor@ietf.org>; Sat, 14 Dec 2024 23:07:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734246423; x=1734851223; darn=ietf.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YVanHOnKbOqMAeCaVoCeFZCcpE3nPEqKP5kPLRsqNDk=; b=M2YQqAUH+Hbpn0+mn7fjRD5toB2+6OWdwoaZki/rWxxpuVCSrFwucQITCdf9x16QvN gD4mL7pMTN0ljk5ukzy/4QLkZBvsdfn+j6CbEHvz4GCGAP2EBYtMtPXi3kyr3E96aWDF vKb92bk8MoF7pQ9RBe+Bx8mH95JU4CplMvUInspv5czDoCebjRDUlrHLeXhgBicKxxZY QfNfpdVs055Os+rOWbg1fmDvFQVp9zz5YRsiZBpKF7qPvjWzcTZjPSmFKSaYOfmDUamg rQiEzxnrvt8viQn6JUa6Z1+EAubbYrmfWuWB2Ed+JqE5IPkYte4xBdBf8ce5Z18QlOIp sthg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734246423; x=1734851223; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YVanHOnKbOqMAeCaVoCeFZCcpE3nPEqKP5kPLRsqNDk=; b=Hmr5o4hMhI/FOBvbLCJR3Dh4YgeakXmkg3At7DZ+4wfZwwmqeynLP4wpA0fsXhr+Z/ dgJtcU24poLCYG76F6fPvPfTrzgA+v6aiRmjTLOfU5BGTNfK1I62gxnVSdYWqrQEZSVf UfiZyYZIgcxqMCFMIvYN85SXpUHtXEWrxWAEjMU0gDt0I4w+oNjn/k8Zi0GGuk2rx0BM 3HKlZ6/p/7uNl0OtCMR6UHImRv9BksGyz/yvRLBBuKaRRoG6vok1/VMp6RyoJMfXIqeU bW7y8GrXefIlxBtuRuFmxlwIpsnyimtWgcDlKNiuRGTa72G7tcvGFbvYnj/D1RnT7eOw /N0Q==
X-Forwarded-Encrypted: i=1; AJvYcCXdPg7umOXsQ7zW4yYKXkYydMafBa55e8BjgLkIIOwlOj5mzNk1f9RVp7Vc/QwxlY9HLkLy@ietf.org
X-Gm-Message-State: AOJu0YxVxMDgqtfDUT+onPI6FGw2demZGwULIy2yLWzC4Ecc5CdNaALu acTHbEzqM5jS+Lhoy/4XPvBV73/w+YeOzxrmml5mY4031EZNOBOE
X-Gm-Gg: ASbGncvHC+0B0teMFQrqI5pfrY34gGKoqqnGjcqtZzyyD7/H0kykgsL/SXOUuXwrqDK zQoxw5169cqlTFWBSFvzRKkgY7NeHIgY5Y4wW+f7gQuR3/xibJyLe24hWIYBIiH6EShS5YpwuIW TWkL72l/TP5r9076a3GgUtNd7ZBeM2rS5axS6VcYt2BjDLwcBpY9VOlcuPwj/dv2PmL6mnkKlZW il3ezSteCdyzf+RT/VpdU60X82Z6XzicZy/x8KPqfxI5w94Vke9kIPcUd8CQOKjiA+paA9puR76 Kp/PMThWPMFMzCDOuIa/fxwbfn4z+GEaeQKaMkHj2LP/urJO8A2HaZ/s
X-Google-Smtp-Source: AGHT+IFU/AcBjdQgHuQ4+ERzdkk6rIMgBqs+GWV8pPEGEbm4VPs+RnuqDpeMCcM5UbgyrG67e6BsQQ==
X-Received: by 2002:a05:600c:b86:b0:434:fe3c:c67c with SMTP id 5b1f17b1804b1-4362aaa9b3amr56093685e9.26.1734246421691; Sat, 14 Dec 2024 23:07:01 -0800 (PST)
Received: from ?IPV6:2a01:e0a:e1b:64b0:ad39:9f73:1eb0:ec77? ([2a01:e0a:e1b:64b0:ad39:9f73:1eb0:ec77]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4362559ef45sm101192755e9.26.2024.12.14.23.06.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 Dec 2024 23:07:00 -0800 (PST)
Message-ID: <9e31c69f-f714-4431-bc25-ccde09fe07e5@gmail.com>
Date: Sun, 15 Dec 2024 08:06:58 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: Carsten Bormann <cabo@tzi.org>
References: <AS2PR09MB6342AB1E5DFF19EDFB65F25F8C609@AS2PR09MB6342.eurprd09.prod.outlook.com> <8AD1E3E6-A474-4D4D-B404-66172DF8C481@tzi.org> <20230723010552.01d80062@nuclight> <c40b9570-5e22-73c8-744f-1e141edea875@gmail.com> <20241215031403.63e93131@nuclight.lan> <755d93c9-d253-4558-b6ac-d3e1f4555535@gmail.com> <971C7876-CD38-4038-A6C1-BF3F1D0F8E6D@tzi.org>
Content-Language: en-US
From: Anders Rundgren <anders.rundgren.net@gmail.com>
In-Reply-To: <971C7876-CD38-4038-A6C1-BF3F1D0F8E6D@tzi.org>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Message-ID-Hash: 4MNIZC73JEJMIKDPNILURKZ5WTOMTWTA
X-Message-ID-Hash: 4MNIZC73JEJMIKDPNILURKZ5WTOMTWTA
X-MailFrom: anders.rundgren.net@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Vadim Goncharov <vadimnuclight@gmail.com>, Tony Putman <Anthony.Putman@dyson.com>, "cbor@ietf.org" <cbor@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Cbor] Re: Private tag numbers / 1010
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/trYgTCAdo7erYC_5uL2gbg46z_4>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>

On 2024-12-15 06:44, Carsten Bormann wrote:
> On 15. Dec 2024, at 06:18, Anders Rundgren <anders.rundgren.net@gmail.com> wrote:
>>
>>>
>>> Regarding https://datatracker.ietf.org/doc/draft-rundgren-cotx/05/ of
>>> tag 1010, please provide ability for identifier to be a non-text string
>>> until this is not an RFC.
>>
>> Well, for unknown reasons
> 
> (You can find discussion in the records of the mailing list.)
> 
>> the CBOR WG have rejected the by other formats firmly established method using dereferenceable specification URLs as object identifiers,
> 
> Actually, over in T2TRG we are looking at the subject of dereferenceable identifiers [1], so it’s not like we don’t care.  It just turned out there wasn’t a lot of appetite for URIs as type identifiers in the CBOR WG.

Right, because the CBOR WG do not see CBOR as a JSON replacement.  This is a core idea behind my work including the use of deterministic encoding to get rid of dressing everything crypto in Base64Url notation.  Works like a charm:
https://cyberphone.github.io/wallet-core/doc/#2.4.payer-authorization
Converting this to JOSE would make grown man cry :)


> (Note that there is RFC 9090, which defines tags for another identifier scheme, ASN.1 OIDs, but didn’t go ahead to do the tag-1010-like type identifier/data item pairing — it apparently never occurred to us in the seven-year history of this RFC that this might be useful (*).)
> 
> So I wouldn’t use the term “rejected”, more like “not picked up”.
> (It may have played a role that CBOR already has an excellent type identifier mechanism, the tag.)

It is excellent for standard tags.  For private or community based identifiers, URLs and OIDs represent viable alternatives.


> And you did get the tag 1010 that does exactly what you specified it to do.
> 
> [1]: https://www.ietf.org/archive/id/draft-bormann-t2trg-deref-id-04.html
> [2]: https://www.rfc-editor.org/rfc/rfc9090
> 
>> so it seems COTX will remain my private "invention" :)
> 
> I hope you don’t have patent claims on this; the tag registry is there for everyone to use.

I believe there is considerable "prior art" so I won't try to patent that :)
In fact, I do what I can to "destroy" as much IPR as possible through defensive publications.


> 
>> Anyway, I'm not a fan of "polymorphic" tags so I would urge you to seek a new tag number
> 
> Here I agree.
> 
>> (hopefully a bit more compact than 1010), for a version using a binary argument.
> 
> Well, “a binary argument” is not really very specific.
> If we believe attaching type identifiers to data items is important, we should try to make them useful by being well-defined.

OK, then I would settle for bstr (like COSE's "kid") because that gives you highest flexibility.

Anders
> 
> Grüße, Carsten
> 
> (*) Even knowing that ASN.1 has had ANY DEFINED BY since about 1984…
> 
> 
>