Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

radicle multiaddr support for /git #151

Open
SurfingNerd opened this issue Apr 2, 2024 · 1 comment
Open

radicle multiaddr support for /git #151

SurfingNerd opened this issue Apr 2, 2024 · 1 comment

Comments

@SurfingNerd
Copy link

SurfingNerd commented Apr 2, 2024

multiaddr define composable and future-proof network addresses.

Addressing a specific commit could look like this /git/5a179104a6f9e9a2c95562496c88bf514871a1d3

i came up with the idea that git could be added as a content addressed protocol, where you specify the Sha256 of the commit you want to fetch,
and radicle might be the perfect backend to support this multiaddr format.

As far i understand, it is already possible with radicle to fetch a git repo with only specifying the Sha256, without knowing the repository name. it that true ?
How do you guys handle the existing Sha-1 collisions ?

more about:
multiformats/multiaddr#169

any thoughts ?

@FintanH
Copy link
Collaborator

FintanH commented Jul 2, 2024

Hey, sorry about the delay in response. The radicle-git isn't for the protocol so I put it on the long finger to respond. The home for the protocol issues is at the heartwood repository. But you'd have to start using Radicle to contribute, unfortunately :P

I'll answer some of your questions here, and I'll also x-post the issue to the heartwood repo to get more eyes on it.

As far i understand, it is already possible with radicle to fetch a git repo with only specifying the Sha256, without knowing the repository name. it that true ?
How do you guys handle the existing Sha-1 collisions ?
A Radicle repository is identified by it's Repository ID (RID), which is indeed the SHA of it's initial metadata. The human-readable name is just there for metadata. Git uses Hardened SHA-1, which I believe results in less collisions (don't have a reference for this though).

any thoughts ?

How mature is multiaddr? It seems like it's still very much a WIP and Radicle is already experimental enough as it is -- spending all our RnD points 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants