Re: [Multiformats] Multiformats Considered Harmful

Michael Jones <michael_b_jones@hotmail.com> Wed, 06 September 2023 05:34 UTC

Return-Path: <michael_b_jones@hotmail.com>
X-Original-To: multiformats@ietfa.amsl.com
Delivered-To: multiformats@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 51225C14CE3F for <multiformats@ietfa.amsl.com>; Tue, 5 Sep 2023 22:34:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.233
X-Spam-Level:
X-Spam-Status: No, score=-1.233 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, FORGED_HOTMAIL_RCVD2=0.874, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.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 rp1WST_ZKHeY for <multiformats@ietfa.amsl.com>; Tue, 5 Sep 2023 22:34:27 -0700 (PDT)
Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11olkn2016.outbound.protection.outlook.com [40.92.19.16]) (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 9C294C14CE39 for <Multiformats@ietf.org>; Tue, 5 Sep 2023 22:34:27 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k7d0s9NhJPLcNseWE5z51FIstezeGEcb6QQBkJVNu03dPi+PPtAnYL1KaXWq3eUnKe5KcOBXH2FUAcYHEqgQzs3dUNqOTPMzAhirvmuGwOMFx+q7hA+1ZcIH2jw3SqGclgkz7Vp5yocxrJtnIWWvdn4tzpa70deRR+uICNUVK3cYKvh5KmYFdvsGRCkm8sYhsI6pLPMBcsWPYhCB7Jf6zI4dpV6+VDIt+sAcUMhd3WDVYRKDdYdLa9tVAFs75ulJ+uxm9pOpyzWdy+gOmd8Ul8HEtowTtGfQ5GenulLnc33EOhXE1poYJ7u46HpLwhZsmC6ofjnTqDn3/x/X8056yg==
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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xHEicsaMzRXq0y3FpoQM9c9ZSzp6l43GUC6nqKUJwuQ=; b=Iqa/bxVIALwAzD7UzNEAh+5e9OZG9G/0IBCnI8gJYWF1AGkzs7ulxO/7okXkWH0XyD0YH6fT0XIKF7iOpdJaZ1vu2+BW7jeqJ/yxiPD5WXZz2Kp/IDmqo1bfw1vzrgtZgcMILIcI/2ZtW2agz/ZXrWDIdMG+uqs3MSoUworQq1mu1lwexR5RAWQU5AKWF4TQe/0P+QrikyB/kfoJYrhR+uKl9wQc2efrlbwrrhDWNkp4rXm9nvK44A8FOw+IX1N6/KceZbtY6AOJYMyuW/ceBZQD5s0ExxVJJrqdG7g67pfUmQRT1oRYdyZU6pgQ9bEVwxf08d2/J1ESgjSI5I7HVg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xHEicsaMzRXq0y3FpoQM9c9ZSzp6l43GUC6nqKUJwuQ=; b=QZx/fYXd5fiSKYEB8QmuRc+r/GnC7Cn7VkfT0AarrEjrhc5adGCH/z/oiu1yPRTd1luCM2y5abR1s/mMwqB/zFCBCm13dvuuqzNB0UsaZ8itUhg7oqMIsWV+o6vLFh8ZN1iXeWS2C7AdmhTnNlZfmoLndWtKD2eOsiQjRM8tSh0TDa4liKrgJEXlPlkZDrYJKeEDTpLjCRZK1Xkjd1lJvU5Rteh10MK9nRL47dRTeiALapqRc8S+vP/+RIh2iPYX4rPSE3QzuvI1KLsVEiEdzcdtpR8C2FnbUE/wqE6grocaYhTuhAzQojSADXeOmtLfXsQvPgy/PiOwcCcJldh2QQ==
Received: from MW4PR02MB7428.namprd02.prod.outlook.com (2603:10b6:303:71::5) by BL3PR02MB8003.namprd02.prod.outlook.com (2603:10b6:208:35a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.34; Wed, 6 Sep 2023 05:34:25 +0000
Received: from MW4PR02MB7428.namprd02.prod.outlook.com ([fe80::36ca:d688:8cee:d6f7]) by MW4PR02MB7428.namprd02.prod.outlook.com ([fe80::36ca:d688:8cee:d6f7%7]) with mapi id 15.20.6699.035; Wed, 6 Sep 2023 05:34:24 +0000
From: Michael Jones <michael_b_jones@hotmail.com>
To: "Murray S. Kucherawy" <superuser@gmail.com>
CC: "Multiformats@ietf.org" <Multiformats@ietf.org>, Barry Leiba <barryleiba@computer.org>, Francesca Palombini <francesca.palombini@ericsson.com>, Roman Danyliw <rdd@cert.org>, Paul Wouters <paul.wouters@aiven.io>
Thread-Topic: Multiformats Considered Harmful
Thread-Index: AdngY0G2EEkSJQrVSjGitvNBIl2pDgAFm2IAAAJmBVU=
Date: Wed, 06 Sep 2023 05:34:24 +0000
Message-ID: <MW4PR02MB742836DC66FBF276F0300794B7EFA@MW4PR02MB7428.namprd02.prod.outlook.com>
References: <MW4PR02MB74285C15BBD628DD5F637C2EB7EFA@MW4PR02MB7428.namprd02.prod.outlook.com> <CAL0qLwa2unFCt3JrsGGHAbKjJ376krgpZjO81wDLBgzgsM4NAg@mail.gmail.com>
In-Reply-To: <CAL0qLwa2unFCt3JrsGGHAbKjJ376krgpZjO81wDLBgzgsM4NAg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [Tq++7wR4cYlEpz7RDvJUFZX7hi+o9k0u]
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: MW4PR02MB7428:EE_|BL3PR02MB8003:EE_
x-ms-office365-filtering-correlation-id: 09be7c72-b47f-49c9-c82a-08dbae9aede0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: GW8sba4U0SAMMQvLD9SdvsrchMZqGYD955gVB4X4trCFg3EW/Z1UeX3utqgx55TsBgQWk0N+7DFD31CChPjh4j2ePziuXuFoTIEo+gdxHe4xCyU7xU+Agt2XSS/tsBPc23rSA7BiEYl6QXExu+n44iVlKbUezV0HLZgL0Lr6rwvA1A79dp7FTYVCLxsPuOl9801c20/wAqs6DzyJtzn59gqVO9yp2uCKtJW9jvREq/4xCnbn/NigRfYOrGC5C4Fu2wpeYRSjCG6AiyGjV+1z3buYgFXqnmNmOwgG/aK95hHCUjAaNmLS1A3kCODTLXi19uf/9xhFbMLSNWj02gupkUhchISbpRri6nx6nEyN+TN5fRDIeY62cwG7KP13M2orQwdVWfV7p59VgztxEJTNUopt7yJfQONzWZOVmH14XvFs7Dx+Xr7GnhP67eJokOijE7RpgBAdRCLtzM880mQxo1ZQxP/WfEdlI4/xRXGdz5+fx/TBX1wZdTOXdor6uZgmCYIVNIiiSwIBYY/RKfcBRCrBNdNFr+Q5vMifhmQQWxnHtKdUqX3i/DICgy/OPqA1E+tCLkVmF/O/cJ59feN7LfkiErPqRfs62Q49m5WLE7E=
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: z05uWjipfVnOLELHOqTHdGjgwW4d24UPlT2OM79hMpA5hw2zCASa0/lLewIzrIndfRJCEOJBVyOuBZm3U0OVpl6ogDme0dFWbNAMv03rInFS9xRMvGlKm7k9Kemxutj7xml3FnYEMqE7LccfUJAYtRbFKbJJ8lSs1hRajEq0m/FQvDtIgy587NH5cRiQYi9EgOgIwNjf0eXElzdylo37RmMPk5ECNpC4fL7VSZiR8JfuK0Yn36rlrPcestQWPBnIkcp1ALsGNdzjdCfy4j8fMJkOXz93Nbl/qVEeDq+84KWr5lNCec+/+PXLvwuYJ8gtUrn8tpMoraZysfSUo/2FOXGDLGA5NP2+lY3f8cmrxQRfy4niroqU941ibXVoVaVm0bSX1nT65j/+sdn5ERpTgIhqX/tz3Z1+CTPuQRqHUaMVIPsdX2EuFt2k6alH8MT6E8Euuqjv/9HhYWiRGsVUlFTOON8DkAwZ+N/QeMvs79qcGljmUTt948ZkfiKtmerjyjlPGWOs8G8EglIXxDtiiPQcTdQaynJojI45NiLBdJrdXw8AoM3IeNusXtjNYLeGJezn0C6Xc7pylHKIlIPLZDk0wmhe27lsa2XGFYOxIGAt1eX+8NZSEZGCFswSBOItBY+yra5jrgV4BS3PTkOER0DPWDCTmDKzijyt/U0WxDJI2y2UhdlU1AeRr5CUd+MY51tU+KlZbJrwEkEfAzSn4zKs8J8y5n2FILHp85P68je4CYLIWdyckcMmiuSofybFEpIMbjSlViewuBYG4CSciepyB8DHhDFiyspHe9HNItbJeFzMpp1Cfh5ke/QgmJTeFvK+DmO2WA1PKXDOtevGhLWkdk7RbMzFtfzgrHyCG8VlGr+jBMddikAFcYedGUfFEVjPldnBGJYjI9PPQypqQ0jWxKbAyci7mhxgq8qLJNujtPIxnTc8uoZU9qkyUFNKM3wUFQsP9UUhb+f7A9LZQ3VnfuH9V6HAMjVohI3FPARiQoPNLHYtlmkIzBNbTlCv7wm/z5xJLrH5JLKIPHED3KH6jE6ToL1xqc448DjAmQEZPK0Ur9qSG8faBcisO3hOmFjzQ0ojRcyixZs85jT/thPt8NQanAMZpPq4DX+ZkD8llqjM5Hp1DeAd9O52gxGNEWDVYNobaP8uVnKwqN/BCYsPQB6pkv4VbSloCqkNNDnE4f6suXCnG1vQ4WruButEzOH0wRgq7GiytMVBqd3WVhT8A09cSpvGOFB/YwNHkv25P4gCWjlib8kNJ1OPx0JD
Content-Type: multipart/alternative; boundary="_000_MW4PR02MB742836DC66FBF276F0300794B7EFAMW4PR02MB7428namp_"
MIME-Version: 1.0
X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-99c3d.templateTenant
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MW4PR02MB7428.namprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 09be7c72-b47f-49c9-c82a-08dbae9aede0
X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Sep 2023 05:34:24.1634 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR02MB8003
Archived-At: <https://mailarchive.ietf.org/arch/msg/multiformats/Y36KlPyLKd8wwNnZHTwzIypIP74>
Subject: Re: [Multiformats] Multiformats Considered Harmful
X-BeenThere: multiformats@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Discussion related to the various Multiformats data formats <multiformats.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/multiformats>, <mailto:multiformats-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/multiformats/>
List-Post: <mailto:multiformats@ietf.org>
List-Help: <mailto:multiformats-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/multiformats>, <mailto:multiformats-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Sep 2023 05:34:32 -0000

Thanks for the pointer to the DISPATCH notes, Murray. I was aware of it but had an unavoidable conflict that morning. I would have said the same things from the microphone had I been able to be there.

-- Mike


________________________________
From: Murray S. Kucherawy <superuser@gmail.com>
Sent: Tuesday, September 5, 2023 9:22:02 PM
To: Michael Jones <michael_b_jones@hotmail.com>
Cc: Multiformats@ietf.org <Multiformats@ietf.org>; Barry Leiba <barryleiba@computer.org>; Francesca Palombini <francesca.palombini@ericsson.com>; Roman Danyliw <rdd@cert.org>; Paul Wouters <paul.wouters@aiven.io>
Subject: Re: Multiformats Considered Harmful

Hi,

Thanks for this feedback. I'm not taking a position on this at this point, but I want to mention that the DISPATCH discussion about this work took place at IETF 116, and the proceedings can be found here, in case reviewing that discussion might be helpful:

https://datatracker.ietf.org/meeting/116/materials/minutes-116-dispatch-202303270030-00

-MSK, ART AD

On Tue, Sep 5, 2023 at 7:03 PM Michael Jones <michael_b_jones@hotmail.com<mailto:michael_b_jones@hotmail.com>> wrote:

While I usually reserve my time and energy for advancing good ideas, I’m making an exception to publicly state the reasons why I believe “multiformats<https://github.com/msporny/charter-ietf-multiformats/>” should not be considered for standardization by the IETF.

1. Multiformats institutionalize the failure to make a choice, which is the opposite of what good standards do. Good standards make choices about representations of data structures resulting in interoperability, since every conforming implementation uses the same representation. In contrast, multiformats enable different implementations to use a multiplicity of different representations for the same data, harming interoperability. https://datatracker.ietf.org/doc/html/draft-multiformats-multibase-03#appendix-D.1 defines 23 equivalent and non-interoperable representations for the same data!

2. The stated purpose of “multibase<https://www.ietf.org/archive/id/draft-multiformats-multibase-08.html>” is “Unfortunately, it’s not always clear what base encoding is used; that’s where this specification comes in. It answers the question: Given data ‘d’ encoded into text ‘s’, what base is it encoded with?”, which is wholly unnecessary. Successful standards DEFINE what encoding is used where. For instance, https://www.rfc-editor.org/rfc/rfc7518.html#section-6.2.1.2 defines that “x” is base64url encoded. No guesswork or prefixing is necessary or useful.

3. Standardization of multiformats would result in unnecessary and unhelpful duplication of functionality – especially of key representations. The primary use of multiformats is for “publicKeyMultibase” – a representation of public keys that are byte arrays. For instance, the only use of multiformats by the W3C DID spec<https://www.w3.org/TR/did-core/> is for publicKeyMultibase. The IETF already has several perfectly good key representations, including X.509, JSON Web Key (JWK), and COSE_Key. There’s not a compelling case for another one.

4. publicKeyMultibase can only represent a subset of the key types used in practice. Representing many kinds of keys requires multiple values – for instance, RSA keys require both an exponent and a modulus. By comparison, the X.509, JWK, and COSE_Key formats are flexible enough to represent all kinds of keys. It makes little to no sense to standardize a key format that limits implementations to only certain kinds of keys.

5. The “multihash<https://www.ietf.org/archive/id/draft-multiformats-multihash-07.html>” specification relies on a non-standard representation of integers called “Dwarf”. Indeed, the referenced Dwarf document lists itself as being at http://dwarf.freestandards.org/ – a URL that no longer exists!

6. The “Multihash Identifier Registry” at https://www.ietf.org/archive/id/draft-multiformats-multihash-07.html#mh-registry duplicates the functionality of the IANA “Named Information Hash Algorithm Registry” at https://www.iana.org/assignments/named-information/named-information.xhtml#hash-alg, in that both assign (different) numeric identifiers for hash functions. If multihash goes forward, it should use the existing registry.

7. It’s concerning that the draft charter<https://msporny.github.io/charter-ietf-multiformats/> states that “Changing current Multiformat header assignments in a way that breaks backward compatibility with production deployments” is out of scope. Normally IETF working groups are given free reign to make improvements during the standardization process.

8. Finally, as a member of the W3C DID and W3C Verifiable Credentials working groups, I will state that it is misleading for the draft charter to say that “The outputs from this Working Group are currently being used by … the W3C Verifiable Credentials Working Group, W3C Decentralized Identifiers Working Group…”. The documents produced by these working groups intentionally contain no normative references to multiformats or any data structures derived from them. Where they are referenced, it is explicitly stated that the references are non-normative.



                                                -- Mike



P.S.  This was also posted at https://self-issued.info/?p=2408 and https://www.linkedin.com/posts/selfissued_github-mspornycharter-ietf-multiformats-activity-7105001423574077441-6tcS, referenced from https://twitter.com/selfissued/status/1699234431293370376, and filed as an issue at https://github.com/msporny/charter-ietf-multiformats/issues/2.