Re: [Multiformats] New versions of Multibase and Multihash published

Manu Sporny <msporny@digitalbazaar.com> Mon, 21 August 2023 13:07 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 EFFA8C1519A2 for <multiformats@ietfa.amsl.com>; Mon, 21 Aug 2023 06:07:24 -0700 (PDT)
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, 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=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 xHCQ4HsLhXbM for <multiformats@ietfa.amsl.com>; Mon, 21 Aug 2023 06:07:20 -0700 (PDT)
Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) (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 96727C1519A1 for <multiformats@ietf.org>; Mon, 21 Aug 2023 06:07:20 -0700 (PDT)
Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6bcb5df95c5so2710528a34.1 for <multiformats@ietf.org>; Mon, 21 Aug 2023 06:07:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digitalbazaar.com; s=google; t=1692623239; x=1693228039; 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=P1RdWr2LddNBiRHdH+CY6eJefx1t5h9fbogKCRhmjlk=; b=Bt+KvFYhpKX8LAnA3Mo88pDrJqbVI8U+MAWWeVDnEyJd0ziHVk866liHTJh+sIYk3V pnru8cXC3bZvOe8lRuiIFTQz1rd5Xfxvlm/MXBsaKSmo6a5+m3VqyD93/ZnGa62OYalF DgTDLM0WeWS9DNMhOPz3nXPPcWG9TOkSO9KoLGi6dLmjZSpFuXuXf1vh0DV3yFaZ1p2U cv0Ut7yTAKeUkJH8XFzntGWyK3GiG54UJV9Oct8ii13dOZlms302YAwoCwECig8nvps7 wQCh0H3+2+G0t1VPOhaYfPy22MDvqfbM2xiSe6TlATxQRkHvnQP6UWDHHUvU3PGGSbeq 4gEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692623239; x=1693228039; 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=P1RdWr2LddNBiRHdH+CY6eJefx1t5h9fbogKCRhmjlk=; b=RHTI5Gml0QcDPQl5aUck5ssPsYzPJhwl4Lz6O2dF+MqRLHfTQnp5vKPyKmitVcyKr2 iuLP1DowOxXJzwyoJMlQDC94gw5/KPXG+b1yvsD84UURVY7D9OwJFf4aVCCD4mSzs+Jt AhvjsFhrr2f3aQE9/e8YE3DdKdi49xbeWNfAGMjGwS50ycGyMx0bFBf7kG8pxkqOXJJD Yr8TJz3fZkl0TSDHufIDUU1AXENubWiBTmLGYNynOKUC0HV5FLrc4yzvuPr73nNJqzKg LAoEVn+ECbD9e+8+WCHeCTcA6IvFUSJV6Q5Sn97cnzyafr19PqGnb9DA2xzw7kzLwtJN AC9Q==
X-Gm-Message-State: AOJu0YwFCpuU/4NKfXb+aufR3H4+gbpbJ0FCzJd7HsBe5Rl6VMz7Kgu6 RQCo8pubIcOaelVDXbWke4CzU64G1S9X7gXWBjCcy/rj2kBLjqudZXVm8g==
X-Google-Smtp-Source: AGHT+IGbqBCDG1VkeSZgFFxs506EBXInmRusDje4h+i0/mGFnVvjGPlTZU80+65Az3nVGn3QxH8Wt1isp1y0yjVkEyU=
X-Received: by 2002:a05:6358:880a:b0:12b:e45b:3fac with SMTP id hv10-20020a056358880a00b0012be45b3facmr4670132rwb.32.1692623238877; Mon, 21 Aug 2023 06:07:18 -0700 (PDT)
MIME-Version: 1.0
References: <CAMBN2CRDN9ft+youRagbFMypD8_z4tMn49DHzBNsR66ZgGxBkA@mail.gmail.com> <CAKaEYhLMAEd_4oyA-ahuCtB501weT3RCMAMCaq74SnVTQjNAWg@mail.gmail.com> <CAMBN2CS__7r73EdsSC4Yjfho+HQKkcGextOxsyT4M60Bioq83A@mail.gmail.com> <b4172acb-1e08-d29c-9cd8-226a73fb7d01@berjon.com>
In-Reply-To: <b4172acb-1e08-d29c-9cd8-226a73fb7d01@berjon.com>
From: Manu Sporny <msporny@digitalbazaar.com>
Date: Mon, 21 Aug 2023 09:06:43 -0400
Message-ID: <CAMBN2CT6z9Hz_C8Xb63pU6tCVVrz6FL8rfLWt-AKQ1o_DxHR3w@mail.gmail.com>
To: multiformats@ietf.org
Cc: Melvin Carvalho <melvincarvalho@gmail.com>, Robin Berjon <robin@berjon.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/multiformats/zJdUkiLmzdOBNXtg4JqpIi9_d3U>
Subject: Re: [Multiformats] New versions of Multibase and Multihash published
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, 21 Aug 2023 13:07:25 -0000

On Mon, Aug 21, 2023 at 8:39 AM Robin Berjon <robin@berjon.com> wrote:
> > No, because CIDs are not file hashes, so you can't just use Multihash for them:
> >
> > https://docs.ipfs.tech/concepts/content-addressing/#cids-are-not-file-hashes
>
> I'm not sure how you reach that conclusion? You can put a CID in a URL
> and the scheme will determine how it gets resolved. What that looks like
> really depends on what you're trying to achieve.

All of the examples Melvin provided were specific to file hashes...
the "mh" and "ni" schemes don't just work with any multicodec value,
they are expected to be used with raw file hash values.

I can see the argument for "CIDs are just another type of content
identifier that is based on a cryptographic hash -- therefore, they
should be recognized by the mh and ni schemes", and that is /an/
argument. It's a weak one, IMHO... a stretch, especially since CID
v1-v3 are not identified as multihash values in the Multicodec
registry. IPFS' own documentation is pretty clear on the matter that
"CIDs are not file hashes".

All that said, I don't have a strong opinion on the matter... just
noting that eyebrows will raise if folks put CIDs into Multihash w/o
some soul searching in the IPFS community. :)

-- manu

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