You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cyphernet could pick a type of hash and stick to that, say sha256 as an example. If other types of hashes are used when quering cyphernet, you could just hash the hashes to the correct one. Instead of storing a blob with a hash, you store it with the hash of the hash. So if the first hash is sha256 or something else, it doesn't really matter, because the hash of the hash should also be unique. Did that make any sense?
well, that won't work if some blob has a hash of another type in it, we want to beable to interpret that as a link, but we can't change the blob, because it would change it's hash. probably we'd have to have selected secondary indexes by hash different hash types, if there are other popular ones that are not sha.
Activity
ralphtheninja commentedon Sep 5, 2013
Cyphernet could pick a type of hash and stick to that, say sha256 as an example. If other types of hashes are used when quering cyphernet, you could just hash the hashes to the correct one. Instead of storing a blob with a hash, you store it with the hash of the hash. So if the first hash is sha256 or something else, it doesn't really matter, because the hash of the hash should also be unique. Did that make any sense?
dominictarrcommentedon Sep 5, 2013
well, that won't work if some blob has a hash of another type in it, we want to beable to interpret that as a link, but we can't change the blob, because it would change it's hash. probably we'd have to have selected secondary indexes by hash different hash types, if there are other popular ones that are not sha.
dominictarr commentedon Sep 5, 2013
okay, investigating which hash types are used.
git uses sha1.
hmm, okay, bitcoin does loads of weird stuff.
https://en.bitcoin.it/wiki/Protocol_specification#Hashes
git is easy though,
commits and blobs are plain text, and trees have binary, but still uses sha1.
also, each object types is tagged.
bittorrent mostly uses sha1, same as git. Also, bittorrent objects are
bencoded,which is like a binary json.