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

add knownIdentities cache #53

Merged
merged 3 commits into from
Nov 29, 2019
Merged

add knownIdentities cache #53

merged 3 commits into from
Nov 29, 2019

Conversation

shamb0t
Copy link
Contributor

@shamb0t shamb0t commented Nov 25, 2019

Adds cache for known identities

@aphelionz aphelionz mentioned this pull request Nov 25, 2019
5 tasks
src/identities.js Outdated Show resolved Hide resolved
return false
}

const verifyIdSig = await Keystore.verify(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which Keystore instance (or data directory) does this use?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @shamb0t, makes sense 👍

Copy link
Contributor Author

@shamb0t shamb0t Nov 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@haadcode hmm after running tests with orbit-db its true that if a custom keystore is used then the custom keystore should also be used for verifying. Does it make sense to have the static verifyIdentity only verify identities which used orbit-db-keystore? (ie this._keystore.verify in the non-static method and Keystore.verify in the static method)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, perhaps we don't need the static method. I'd keep it in though in this PR and remove it later on. For now, we should be good, right?

@haadcode
Copy link
Member

LGTM @shamb0t 👍

@shamb0t shamb0t merged commit 4a7ec1f into master Nov 29, 2019
@aphelionz aphelionz deleted the feat/cache branch May 28, 2021 18:16
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