Live data from Hacker News

Is Git a Block Chain?

domustower.com

1–10 of 55 posts

Re: Is Git a Block Chain?

#2
Consensus seems like an essential property that distinguishes a blockchain from a Merkle tree, and git does not provide consensus.

Re: Is Git a Block Chain?

#4
"Blockchain" is generally used to refer to systems that either 1) use the sequence of blocks to model changes in custodianship or 2) (more generally) enforce a set of rules governing the correctness of a given block.

That is, a block in the bitcoin blockchain is valid not only if its hash matches what one would expect given the included transactions, but that those transactions adhere to the rules of bitcoin. (No double-spends, no dust transactions, etc).

While there are data structures in a git commit that must be present and/or follow a particular set of semantics, git does not enforce anything about the _contents_ of those commits.

Another key distinction: blockchains seek consensus, whereas divergent forks in git repos are by design.

EDIT: I should probably not distinguish too much between consensus and rule enforcement, as those two are obviously intertwined. :)

Re: Is Git a Block Chain?

#5
Related is the Gitcoin mining challenge from Stripe's Capture The Flag 3.

Here's a writeup: https://github.com/ctfs/write-ups-2014/tree/master/stripe-ct...

A Gitcoin miner updates the ledger (a text file in the repo), and "mines" the next-smaller hash.

It doesn't have consensus, but it does give a neat programming challenge.

Re: Is Git a Block Chain?

#6
Not sure I get it. Appears to be technically correct assuming we view the term "block chain" as a basic combination of the words as opposed to a term of art, but without the PoW it seems to be missing the point.

Re: Is Git a Block Chain?

#9
post #3

No, its not. Its just a chain. There's no block. The block in a blockchain is everything to do with distributed / trustless conscensus.

Imagine how cool it would be if I could share a guid for my repo - and then your bit client (let's call it gitcoin, or maybe just bit) can fetch new commits from a distributed block chain (essentially the git log). Github is no longer an intermediary or a single point of failure. Private repo? Don't share the guid.

Re: Is Git a Block Chain?

#10
post #9
post #3

No, its not. Its just a chain. There's no block. The block in a blockchain is everything to do with distributed / trustless conscensus.

Imagine how cool it would be if I could share a guid for my repo - and then your bit client (let's call it gitcoin, or maybe just bit) can fetch new commits from a distributed block chain (essentially the git log). Github is no longer an intermediary or a single point of failure. Private repo? Don't share the guid.

If it's distributed then I don't think private repos would be possible, unless they were encrypted.
Post reply on HN