all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Florian Klink <flokli@flokli.de>
To: John Ericson <list@johnericson.me>
Cc: guix-devel@gnu.org, "Ludovic Courtès" <ludo@gnu.org>,
	"Christopher Baines" <mail@cbaines.net>,
	"Valentin Gagarin" <valentin@fricklerhandwerk.de>,
	"Maxim Cournoyer" <maxim.cournoyer@gmail.com>
Subject: Re: Ensuring daemon interop, maybe also store layer standardization?
Date: Thu, 16 Nov 2023 22:52:48 +0200	[thread overview]
Message-ID: <lgswczhvbqevyaggzhpfzufajwcrntmrxchd5bdtg52ocw7hvs@spuhr6xklcbz> (raw)
In-Reply-To: <ff8d6aed-009f-4b09-a163-ce65fbf354ef@app.fastmail.com>

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


      reply	other threads:[~2023-11-16 20:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-30 21:02 Nix Daemon protocol post / Tvix Florian Klink
2023-11-16 15:14 ` Ludovic Courtès
2023-11-16 19:23   ` Ensuring daemon interop, maybe also store layer standardization? John Ericson
2023-11-16 20:52     ` Florian Klink [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=lgswczhvbqevyaggzhpfzufajwcrntmrxchd5bdtg52ocw7hvs@spuhr6xklcbz \
    --to=flokli@flokli.de \
    --cc=guix-devel@gnu.org \
    --cc=list@johnericson.me \
    --cc=ludo@gnu.org \
    --cc=mail@cbaines.net \
    --cc=maxim.cournoyer@gmail.com \
    --cc=valentin@fricklerhandwerk.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.