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

Store identities as ipld links #273

Open
oed opened this issue Oct 28, 2019 · 1 comment
Open

Store identities as ipld links #273

oed opened this issue Oct 28, 2019 · 1 comment

Comments

@oed
Copy link
Contributor

oed commented Oct 28, 2019

Right now identity objects are stored within each entry. This results in a lot of duplicated data when there is a lot of entries created by the same identity. One way to mitigate this is to store the identity as an ipfs object and in the entry just put an ipld link to this object.

It could looks something like this: (pseudo code)

const identityCID = await ipfs.dag.put(identity)

entry.key = `${identityCID}/publickey`
entry.identity = identityCID
@aphelionz
Copy link
Contributor

This seems like a pretty solid idea IMO. IPLD has matured a lot since we last looked at it and I believe it's "ready" enough to give us optimizations like this one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants