From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WJ5QMVGjtV9DCQAA0tVLHw (envelope-from ) for ; Wed, 18 Nov 2020 22:42:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0HcDLVGjtV87BgAA1q6Kng (envelope-from ) for ; Wed, 18 Nov 2020 22:42:25 +0000 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 49F6794021E for ; Wed, 18 Nov 2020 22:42:25 +0000 (UTC) Received: from localhost ([::1]:47128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfW9g-00039x-A6 for larch@yhetil.org; Wed, 18 Nov 2020 17:42:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfW9K-00039j-Rz for guix-patches@gnu.org; Wed, 18 Nov 2020 17:42:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfW9K-00045V-I9 for guix-patches@gnu.org; Wed, 18 Nov 2020 17:42:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kfW9K-0001Vh-GA for guix-patches@gnu.org; Wed, 18 Nov 2020 17:42:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44199] [PATCH 0/1] An origin method for GNUnet FS URI's Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Nov 2020 22:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44199 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: wontfix patch To: Maxime Devos , 44199@debbugs.gnu.org Received: via spool by 44199-submit@debbugs.gnu.org id=B44199.16057393065782 (code B ref 44199); Wed, 18 Nov 2020 22:42:02 +0000 Received: (at 44199) by debbugs.gnu.org; 18 Nov 2020 22:41:46 +0000 Received: from localhost ([127.0.0.1]:37002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfW93-0001VC-UI for submit@debbugs.gnu.org; Wed, 18 Nov 2020 17:41:46 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:35691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfW91-0001Uw-Ng for 44199@debbugs.gnu.org; Wed, 18 Nov 2020 17:41:44 -0500 Received: by mail-wr1-f67.google.com with SMTP id k2so4163774wrx.2 for <44199@debbugs.gnu.org>; Wed, 18 Nov 2020 14:41:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=Us67E2HTSELpz0Mhhvt8JO5lwf1/Lsxt/8+MIqseSF4=; b=F2i1xC7wjSGhwI42F7LE0sp8CuSnTqbWFaFaaaCzC3XF2taWonmJGcbf8dHEiuRzvb 6w/jHKS+6t1tilbvS1U74447EQCXJAxmEmBr/xxO1iB3zlBss/TRcWFIB5Hk1Bpq1ni4 KQv1w/u0xg/ASRKYPPVosxIHqNushxm9rH40gXUN+5efWItY5kay2wKX56aZ7d+G6aWG mVkOCsu1+AJPlYlQzwJKipDFTkZil5cqubahPf792unyregR9wKycQ/pT+ajrS0wkGHA hfQlkT0R6t7ngDAfYDI0c968qiV0nW286Pd5GI/SM5FFRZG0u/JagPX5wUsd+OU3Ap12 BEoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Us67E2HTSELpz0Mhhvt8JO5lwf1/Lsxt/8+MIqseSF4=; b=tZDuDXZ/pKSQaeAzT4eJoltoLCtBY6L+68KelA+BqhZEQCck8a1dxh4lzc9oSxk/j9 s/C/Zht7eOdTnJzpyu/sFsbfpOfjbZHSIxBZue6CZseRjTTSVszSAG2bpOoZqXs51pd6 NHrm4iRlScEmwUlx6eLjsLCtJlzmtpEVgOS7unYk2p+xOOT4o+IxKkcseK9Y7cAAn/Bw RSbl0ZKi6XTU52cwktE6Qhvtfvgg130qS7x89ucsEhAVNT4Sadq5djU9dx7mgA/YxhVK 6Pe8z/WzG1ZtatVwmJyDmBY6jdYvzJrNWoqWPlO54jjHbVmK6znKFN5jJV92I9+HzDdf K3YA== X-Gm-Message-State: AOAM531ToLqsl7qX/BGErrQbB1K4xCM38M+wK+TcLilCKIbDr8d9QUmN nr6Fx8wU+Vd4tpIFVRYDzpDnEdswNw5PjQ== X-Google-Smtp-Source: ABdhPJzy8dKjMOD5lrliuRoXMwDRuUTl+jZ1Un5zbUE2LIWUah9r26gxXAcYuNhVJsqd08F3kNtlLQ== X-Received: by 2002:adf:8366:: with SMTP id 93mr6913193wrd.321.1605739297645; Wed, 18 Nov 2020 14:41:37 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id v19sm36397193wrf.40.2020.11.18.14.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 14:41:37 -0800 (PST) From: zimoun In-Reply-To: References: <5c72bcb9c86934deda97d952eb5cd459e615b313.camel@student.kuleuven.be> <86blgn4wk5.fsf@gmail.com> <86361arvdh.fsf@gmail.com> Date: Wed, 18 Nov 2020 23:40:13 +0100 Message-ID: <86o8ju2ss2.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=F2i1xC7w; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: JG5Uo31oBiMp Dear, On Wed, 18 Nov 2020 at 21:28, Maxime Devos wrote: > (btw it's Maxim*e*, not Maxim. The =E2=80=98e=E2=80=99 isn't pronounced b= ut it's still > written.) Sorry. >> From my understanding, this is a show stopper. It has to be solved > first going further, IMHO. It is not possible to write manually the > URI for all the packages. And as perhaps you read with the project > =E2=80=99disassemble=E2=80=99, it is not straightforward. > > I agree! I see three straightforward answers to this. Thanks for sharing your views. > a) Fancy > > Write a GNUnet service using the DHT to map the hashes used in origin > specifications (*) to URI's for the FS system. To let the local > contribution to the DHT survive peer restarts, maintain a database > (e.g. SQlite) of (Guix hash -> GNUnet hash) (^), that is expanded with > each successful source (or binary) substitution or build. > > (Alternatively, as the DHT isn't anonymous, > place hash -> GNUnet hash references into some well-known name space. > Then hash lookup + FS should automatically be anonymous when desired.) Yeah, for sure but both are a piece of tough work though. > b) Simple, slow introduction (no additional GNUnet services required) > > Extend (origin ...) with an optional gnunet-hash field. > Adjust =E2=80=98guix download=E2=80=99, =E2=80=98guix refresh=E2=80=99 an= d =E2=80=98guix import=E2=80=99 > to emit the gnunet-hash (%) field. Plumb this field to the guix daemon > somehow. Same approach is possible for IPFS. Guix is not doing that for Software Heritage id for example (that=E2=80=99s= why dissamble exists :-)). So I am really doubtful that Guix will do it for the more-experimental GNUnet. However, if you want to implement proof-of-concept, you can use the field =E2=80=99properties=E2=80=99 which is more or less free. I mean, you= can add whatever you want in. > c) Not scalable, but may reduce network traffic to ci.guix.gnu.org & co > > Like in a) keep a database of known (Guix hash -> GNUnet FS URI). > Perhaps make this available through a web interface or git repository > ... wait, this sounds familiar ... this seems to fit well into the > =E2=80=98disarchive=E2=80=99 project! The most traffic issue is about substitutes, not really about sources. And about substitutes, this patch #33899 [1] implements the support of IPFS. Once it is ready, the pieces will be there somehow, so adding GNUnet to distribute susbtitutes maybe would be an option. Please join the conference [2] on this Sunday, a session to discuss all this will be dedicated. 1: 2: All the best, simon