Re: [Multiformats] Regarding the multibase and multihash drafts

Manu Sporny <msporny@digitalbazaar.com> Mon, 10 April 2023 13:16 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 7CD6AC1526F4 for <multiformats@ietfa.amsl.com>; Mon, 10 Apr 2023 06:16:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 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_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=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 yTgF1d_F-x1m for <multiformats@ietfa.amsl.com>; Mon, 10 Apr 2023 06:16:06 -0700 (PDT)
Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) (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 5F134C1522DD for <multiformats@ietf.org>; Mon, 10 Apr 2023 06:16:03 -0700 (PDT)
Received: by mail-il1-x133.google.com with SMTP id j12so2922408ilf.2 for <multiformats@ietf.org>; Mon, 10 Apr 2023 06:16:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digitalbazaar.com; s=google; t=1681132562; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=8rQRGIbDxT+OemALDavgP5cteM4BUZXu1oJ8ORlhu18=; b=rVGU/qNisGyKmGLkIfatI7yRoG/66YhtzvFYLmlOWLaRbJLPiXmfLNdgkCyGxfGx4a bsAfmVOqMtSkWinJ3y20+bl4GvWRyRqvEZGf90lRfomBcqB4FkvGvUMv+fiVqx8J0Qif lOkM6K8iW9xdfA2acgkbHafpiE2OB6Rkq9oogmAxZgNGqB4W0DqmfmRm8AY0juOKnviQ iNAagAe/wSymG6nCDahFXNu6AP6F03MyfNhnK8V5dIu5OO8054tNIr8bVrB6LyrZy398 euumAxmHwd5cZmO3/r4v94szs6vRPwG06DMNP9Orr3MM5ZJbX8aT9XjhSjHFEZLdodTr kd8Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681132562; h=content-transfer-encoding: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=8rQRGIbDxT+OemALDavgP5cteM4BUZXu1oJ8ORlhu18=; b=0eCJC15YHi2PRQiQK8sztUeJI7E+KxC+VFwG440Jk38gpnJ0BqnfNjXcPTP0sR+GmA jo1Vp8rXu+S2yJZT+/vl/50HqjbHu0nb5U9bq/07n55KRgh7UJZhnOW936T89ow6PCYv HdfRqi4fqq91PBv5u4nK/a2pYyglAqgnHOUpZwQHSc2+pqpaUMxzd87s+zaFUhQHtB5z s7FcLqxS2FljtZGMfm+dc1fHW6OEe3QrPP+an8uXMKTaCYdzgxh/AJJo+ujqxTdbtErS uF/1U7pzywm41O351IeFL8QWP8SP84XEHfUB6UiLJqI+U6jz6f3HHiAUyArn1D/LQ/Y5 gYSg==
X-Gm-Message-State: AAQBX9f5iDrGRmiwyg0J3PMmOj6tJzBy2wM3xV0yPrymNjORBKvh1/vS vkDTyYLEdkn3z0gTh1YpDmNV0bER0v105f1DZQDksiSoxXp0kVNiOl7GqQ==
X-Google-Smtp-Source: AKy350a32tjUHVKYUj8vO3T4BNrespY5oB9qjQfuD9ptkNTZxABk8GW6SyoZXtP8048MapF24wSxQ61fWERSltRNuWs=
X-Received: by 2002:a05:6e02:11a8:b0:326:34d7:5d68 with SMTP id 8-20020a056e0211a800b0032634d75d68mr5931786ilj.4.1681132562053; Mon, 10 Apr 2023 06:16:02 -0700 (PDT)
MIME-Version: 1.0
References: <6f7644e98cce4a289e19e7e0b6b0a452@huawei.com>
In-Reply-To: <6f7644e98cce4a289e19e7e0b6b0a452@huawei.com>
From: Manu Sporny <msporny@digitalbazaar.com>
Date: Mon, 10 Apr 2023 09:15:00 -0400
Message-ID: <CAMBN2CRcT-LTxDFRkG_xaLdNHG+OCuwsBOaNzHtPab7mgWt8uA@mail.gmail.com>
To: multiformats@ietf.org
Cc: "draft-multiformats-multihash@ietf.org" <draft-multiformats-multihash@ietf.org>, pengshuping@huawei.com
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/multiformats/4HVGwuQoEYrFRCtqIxadvE1LPAA>
Subject: Re: [Multiformats] Regarding the multibase and multihash drafts
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 13:16:10 -0000

On Mon, Mar 20, 2023 at 4:11 AM Pengshuping (Peng Shuping)
<pengshuping@huawei.com> wrote:
> I read through your drafts on multibase and multhash. I got a few questions and comments.
>
> 1.      Both drafts are Informational. Do you intend to put them as in the Informational track? Since it requires the IANA registries, should it be in the Standards track?

The outcome of the Multiformats dispatch discussion was to determine
if an ISE path, or a mini-WG path, is best. The emails over the next
couple of weeks will determine the path that the group will take. I
will note that there was some disagreement on whether or not the ISE
path could establish a registry, which is largely what the
Multiformats specifications are about.

We'll see if we can get a firm response to that question over the next
couple of weeks.

> 2.      “Given data 'd' encoded into text 's', what base is it encoded with?”. You are talking about encoding bytes into text, but here you use ‘d’, what are the bytes ‘d’ is corresponding to?

'd' refers to any arbitrary bytes. The base that the text is encoded
with is expressed as a Multibase value at the beginning of string 's'.

>  The example would be better to show using different base-encodings the same bytes could result in the same text, right? That could give your work much stronger motivation.

There are a number of examples in the specification today that show a
single value being expressed in different base encodings here:

https://www.ietf.org/archive/id/draft-multiformats-multibase-07.html#name-test-values

... but what I believe what you're asking for is an example in the
introduction of the specification to demonstrate why having a header
in string 's' is desirable. Without that header, you won't know what
base encoding the string should use. Did I understand your request
correctly?

> 3.      In the multihash draft, the “avoiding” part of this sentence could be removed. :p “This vastly simplifies the upgrade process, avoiding the waste of hundreds or thousands of software engineering hours, deep frustrations, and high blood pressure.”

While I believe the grammar in that sentence is correct, I'll try to
simplify it so that it conveys the point in a better way. The sentence
is a bit hyperbolic, and so clearly articulating the benefits might be
more appropriate.

I've raised your concerns as an issue on the repository here:

https://github.com/w3c-ccg/multibase/issues/3

-- 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/