-
Notifications
You must be signed in to change notification settings - Fork 273
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
[Question] Using CID/multihash #459
Comments
No, it doesn't, should it? |
I'm not intimately familiar with unison and its internals, but it makes a lot of sense at least from a distant point of view. If you don't go the The fact that it would play nicely with IPFS & co. is a nice benefit, but |
For M1 we should decide whether or not we want to put some codec parameters into the References themselves. |
So, we aren't going to use multihash exactly, it's not quite a fit for Unison, but I think it's a good idea to prepend a Unison version number onto hashes, so they are more self-describing. We can do this easily for M1. |
I'm sorry to hear that, are you sure you don't want to reconsider? regardless, thanks so much on working on Unison, it's a magnificent project! |
@sideeffffect hmm I think maybe I've missed the point of multihash so please jump in and correct me :) - my understanding is that it's a representation of the hash which is self describing, that is, it says what hash algorithm was used to produce it. But for Unison, we have two pieces of information that are relevant, there's the actual hash function (like SHA3) but then also the code which is used to convert a Unison definition to a value of that hash, which may change between Unison versions. We need both those pieces of information (actually, I would say that the Unison implies the hash function, so including both is probably redundant). Hmm, @aryairani was just telling me that we could possibly use the "multicodec" field for the Unison version? Does that sound right? |
the multiformats can stack like a Matryoshka, maybe you need more than just multihash, like multicodec.
|
CID seems like it would work, I'm going to close this issue and we'll track work on this in #466. |
Does Unison use
CID
/multihash
(originated in IPFS/IPLD) for identifying programs (CID is probably the right thing, multihash is just a component of that)?In short, it's a way to encode the hash in a self-describing and thus future-proof way.
I've only found #87 but without any conclusion or indication if some ideas from IPFS got used.
The text was updated successfully, but these errors were encountered: