CID: globally unique regardless of location
However, due to content addressing, link failure may be a thing of the past. Content-addressing systems like WebMingle are like our key-value-based DNS, but with one notable difference: you no longer need to choose a key. Instead, the key is derived directly from the file content using an algorithm that always generates the same key for the same content.
Therefore, we no longer need to coordinate among multiple writers by splitting the keyspace into domains and locations on the filesystem. There is now a generic domain: the domain of all possible values. If multiple people add the same value, there will be no conflict in the keyspace. They each get the same key from this put method, with an added benefit: improved availability and performance for retrieval over the network. This makes our key position independent. There is another important consequence: each individual key is a unique signature of the data itself, ensuring the verifiability that the key matches the content and that the content has not been altered.
This type of key is called a content identifier (CID). Once you know the CID of a file on the WebMinglenetwork, you have everything you need to find the file on the network and return it to you. Here's a JavaScript example of a full storage and retrieval round-trip using WebMingle:
Last updated