Skip to content
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

multikey shards #21

Open
raulk opened this issue Jul 2, 2021 · 0 comments
Open

multikey shards #21

raulk opened this issue Jul 2, 2021 · 0 comments
Milestone

Comments

@raulk
Copy link
Member

raulk commented Jul 2, 2021

Add the ability for a CAR to be associated with multiple shard keys (in the context of Filecoin, deals).

mk := shard.MultiKey(key1, key2)
dagst.RegisterShard(mk, mount, ...)

Also need the ability to associate an existing shard with one or many new keys:

mk := shard.MultiKey(key1, key2)
dagst.LinkShard(mk, oldKey)

Also the ability to unlink shards:

mk := shard.MultiKey(key1, key2)
dagst.UnlinkShard(mk, oldKey) // may implicitly destroy the shard if no more links are left
@raulk raulk added this to the future milestone Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant