Re: [Multiformats] Multiformats Considered Harmful

Melvin Carvalho <melvincarvalho@gmail.com> Tue, 07 November 2023 11:49 UTC

Return-Path: <melvincarvalho@gmail.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 C90BBC09C218 for <multiformats@ietfa.amsl.com>; Tue, 7 Nov 2023 03:49:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.104
X-Spam-Level:
X-Spam-Status: No, score=-7.104 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=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 zEFJX-v2J4Ud for <multiformats@ietfa.amsl.com>; Tue, 7 Nov 2023 03:49:14 -0800 (PST)
Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EA5C0C151064 for <Multiformats@ietf.org>; Tue, 7 Nov 2023 03:49:13 -0800 (PST)
Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-5a87ac9d245so66667667b3.3 for <Multiformats@ietf.org>; Tue, 07 Nov 2023 03:49:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699357753; x=1699962553; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1jiRjvY1213GVUOPlCXFF30ESyRsDPXpUKR8crbxru4=; b=PyIobxxEyaMSo9EOZiBRJIRS4bfWk214A6w732we0KShBUNot67ddcdZhDpWpVRww8 7rnvmJ1k4mNOQ12iJJav5eCutWki0ez3PAl3ygUown750Tm1e9DrRw8ZNQ3VDoxU36p8 9wUdwB+MTSCLn3++DZXj7JCm3bUfpx/FMVwLXbov/Qsrzv7Um9JhYC2xpvWbHFfq0UVJ 7xQgX1aL01DMjO5fvsODr+a48FvlGZrkZ9RSqVVl7PZolVCxyBU7dDDknbCNepv20qby MeBSnnvtgZCNKO25OIH/ib+R451UGtvck4uEh/SMr0TQ05g+ldmkfAIEiFH6G3bEQ0Ku qEdw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699357753; x=1699962553; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1jiRjvY1213GVUOPlCXFF30ESyRsDPXpUKR8crbxru4=; b=RcuW5L8vbS23+UgYqqunV5pMZZgzal2TBFiFlZn0Kt1fLtbGgy/njpXgVWLmJBFG94 IL3WfNyROPyAv5FC+/nXD53u2yofcoRf1R73lLupEPa44cMiNuaymnooHBtdhBBq7UA/ tw9xKN6Sm0Kd+E60pk8c8NeomEZ8tJeTUhi34IYr7WTyks6pp/Bj88F4A2YpTMB4djsf k04/G7UrBAjQlMbrTTaT2SQuc8ouwFqe8OUPXIiOqjscrrTcs0V9tHYrpP1VOhECLqs+ FyTOVZwF3SCA5/lHh51D0cugeFD0uhGn2wuRx3eGgVZ1ItfdXqqFpAoO6OhGqUmJr6ku BhHg==
X-Gm-Message-State: AOJu0YycLXB/s6u3p3TZZBaGO3Wi0zGsB+EFHi8Oq0BwCcQM5pJWF5dw txhG4JJReeQZIpzj2TNKPq0ORwiwCnjb13sA2Mg=
X-Google-Smtp-Source: AGHT+IF1J2PddbDaaJN2UfvIL2vy9XwBMdnZ7uUoyydwiVW6TsxnOc0K6srYo9CjUth/5mSclOQOv2gozcOZytGcAYY=
X-Received: by 2002:a05:690c:dd2:b0:5a7:aa7b:cb9f with SMTP id db18-20020a05690c0dd200b005a7aa7bcb9fmr16681607ywb.14.1699357752951; Tue, 07 Nov 2023 03:49:12 -0800 (PST)
MIME-Version: 1.0
References: <MW4PR02MB74285C15BBD628DD5F637C2EB7EFA@MW4PR02MB7428.namprd02.prod.outlook.com> <CAKaEYhLJy8CW333ZwGujc1JpgpTqZR09_9yk3FQt7sPsFgXv+w@mail.gmail.com> <CAMBN2CSTx_7RuDuqQbUXgoJbcj9k1a33Q575SbHU4_vNGrn5LA@mail.gmail.com>
In-Reply-To: <CAMBN2CSTx_7RuDuqQbUXgoJbcj9k1a33Q575SbHU4_vNGrn5LA@mail.gmail.com>
From: Melvin Carvalho <melvincarvalho@gmail.com>
Date: Tue, 07 Nov 2023 12:49:00 +0100
Message-ID: <CAKaEYhKfvD3kq_z+SKsG=5L1HMJ7Cjjbuhkz7W-NoM5NWL6pFg@mail.gmail.com>
To: Manu Sporny <msporny@digitalbazaar.com>
Cc: Michael Jones <michael_b_jones@hotmail.com>, "Multiformats@ietf.org" <Multiformats@ietf.org>, Murray Kucherawy <superuser@gmail.com>, Barry Leiba <barryleiba@computer.org>, Francesca Palombini <francesca.palombini@ericsson.com>, Roman Danyliw <rdd@cert.org>, Paul Wouters <paul.wouters@aiven.io>
Content-Type: multipart/alternative; boundary="0000000000003607b606098e8fed"
Archived-At: <https://mailarchive.ietf.org/arch/msg/multiformats/ybWrdKYROd9Nonhjf3S4kR0Yw_4>
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: Tue, 07 Nov 2023 11:49:17 -0000

po 6. 11. 2023 v 15:07 odesílatel Manu Sporny <msporny@digitalbazaar.com>
napsal:

> On Sun, Nov 5, 2023 at 5:09 PM Melvin Carvalho <melvincarvalho@gmail.com>
> wrote:
> > I would like to draw attention to potentially new information with broad
> impact, specifically regarding the proposed deprecation of publicKeyPem and
> the adoption of multiformats.
>
> This is not new information, usage of `publicKeyPem` was deprecated a
> very long time ago... none of the modern Data Integrity cryptosuites
> use it. `publicKeyPem` also /has nothing to do with Multiformats/...
> it's a W3C Data Integrity thing, not a Multiformats thing.
>
> That said, it's easy to undeprecate it... you just need to see if the
> fediverse community cares -- they rolled it out in 2018 and haven't
> really touched it since. If they want to continue using it, they have
> not made that clear, but if they do, I expect the property will be
> undeprecated.
>

An inversion.  publicKeyPem is used by over 10 million accounts.
base58check is used by over 10 million accounts.  public keys in hex are
used by millions of accounts and software.

Why is the onus on these projects to adapt to multiformats and have the
things they use deprecated.


>
> > Moreover, the adoption of multiformats has seemingly overlooked
> compatibility with prevalent key formats such as bech32, which may
> inadvertently lead to a dichotomy of 'winners and losers' in the space,
> rather than fostering inclusivity.
>
> If you want a new key format, just write a spec and register it in the
> Multiformats registry.
>

This is an inversion, the registry, if it wants to be internet-wide and
universal, should include massive deployments

Additionally, the registry becomes a gate kept single point of failure


>
> > In light of these considerations, I urge the IETF to reflect on whether
> the move towards multiformats genuinely embodies the principles of a
> universal standard or if it rather represents a narrowing of scope to
> well-established implementations.
>
> We have had push-back from the IETF community regarding the
> registration of a large number of Multiformats. Part of the desire
> here is to have IETF have a more formal change control process over
> the registry.
>

Yet, it very much is a 'sacred' set of algorithms that favour a specific
cohort.  Even in this thread, there is a tension between adding well
deployed key formats, removing existing ones, and not having too many.


>
> > It is my view that this transition may not only be premature but also
> potentially detrimental to systems that have achieved substantial network
> effect over time.  See the issue below which proposes deprecating
> publicKeyPem (in use over 10 million accounts) for very complex
> multiformats alternative.
>
> Again, the deprecation of `publicKeyPem` has nothing to do with
> Multiformats. Deprecating it does not cause the systems that are
> deployed that are using it to fail or stop working. If the fediverse
> community wants to keep the property alive, they can just say that
> they intend to keep using it and we'll put it back into the spec
> (though, I expect objections from the JOSE community if we don't
> deprecate it).
>

I'm highlighting why this is problematic.  Either make a universal internet
wide system that covers the whole space, which could go at the IETF.  Or a
specific set of algorithms that cover your use cases, for example in the
IPFS standards area.

The problem arises with the workflow of saying, "we have a modern way of
representing a key" (a good thing!).  But then someone saying, two ways of
doing something is confusing, lets get rid of one.  Now a lot of things
break.  Ive seen it time and again, two things pitched as living side by
side, but then one eating another, and a small number of stakeholders make
the decision, at the expense of millions of deployed accounts.

This is probably a bad time to ask a favour, but I'd really ask just to
leave publicKeyHex in there.  It's used all over the place, and benefits
from a stable predicate.  Hex is great because you can just copy and paste
it, and everything knows how to speak hex.  Few things know how to speak
multiformats, and require an extra step to get back the key, plus a
lookup.  publicKeyHex is in use today in a lot of places.  I'm not raising
this to be awkward, I stated my view and hoped to live side by side, but I
am hitting these issues when trying to create implementations.  The
deprecation says not to make new implementations using the terms, but to
interoperate I have to.  And if you read through the issues, there are
calls to remove the terms.

Whatever happens to multiformats, please could you consider keeping terms
that are not multiformats that are in use, instead of deprecating or
removing them, this is standard best practice across the whole of linked
data in line with "COOL URIs dont change".


>
> -- manu
>
> --
> Manu Sporny - https://www.linkedin.com/in/manusporny/
> Founder/CEO - Digital Bazaar, Inc.
> https://www.digitalbazaar.com/
>