News for hackers. Stuff that matters.
Re:“We already store data. In a database. It works well” by CiPHPerCoder on Tuesday February 11, 2020 @05:20AM (#22297387)
> Actually, Git is technically a blockchain.

No.

You can say that git reduces to a Merkle tree. And blockchains use Merkle trees.

But you can't say that git is a blockchain.

https://gist.github.com/joepie91/e49d2bdc9dfec4adc9da8a8434f...

https://paragonie.com/blog/2017/07/chronicle-will-make-you-q...

Re:“We already store data. In a database. It works well” by bob1029 on Tuesday February 11, 2020 @06:02AM (#22297563)
I would argue the Merkle tree (or any other recursive signature algorithm) is the most important quality of a blockchain. To say that git is technically a blockchain is not entirely inaccurate IMO.

I think you are looking for the other qualities that typically apply to a blockchain such as the implicit need to "mine" its resources. Git simply produces these resources incidentally. I think this is the only major difference.

Re:“We already store data. In a database. It works well” by CiPHPerCoder on Tuesday February 11, 2020 @06:42AM (#22297718)
> I would argue the Merkle tree (or any other recursive signature algorithm)

A Merkle tree is not a recursive signature algorithm, because a hash function is not a signature algorithm.

https://paragonie.com/blog/2015/08/you-wouldnt-base64-a-pass...

(Yes, you can build signature algorithms out of hash functions, but definitions matter.)

Re:“We already store data. In a database. It works well” by meowface on Tuesday February 11, 2020 @09:09AM (#22298560)
It's still missing important pieces. They both fall under the superset of "hash chain" / Merkle tree, but cryptocurrency blockchains are designed to deal with the possibility of bad actors. Git can't ensure trust, unless you PGP sign commits.

Git + PGP + some computationally expensive mechanism to broadcast verified PGP key attributions + a consensus algorithm might be a little bit like a blockchain, but I can't think of a good use case for that. Git repos generally aren't intended to be pushed to by the whole world.

Re:“We already store data. In a database. It works well” by hannasanarion on Tuesday February 11, 2020 @09:49AM (#22298867)
A blockchain doesn't ensure trust either. The blockchain "trusts" whoever has the most powerful hash cracking array.
Re:“We already store data. In a database. It works well” by meowface on Tuesday February 11, 2020 @11:38AM (#22299803)
I should've said "attempt to ensure trust".
Re:“We already store data. In a database. It works well” by CiPHPerCoder on Tuesday February 11, 2020 @10:04AM (#22298991)
Incidentally, this is a problem I've worked on previously.

https://github.com/paragonie/libgossamer/tree/master/docs

Re:“We already store data. In a database. It works well” by andrewflnr on Tuesday February 11, 2020 @10:48AM (#22299367)
The most important part of a block chain is its consensus mechanism. The merkle tree is relatively trivial.
Re:“We already store data. In a database. It works well” by jnwatson on Tuesday February 11, 2020 @01:31PM (#22301105)
There's significant difference in opinion of what part of the Bitcoin protocol is the "blockchain". Usually, people talk about the persistent stuff being the blockchain. In that case, bits sitting in storage don't implement a protocol, therefore don't have a consensus mechanism.

In other words, the blockchain is just the data structure, the consensus sits outside of that as a distributed protocol.

Of course, parts of that data structure enable the protocol to work, which is the most interesting property of the blockchain, but that's just blocks, merkle trees, and chained signatures.

Re:“We already store data. In a database. It works well” by andrewflnr on Tuesday February 11, 2020 @03:41PM (#22302602)
If you're focusing on the construction of the term "blockchain", you're already lost. The name is a red herring. It's very clear that the innovative aspect of the technology, the part that enabled all the interesting applications, is the protocol layered on top of the merkle tree. That's the part that needed a new name, and deserved a better one than it got.
Re:“We already store data. In a database. It works well” by ascar on Tuesday February 11, 2020 @08:18AM (#22298202)
I know Git and Blockchains are said to be examples for (usage of) Merkle trees, but I fail to see how they're actually (using) a merkle tree.

Using the hash of a parent node as input to a nodes hash alongside the nodes data creates a link, but it doesn't create a merkle tree. In a Merkle tree the parent node is the hash of the hashes of its child nodes and only leafes have data. These are entirely different definitions and also serve completely different purposes (linking to a parent node vs efficient lookup of membership of some data in a larger dataset).

Could someone clear up my confusion and explain to me where Git/Blockchain use a Merkle tree in their fundamental functionality? Or is the term Merkle tree simply misreferenced a lot?

Re:“We already store data. In a database. It works well” by CiPHPerCoder on Tuesday February 11, 2020 @09:03AM (#22298515)
Re:“We already store data. In a database. It works well” by nebulous1 on Tuesday February 11, 2020 @08:26AM (#22298254)
in bitcoin the transactions are the leaves
Re:“We already store data. In a database. It works well” by ascar on Tuesday February 11, 2020 @08:37AM (#22298319)
Could you please elaborate how that ends up as a Merkle tree?

In a merkle tree the leaves are not linked and they have a tree structure of parent hashes on top. Git and Blockchain nodes are linked and the fundamental architecture doesn't need a tree structure of hashes on top. While this tree structure on top might be useful, it would be an optimization, but not part of the fundamental architecture. Again, what am I missing?

Re:“We already store data. In a database. It works well” by nebulous1 on Tuesday February 11, 2020 @09:04AM (#22298522)
This might be complicated by the fact that "merkle trees" and git/blockchain invert the parent/child relationship. The root of the git/blockchain trees changes every time a commit/block is added, and the child nodes are called "parent commits" in git. Also the shape isn't going to have a wide base or be balanced like a binary search tree or similar.

When you say that "git and blockchain nodes are linked", I think you might be not abstracting the concepts from the form the data usually takes. For instance in git you might be thinking of a commit as a single package with all its source changes, headers, parent details and hash, but it terms of it being a merkle tree the leaf node would be non-hash parts (source code, non-hash headers etc) and the "tree on top" would be the hashes. This tree structure of hashes are absolutely part of the fundamental architecture of git/blockchain.

Re:“We already store data. In a database. It works well” by hestefisk on Tuesday February 11, 2020 @08:13AM (#22298172)
If Git is a blockchain, the. ZFS is a blockchain too.
Re:“We already store data. In a database. It works well” by ms4720 on Tuesday February 11, 2020 @08:42AM (#22298354)
Don't tell Oracle