From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CMAPMgH0wmPEBQAAbAwnHQ (envelope-from ) for ; Sat, 14 Jan 2023 19:27:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2K8TMgH0wmNmIgEA9RJhRA (envelope-from ) for ; Sat, 14 Jan 2023 19:27:13 +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 757B9B2AE for ; Sat, 14 Jan 2023 19:27:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGlF9-0005pZ-Vt; Sat, 14 Jan 2023 13:27: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 1pGlF8-0005p1-2E for guix-patches@gnu.org; Sat, 14 Jan 2023 13:27:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pGlF7-0001zv-QP for guix-patches@gnu.org; Sat, 14 Jan 2023 13:27:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pGlF7-0005OP-Lw for guix-patches@gnu.org; Sat, 14 Jan 2023 13:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52555] [RFC PATCH 0/3] Decentralized substitute distribution with ERIS Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 14 Jan 2023 18:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52555 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: pukkamustard Cc: 52555@debbugs.gnu.org Received: via spool by 52555-submit@debbugs.gnu.org id=B52555.167372077120659 (code B ref 52555); Sat, 14 Jan 2023 18:27:01 +0000 Received: (at 52555) by debbugs.gnu.org; 14 Jan 2023 18:26:11 +0000 Received: from localhost ([127.0.0.1]:55531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGlEI-0005N8-NF for submit@debbugs.gnu.org; Sat, 14 Jan 2023 13:26:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGlEE-0005Me-Cr for 52555@debbugs.gnu.org; Sat, 14 Jan 2023 13:26:09 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGlE9-0001qw-0a; Sat, 14 Jan 2023 13:26:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=zYjSHtRsxQaHRCNBkbGah8MwEBTslaYTSAhJ/2esans=; b=N238R9P0yzhXmky1tbIE tx0XYdZ6CVNWZFZbMYXaZEAgy69GzdjrscALUmFGL1KA9RgiExbmxYGeeZGfOppm5p/LU1dRTgcX+ Etm2xGKjoY+dFPWNVNG8foimz0KsrJxG7aaKVvCxpmdisTr8/meH+ltBN65WOIMFOIXTEz9KrWjB4 KdtvCDXH6dJrimgASk8GQbViEiPd7AV5lgxGFDGjnDJPg5XtY52bLqE5cQf9LQ5Dggqt1nD/jjhdg O/+3+pstcqHV3TOPEXnEi/jAW3RIYNpoLWskIRVQIqGiDud+t3mAyf3j5bBeYE1TYuvm/DIr702Je P3Y/7sYPNk35Ag==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGlE8-0004DV-Cn; Sat, 14 Jan 2023 13:26:00 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20211216161724.547-1-pukkamustard@posteo.net> <20221229181327.758-1-pukkamustard@posteo.net> Date: Sat, 14 Jan 2023 19:25:57 +0100 In-Reply-To: <20221229181327.758-1-pukkamustard@posteo.net> (pukkamustard@posteo.net's message of "Thu, 29 Dec 2022 18:13:19 +0000") Message-ID: <87bkn17z2i.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=N238R9P0; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673720833; a=rsa-sha256; cv=none; b=r7LUwbhpD7jLHCWe6c5PDsw5FrMw1E9RKrHxbDNn5pILuL1FuFpO9O7MJ873uWBLx2ohSp c5Gig+5/D+toGExZ1QOS3J+qs+XefUfD2ke0QRKXJ0GPvnBP/a4H+icXrTa0JCA6VtqZc+ FqAJHDlLcFcJ33kALSvMsEUwb6MzHxJuzQprCq/CjxwAH3V7U6GRhWVcGv697/9R4WZ0TC qBlDA6DTiUuvjYSDlq55YZLxPGZpHEyLeBVYVG5fL3zVnsh71HtjflwseYMal54qfGNVSo TX9zgpo0JF4jLMMw6SCxeCy93Nt8JM/aJNMWDyMIOVFUhDc4k2BDjjd9E4ekNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673720833; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zYjSHtRsxQaHRCNBkbGah8MwEBTslaYTSAhJ/2esans=; b=cStjOE16S3wyIGMbpX0tEyOlRScPpNP1S2XjjhVZIZ3fLTbpdzsGgU9bugY/qFZcPqriAL 9o5Vy4Oj957U1+cVa+eHdJCPgHDzS435Mr77yQfO7YzLm8Udk46CUQewx/dgfJDIyAEwfR 6hUNSv8xSpEaqYutmyLawFS1Y8JXSyJIpzuStDqfQwEa/884zXUDqkcYVxiSm+hfGlx+FI MF4cJNyLw4Mu2kVdRekVLduKH8NMLDvTYyMu/2vaawVZIGqPY/7WO8Uyc2fuRf86zbi6f9 JWYXVg1+TkNGBGaH69ykYD+ADmaRz8rctT6vST1TlPDxA78c23tPml3eYVqaXw== X-Migadu-Queue-Id: 757B9B2AE X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=N238R9P0; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Spam-Score: -4.01 X-Spam-Score: -4.01 X-TUID: +butqOq+Uovk Hello! pukkamustard skribis: > I'm very happy to present a V3 of a proposal towards decentralizing subst= itute > distribution with ERIS. An initial version [1] and a V2 [2] are now almos= t a > years old! Woohoo! =F0=9F=91=8D > The idea is to use ERIS (Encoding for Robust Immutable Storage) [3] to al= low > more decentralized substitute distribution. ERIS defines an encoding of > content into uniformly sized, encrypted and content-addressed blocks > (32KiB). The content can be decoded from the blocks given a short identif= ier > called the read capability. It allows a network-optimized form of > content-addressing. > > Blocks can be transported over many different transport protocols, such as > HTTP, CoAP, GNUnet, IPFS or a SD card sent via pigeons. Only the read > capability must be transmited securely. Given an authentic read capabilit= y, > the content can be decoded correctly from blocks that might have been > transported over unreliable (and untrusted) protocols. Neat! (Do we have an implementation yet for SD-cards-over-pigeons?) > For Guix, substitutes (Nar files) are encoded using ERIS and the read > capability is added to the signed Narinfos. The read capability published= in > the Narinfo can then be used to decode the Nar from blocks that are fetch= ed > from many peers over many different protocols. > > This version of the patches allows blocks to be fetched over HTTP and IPF= S. Nice. > A summary of this patch series: > > - Use the stable version of the ERIS encoding (version 1.0.0) > - Add two fields to Narinfos (ERIS and ERISFormat) > - Store blocks of published substitutes in a local block store (in > `/var/guix/eris`) > - Add an endpoint for resolving ERIS blocks over HTTP (a la RFC 2169) > - Use ERIS when fetching substitutes > - Use IPFS for de-referencing ERIS blocks > > Testing procedure is a bit tedious, but described in the V2: > https://issues.guix.gnu.org/52555#8-lineno16 OK. There are still I guess a number of unknowns, including the cost of ERIS support for publishers (how much disk space =E2=80=98guix publish=E2= =80=99 will use for blocks, how much CPU is needed to compute those blocks, bandwidth usage over IFPS/HTTP) and for consumers (performance of substitution over HTTP+ERIS or IPFS+ERIS CPU-wise and bandwidth-wise). To address that, we=E2=80=99ll need to make it easy to test, and to make it= easy to disable it if things don=E2=80=99t work as expected. (Perhaps this is already the case, I=E2=80=99m thinking out loud.) > Thanks for making it so far! :) I'd be very happy for your thoughs and > ideas. There might also be opportunity to discuss these ideas at Guix Day= s in > February. Definitely! I think it would be great if you could present what you=E2=80= =99re up to and maybe make a quick demo. Thanks for the great news to begin the year! Ludo=E2=80=99.