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

feat(keychain): add support for ed25519 and secp keys #725

Merged
merged 3 commits into from
Aug 5, 2020

Conversation

jacobheun
Copy link
Contributor

@jacobheun jacobheun commented Aug 4, 2020

Adds support in the keychain for ed25519 and secp256k1 keys.

unblocks #669
unblocks usage of these keys in js-ipfs and any other apps leveraging the keychain

@jacobheun jacobheun marked this pull request as ready for review August 5, 2020 15:28
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM!
Just a minor detail missing

@@ -174,7 +176,7 @@ class Keychain {
* @param {int} size - The key size in bits.
Copy link
Member

Choose a reason for hiding this comment

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

default value and optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated this to be optional and updated the logic to remove the default. 0 doesn't really make sense, so now this just checks the size when it matters (when type is rsa). Also updated the api docs to reflect this.

Copy link
Member

Choose a reason for hiding this comment

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

That makes sense, cool!

@jacobheun jacobheun merged commit 51d7ca4 into master Aug 5, 2020
@achingbrain achingbrain deleted the feat/more-keys branch May 18, 2023 13:39
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

Successfully merging this pull request may close these issues.

2 participants