From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 3LWEHF2BVmWgzgAAauVa8A:P1 (envelope-from ) for ; Thu, 16 Nov 2023 21:53:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 3LWEHF2BVmWgzgAAauVa8A (envelope-from ) for ; Thu, 16 Nov 2023 21:53:49 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 05D2D373F2 for ; Thu, 16 Nov 2023 21:53:49 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=flokli.de header.s=mail header.b=iPKCxVYc; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700168029; a=rsa-sha256; cv=none; b=JH13plUBGBoXpvWlSuLZ3j8LxZf/KTwOsQduR8SFUMyogpH8cMcsqz+yzjnokfOiEag2FA Dapi1yzs+0EyO7umAEXjOiEZa6OCEY/FUVdtmBZTPTX/ERSwriPg1/lx7L4k5DT1S6vIRs TIRFEans9bENPPAV/6lK9FAQqKtXpABhgRyg0BWf10VPMNWtRXUNxNbDqYY4lgitEFWs0N 6bXGZaT45EK/qedemyV48xgYfdeaSYG9tAq88HH4ou9eSnMsST9nsvqnH56fBOrUlcv3Bp l3bhUx+r9x4OvoU2wfCRqo30SfKnQV1DhTFobgLjL9tOZidmaK/Kg16aqGeHuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=flokli.de header.s=mail header.b=iPKCxVYc; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700168029; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=XPskHWACrxBCxKl5i3YNB7ZYP2KpH4FRwaeUwGNy3pQ=; b=swOyASddODms3dirN0o1qX5PtDJQ4GbkmSuYafkPPtL4uFvCsWQZ1DGuTZOUdtKpCf5Pqx iovPpGlXQ1X5EU6N/YtbQK6N/gkUcTXqqGo7qmbD++i5RlEW7Fbd2uro3HHY7ibD+t20k0 Ora3VsD9kQUBIEHg09rM7qY/s9A16zfAM2tlHI40KnhCJF9MjnOsiErybZlDNdRMFtE+64 ECNVmUI57mjDLT5NUoTJgAxhxlqnDHqHgo6EIiiUj9Z/VuPkmbiOo4mdWJC7zpZMhpw5J2 +FL2+zl7mKHawwkjb9oLHJXT+SDix/1f6Y87fCxuOKy/g+5nIrtGl9eVwxphFQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3jMG-0003SJ-Hp; Thu, 16 Nov 2023 15:53:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3jME-0003Rz-7I for guix-devel@gnu.org; Thu, 16 Nov 2023 15:53:02 -0500 Received: from mail.flokli.de ([2a01:4f8:1c1e:e12f::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3jMB-0003ym-FS; Thu, 16 Nov 2023 15:53:01 -0500 Date: Thu, 16 Nov 2023 22:52:48 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flokli.de; s=mail; t=1700167969; bh=XPskHWACrxBCxKl5i3YNB7ZYP2KpH4FRwaeUwGNy3pQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=iPKCxVYcW1ULGoPnenC/rmUPVhCpan2XRwwZ6BS43dbTgb6rzxWyzG3YnXgPlW63C 7fcpj2Tw3gJoaCRfsfIorgr8gXBZhIRUgjHbZpmYglr6125N9f/IX4RlHqENfndPoF 92MuQFssSJMqwT3tp5g41ngGKqENW4zFuf62SeA0= From: Florian Klink To: John Ericson Cc: guix-devel@gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= , Christopher Baines , Valentin Gagarin , Maxim Cournoyer Subject: Re: Ensuring daemon interop, maybe also store layer standardization? Message-ID: References: <87bkbtvigj.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Received-SPF: pass client-ip=2a01:4f8:1c1e:e12f::1; envelope-from=flokli@flokli.de; helo=mail.flokli.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 05D2D373F2 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -3.79 X-Spam-Score: -3.79 X-TUID: DjPJDgtj7jXL On 23-11-16 14:23:29, John Ericson wrote: >On Thu, Nov 16, 2023, at 10:14 AM, Ludovic Courtès wrote: >I have been talking a lot to Florian about these things too. Long ago I >emailed Ludo and some others about the IPFS & Nix work. Since then RFC >133 was accepted, >https://github.com/NixOS/rfcs/blob/master/rfcs/0133-git-hashing.md, >which prepares the way for a lot of that, and more recently >https://github.com/NixOS/nix/pull/9294 (merged) has begun the >implementation. > >It sounds like this ERIS plan and Tvix's content addressing are fairly >similar --- use improved content addressing "underneath the hood". The >thing I have been working on is trying to expose content-addressing all >the way into the store path for end-to-end trustlessless. tvix-castore uses /only/ the BLAKE3 digest, and thanks to its verified streaming properties, chunking parameters etc don't "bleed" into the to-be-signed datastructure (and its content hash), but can be delivered (and verified) out-of-band, without having to fetch the entire data. That's also one of the main reasons as to why Iroh (The IPFS Rust "Rewrite") entirely ditched IPLD and all other hash functions in favor of raw blake3-hashed blobs [1]), and why they, S5 [2] and Tvix uses them to address blobs. Among these projects, there's different areas of priority and focus, but strictly speaking, they're all just different transport protocols for the same identifier (blake3 digests of raw contents) and could interop with each other. For file system structures, tvix-castore also defines an encoding similar to git trees, but using the blake3 digest of (a slightly more sane) serialization as an identifier. ERIS defines its own addressing scheme, using "ERIS capability URNs", and in addition to the contents, chunksize (two modes) and convergence secret make up the identifier. Internally, it constructs its own Merkle Tree using ChaCha20 and Blake2b-256. https://issues.guix.gnu.org/52555 uses it with the larger chunk size and a null convergence secret. >I think for build artifacts, either way is fine. But for source code >the end-to-end trustlessness is nice for treating things like Software >Heritage as a substituter of last resort. (I made >https://docs.softwareheritage.org/devel/swh-web/uri-scheme-api.html#get--api-1-raw-(swhid)- >forto spit out raw git objects for >https://blog.obsidian.systems/software-heritage-bridge/, but the >pipelining latency issues mean something like SWH's "Vault API" is >probably better.) I hope some day SWH will also support looking up blobs not just by their SWHID (which is just using a lot of lipstick to describe how git encodes blobs), but also by these nice new hash functions of the raw contents, which would allow SWH to be plugged as a "last resort" source directly- without having to keep carrying along and calculating additional git-based hashes / SWHIDs to prepare for the eventuality of having to reach out to there. >That's a big wall of text, but glad it's all out there. Stuff is really >cooking in all our ecosystems these days, and I'm very excited for >where things are going! Definitely! -- flokli [1]: https://github.com/n0-computer/iroh/discussions/707 [2]: https://github.com/n0-computer/iroh/discussions/709