Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Conversation

@Stebalien
Copy link
Member

Part of: ipfs/kubo#6815

@Stebalien Stebalien force-pushed the feat/mh-backed-datastore branch from 3c4a6d0 to 071cf26 Compare January 7, 2020 17:35
@Stebalien Stebalien added the status/blocked Unable to be worked further until needs are met label Jan 7, 2020
@Stebalien Stebalien force-pushed the feat/mh-backed-datastore branch from 071cf26 to 11890cc Compare January 7, 2020 18:00
We are deprecating these functions as ipfs strives to store
multihashes directly on the datastore, rather than CIDs.

Thus multiple CIDs might map to the same multihash. Making this functions
reflect that behaviour might cause silent breakage in users. We prefer loud
breakage.

Users using CidToDsKey(c) should move to MultihashToDsKey(c.Hash()).

Users using DsKeyToCid() should move to DsKeyToCidV1Raw() or DsKeyToMultihash().

Note that datastore should handle migrations to replace existing CID-encoded
keys with raw multihashes, or preserve DsKeyToCid() and CidToDsKey() in their
own codebases.
Allow passing in whatever codec type the user wants
@hsanjuan hsanjuan merged commit 4782beb into master Jan 31, 2020
@hsanjuan hsanjuan deleted the feat/mh-backed-datastore branch January 31, 2020 16:16
@Stebalien Stebalien removed the status/blocked Unable to be worked further until needs are met label Feb 3, 2020
@aschmahmann aschmahmann mentioned this pull request Dec 13, 2021
59 tasks
Jorropo pushed a commit to ipfs/go-libipfs-rapide that referenced this pull request Mar 23, 2023
…atastore

feat: switch to raw multihashes for blocks

This commit was moved from ipfs/go-ipfs-ds-help@4782beb
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants