-
Notifications
You must be signed in to change notification settings - Fork 22
User-friendly keys #40
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
Comments
We originally used binary keys and encoded to base16 in flatfs, that created some serious problems, see ipfs/kubo#2601 for context. |
Well, yes, we shouldn't be mangling keys. I'd just treat them as byte strings. |
The problem was that we use '/' as a path separator in datastore keys, that does not mix well when the key itself in binary, so we changed from using binary keys to text and encoded them to base32 before converting them to datastore keys. |
Not sure if I understand. The |
Looks like this was closed by @Stebalien in #64 |
Two proposals (assuming we don't deprecate this datastore soon):
This way, we'd map
key
toBase32(FastHash(key))[:2] + "/" + Base32(key)
.The text was updated successfully, but these errors were encountered: