[Multiformats] IETF 116 Dispatch Multiformats: Responses to Harald Alvestrand

Manu Sporny <msporny@digitalbazaar.com> Mon, 10 April 2023 15:31 UTC

Return-Path: <msporny@digitalbazaar.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 935D2C15155E for <multiformats@ietfa.amsl.com>; Mon, 10 Apr 2023 08:31:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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=digitalbazaar.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 fVtqI6RH62lz for <multiformats@ietfa.amsl.com>; Mon, 10 Apr 2023 08:31:38 -0700 (PDT)
Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) (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 5BA8FC1516FF for <multiformats@ietf.org>; Mon, 10 Apr 2023 08:31:38 -0700 (PDT)
Received: by mail-il1-x132.google.com with SMTP id k7so13141531ils.3 for <multiformats@ietf.org>; Mon, 10 Apr 2023 08:31:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digitalbazaar.com; s=google; t=1681140697; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=tk6t8ju0xHXzKwkytNIW78nQoxCttIc6YsnebEnh8O8=; b=Yb1O9NqHWLIUMi6vi7EC238tJhKWD4Dx9n29Mob52AW//irli9AHMp/6ukECOUygud I89YlO3bfh1nAA82KibwmCaQ+v5pqqo1L2xQg0NpyplI6s9gtimCftIxYJTI7kJkVsMB Yx8ZVNpUwvrCMQMMuAJ0gNBe0nXlBtqVbYrFqhShotbqYSs8493vEoZNprQQMf9m18TJ mvGLqo1fnzDpoRz8SyL6GkKgaMUmKJa12fO1DTQZbViw2Ifhuw4fX0hImaa3C4WzzpLe L0rdC8xqoj9M0XDwQ9Mr1OYpXImlYlHSJTayTMARjK0XXT06utOuzy/XjN3FhEFLRwyP LsIQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681140697; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tk6t8ju0xHXzKwkytNIW78nQoxCttIc6YsnebEnh8O8=; b=nL2qke/LqKA/FCWTOQRSYmotOxmAB+3xzzV72B7FB17j7LVSeuae8axX/e8gu8jXLw Fj4knoyYKF6TBxjrGgahrJUEEOBqbRm2PuGlzVpnMl84tZdAmTjnTVY57G06XxLEi//G Q3SsrtDpGaDJce5AQwViYrpYFj4C8UK2I5ZL+YgGKnIPtMZsMnbQFuakfS7LiXVy5Fdn 3PmHplG1T/pjNFlT9GIDkBUpL1qwT+5W2U9C4JsuEE0bDWlmm6LM3ydMv+QJETMQiEkV +hKSmjuoI6dyQXrgWECszCdCPtgdof9sAzYBZ80rycrJbaNT8Ogugrs8IzQnOoyBB7DT I6vg==
X-Gm-Message-State: AAQBX9d+k8aA91HQP2zKW85wVGzvBEZGclPlDS5Zi3C7+lv1kfhuth4C 8j1HCzdG1xKRk0Q4uyeyOBlzjfkw0lUHufzo5kTZcGrzvg20410NfqkQxw==
X-Google-Smtp-Source: AKy350bUTH11dw1zOcGUPVNmiqd1WRid2v3sFvMj4gMYTQKNTN96z6BExXU06Dfn9pZfn6rUkrC0GNF9tWz6xi42ebA=
X-Received: by 2002:a05:6e02:156a:b0:326:1cd6:e71d with SMTP id k10-20020a056e02156a00b003261cd6e71dmr6134743ilu.4.1681140694273; Mon, 10 Apr 2023 08:31:34 -0700 (PDT)
MIME-Version: 1.0
From: Manu Sporny <msporny@digitalbazaar.com>
Date: Mon, 10 Apr 2023 11:30:58 -0400
Message-ID: <CAMBN2CTJHSVsS=jxLtN2xS_pgs6GJ4VhTZM=UMCijxiYvJWyZQ@mail.gmail.com>
To: multiformats@ietf.org
Cc: Harald Alvestrand <harald@alvestrand.no>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/multiformats/8xGsAAdXspPIebVzJgJMwG_5wOE>
Subject: [Multiformats] IETF 116 Dispatch Multiformats: Responses to Harald Alvestrand
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: Mon, 10 Apr 2023 15:31:42 -0000

Harald Alvestrand said:
> Multiformats are just a little part of a system, so it's hard to evaluate

Yes, this is true. Multiformats are used in application data formats
and so analyzing them without understanding how they fit into the
bigger picture can be challenging. An analogy for similar IETF work
would be RFC6920 "Naming Things with Hashes" or
draft-ietf-httpbis-digest-headers "Content-Digest", which are used in
application protocols.

That said, Multiformats are being used in the IPFS community (in their
data formats and protocols), as well as in W3C specifications (in data
models and protocols). Some examples of usage are here:

https://www.w3.org/TR/vc-data-integrity/#multikey
https://docs.ipfs.tech/concepts/content-addressing/#what-is-a-cid

> Registration registers keys in a very small space

As mentioned during Dispatch, this was a miscommunication around the
registration space for Multiformats. All Multiformats use a
variable-length integer, encoded as a varint, making the universal
namespace for types theoretically unlimited (in practice, for security
reasons, implementations limit the varint length to 9 bytes; 63 bits
of value space).

This means that lower numbers in the table can be expressed as a
single byte, whereas larger numbers in the table might need more than
one byte to be represented. The total size of the Multiformats
namespace is 9,223,372,036,854,775,807 multiformat types.

So, while registration procedures are needed, they don't need to be
overbearing since the value space is probably more than we'll ever
need (at least, for the next century or so).

> All usages cited are W3C-related, one option is to do this at W3C
> It's not clear if IETF work needs Multiformats

We've had a few discussions with Roberto and Lucas in the HTTP WG
around the use of Multibase and Multihash in the Content-Digest header
(draft-ietf-httpbis-digest-headers). Our company also uses
Multiformats to refer to public key information in the HTTP Message
Signatures specification. There is some overlap with IETF work, though
it's minor at this point in time.

We had considered going W3C with these specifications, but "spinning
up a light weight WG" is not something that W3C does.

We did also consider just creating a registry at W3C through the W3C
Verifiable Credentials WG, but it was suggested that since this is a
much more "low level" specification, that it belongs more at IETF than
it does W3C.

All this to say, we could create and maintain a registry for this
stuff at W3C, but many of the community participants felt that the
work aligned more with an IETF RFC than it would a W3C REC or
Registry.

I hope that answers your concerns, Harald, and if not, happy to try
and provide more insight if something was left unanswered.

-- manu

-- 
Manu Sporny - https://www.linkedin.com/in/manusporny/
Founder/CEO - Digital Bazaar, Inc.
News: Digital Bazaar Announces New Case Studies (2021)
https://www.digitalbazaar.com/