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

feat: switch to raw multihashes for blocks #18

Merged
merged 3 commits into from
Jan 31, 2020

Conversation

Stebalien
Copy link
Member

Part of: ipfs/kubo#6815

@Stebalien Stebalien added the status/blocked Unable to be worked further until needs are met label Jan 7, 2020
key.go Outdated Show resolved Hide resolved
key.go Outdated Show resolved Hide resolved
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.

2 participants