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

Robin Berjon <robin@berjon.com> Mon, 21 August 2023 12:39 UTC

Return-Path: <robin@berjon.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 58EBEC1516EB for <multiformats@ietfa.amsl.com>; Mon, 21 Aug 2023 05:39:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.694
X-Spam-Level:
X-Spam-Status: No, score=-2.694 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.091, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=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=messagingengine.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 fNCjkyckQOvG for <multiformats@ietfa.amsl.com>; Mon, 21 Aug 2023 05:39:54 -0700 (PDT)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 AF491C15171F for <multiformats@ietf.org>; Mon, 21 Aug 2023 05:39:54 -0700 (PDT)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 9C7485C2717; Mon, 21 Aug 2023 08:39:49 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 21 Aug 2023 08:39:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1692621589; x=1692707989; bh=nyDLx/jV3d+KbPe2tEQImGF70ON5cOOdyHt RzOw+bJg=; b=EEpGXhKpDniLDIEIh2f9YojraexRSQmb6dNsNAnvE8KY5Y1xXlX W0X8/iFbZTLA8xv2+iuw8xC8ez+gjTlQ8aDeeaFO12oTzpho3JmMdy/uhUS3VgOo GanneuPtJIGmU8lmflQ4ilOWDRRP8mDf7v1aJ0E0tQm+d8LKkipQoxYYcUupSRGu KDCXh779o34XakhluOvn8NPjV/cwaXK/HAOta/Q22W0OEcOSCnLN1TElyRRLC+Mu yfMwZZ3M5RP0AmHwN2FVHUjB5mAEqZlPwd9q9dyWF2GS9pLXa0DD+DnbJisDtxXR t2QNKtfA7y9faHWJAT/8BYhHE/SCaloT9lA==
X-ME-Sender: <xms:FVvjZJ8PQ-62CSwnRLinHnHnhJSlVazUlFzgdNU4lAuekxKfK23Yzw> <xme:FVvjZNucIENpJqfGY1tMrtnc5VUvQ4HjUsBjGTo2tviWbZQXNiDrI8RgtAeJYr_wC M17juJTkgKEYQ>
X-ME-Received: <xmr:FVvjZHDjE12oieTcQOYqWlNPzcs8jNHujDi_KPADXgMq187xZ6IECi-2Jl_ekxWS2ogrupU-7YbjPB8J3qhqDl0WYrp16H66NchGcNjIkiyrbq8o>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudduledgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftohgs ihhnuceuvghrjhhonhcuoehrohgsihhnsegsvghrjhhonhdrtghomheqnecuggftrfgrth htvghrnhepleffgfdtveefudffkedugedtleelveelgfeiveegveeujefffffgjefgffeh hfdtnecuffhomhgrihhnpehiphhfshdrthgvtghhpdgsvghrjhhonhdrtghomhdpmhgrsh htohguohhnrdhsohgtihgrlhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehrohgsihhnsegsvghrjhhonhdrtghomh
X-ME-Proxy: <xmx:FVvjZNfi8Y-clAEJBr1BciQriP6UsX1EQH4WdsOQ_Di8CP_iS6dbcA> <xmx:FVvjZOODQmh-QgMRVAvWZhnIB6E4S4tJhOrenHsUsDKvY33Ub2tvzg> <xmx:FVvjZPm1-hagNWM4PTyfbZMv5P3REdQ39c2B2Y4Y6mz_pMWh1N2BCw> <xmx:FVvjZIX-T_H9TmmrfHFCQexu6Fkcwbb8JWKaodhT0cu3bFoA8JhdNw>
Feedback-ID: i38c44178:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 21 Aug 2023 08:39:48 -0400 (EDT)
Message-ID: <b4172acb-1e08-d29c-9cd8-226a73fb7d01@berjon.com>
Date: Mon, 21 Aug 2023 14:39:46 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0
To: Manu Sporny <msporny@digitalbazaar.com>, Melvin Carvalho <melvincarvalho@gmail.com>
Cc: multiformats@ietf.org
References: <CAMBN2CRDN9ft+youRagbFMypD8_z4tMn49DHzBNsR66ZgGxBkA@mail.gmail.com> <CAKaEYhLMAEd_4oyA-ahuCtB501weT3RCMAMCaq74SnVTQjNAWg@mail.gmail.com> <CAMBN2CS__7r73EdsSC4Yjfho+HQKkcGextOxsyT4M60Bioq83A@mail.gmail.com>
Content-Language: en-US
From: Robin Berjon <robin@berjon.com>
In-Reply-To: <CAMBN2CS__7r73EdsSC4Yjfho+HQKkcGextOxsyT4M60Bioq83A@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/multiformats/O0RlWgcoIhFUZXiQO1lJTI3aJJo>
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 12:39:59 -0000

On 20/08/2023 17:23, Manu Sporny wrote:
> On Sun, Aug 20, 2023 at 10:57 AM Melvin Carvalho
> <melvincarvalho@gmail.com> wrote:
>> 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:
> 
> 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.

-- 
Robin Berjon (he/him)
Governance & Standards at Protocol Labs
https://berjon.com/ - https://mastodon.social/@robin