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

Melvin Carvalho <melvincarvalho@gmail.com> Tue, 05 September 2023 18:13 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 7DCE7C15198D for <multiformats@ietfa.amsl.com>; Tue, 5 Sep 2023 11:13:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.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_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 KO2lBHJLc3cu for <multiformats@ietfa.amsl.com>; Tue, 5 Sep 2023 11:13:11 -0700 (PDT)
Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) (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 6BA56C15198C for <multiformats@ietf.org>; Tue, 5 Sep 2023 11:13:11 -0700 (PDT)
Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-6bcae8c4072so1806714a34.1 for <multiformats@ietf.org>; Tue, 05 Sep 2023 11:13:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693937590; x=1694542390; 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=+kabKXQlqnW5oBY0+Y2r8WBrGzNyvZGeoRo1MNmhnYQ=; b=lWiUqvocgD/MqZSun8BEn12dKaYyVzra/wL5K3P1a5uB97CkOvYigrsWjasB++5q0U 2/K20Tp1BF41p6g2j6Up+OHlUeg9A88+6ZcJOE155LOyVbSmCwzSaYAU7ZWxIn98sSs7 d7Y6CSP+xJgohSVsQQRCgmPcAcoZTVyk7+zhPr1ua8MVcF9MTOF91BQkT/YGrMP/AaC9 9JXWQnh5pM46rEdvFVsDRU/qY3Lfsp/VCPtSms+o3FriXzho8XJIy6WncDsSimvlDX5h PdaLnk9Uz5PUd1Oga1TffY//fM7ASvuuZUJZBUbLpLI/D5Uz3ZB/rYpGOHaymCTx+9Ms j8bQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693937590; x=1694542390; 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=+kabKXQlqnW5oBY0+Y2r8WBrGzNyvZGeoRo1MNmhnYQ=; b=ehD4obCwlaRmQrPbsUDemG+6bGCdCFvp2JbLyjGrkGttgrT5UcEoAT5mrhF5snWHGW DZVcWJVjY47QUu8aKIDYXkQ8OeYmxVPLSwUY8XO8gEqrLil4dq4Omf1hd4c1/s6Y+zwg TZ5pm3cTeNwtpYYb1IH0/Z4WR03mBTTB7CdTqlNJCtVXsktNjVuDJRQibrCA1gm4BLN8 odEMyAtuA/Ox2OwTi6tUapumvNDFrM2Mk3WZp+5uN5Ncy6qwqrrn/ZaOMj43TITY5+rl 9+FHlI1Tzzya7P+QJ9hqmF45SwM8iHQ8jJ9TakpLwVns+susbB2fDxELwJhteeiX4mih J6Ag==
X-Gm-Message-State: AOJu0YybBzBRteMmICH7/yAOVRZgQJXtXvJ15cJZ0C8rBKCr6VBWCdeU sTalNZZ+LuhtVPBjEuZw9xGnrO3ZmeeieP1thNbNHuMI7pU=
X-Google-Smtp-Source: AGHT+IGwcZj14xurts+jzSCDwnVc/jFHBGmpDMW7d27iME2zSf/feP1Zydj9hy55/Fmc5eKA7IvsGSB7ZAHcM34XgIQ=
X-Received: by 2002:a05:6358:4319:b0:12b:e47a:8191 with SMTP id r25-20020a056358431900b0012be47a8191mr611539rwc.16.1693937590470; Tue, 05 Sep 2023 11:13:10 -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>
In-Reply-To: <CAMBN2CS__7r73EdsSC4Yjfho+HQKkcGextOxsyT4M60Bioq83A@mail.gmail.com>
From: Melvin Carvalho <melvincarvalho@gmail.com>
Date: Tue, 05 Sep 2023 20:12:58 +0200
Message-ID: <CAKaEYhL6VV10G35AjRLASMoqvQOQY=QwNAB_6auXhpEfMPha-g@mail.gmail.com>
To: Manu Sporny <msporny@digitalbazaar.com>
Cc: multiformats@ietf.org
Content-Type: multipart/alternative; boundary="0000000000005a0e090604a0944b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/multiformats/QNYWcDYecWf-qfslavnAhmtBZ_w>
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: Tue, 05 Sep 2023 18:13:15 -0000

ne 20. 8. 2023 v 17:24 odesílatel Manu Sporny <msporny@digitalbazaar.com>
napsal:

> On Sun, Aug 20, 2023 at 10:57 AM Melvin Carvalho
> <melvincarvalho@gmail.com> wrote:
> > Is it back compat (ie using the same string of characters) with the
> widely used CID format?
>
> The short answer is "yes, almost certainly".
>
> If by "widely used CID format", you mean the Multicodec headers 0x01,
> 0x02 and 0x03, then yes, nothing in these specifications prevent the
> usage of those headers in a Multibase-encoded value and the Multihash
> value headers don't conflict with the CID value headers.
>
> However...
>
> > Can I turn a CID into a URI and what would that look like?
> >
> > mh://<cid>
> >
> > ni://mh/<cid>
> >
> > Something like this?
>
> No, because CIDs are not file hashes, so you can't just use Multihash for
> them:
>

I believe using a CID as an identifier is crucial, given its wide
deployment and the need for character-to-character comparison. I had
anticipated that this group would address this. How can we incorporate a
CID into a URI? Does the spec not cover this, necessitating a new URI
scheme? Implementing another scheme might seem redundant, but if needed, we
can explore it. There seems great utility in reusing the widely deployed
CID format can be seamlessly integrated into a URI while maintaining its
character integrity.


>
>
> https://docs.ipfs.tech/concepts/content-addressing/#cids-are-not-file-hashes
>
> IOW, nothing we're doing here precludes encoding a CID in a Multibase
> value... but CIDs (all versions of them) contain more information than
> just the content hash itself (which is all Multihash encodes). We are
> not standardizing CIDs at this point in time, but we're not precluding
> their usage or future standardization, either.
>
> -- manu
>
> --
> Manu Sporny - https://www.linkedin.com/in/manusporny/
> Founder/CEO - Digital Bazaar, Inc.
> https://www.digitalbazaar.com/
>