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

Provide exported key with encryption #29

Merged
merged 4 commits into from
Nov 3, 2022
Merged

Provide exported key with encryption #29

merged 4 commits into from
Nov 3, 2022

Conversation

darkwing
Copy link
Contributor

Prerequisite to MetaMask/KeyringController#152

Provides the key in string format so it may be used to unlock.

Supercedes #20

@darkwing darkwing requested a review from a team as a code owner October 31, 2022 14:01
test/index.spec.ts Outdated Show resolved Hide resolved
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

This looks great! But I would feel more comfortable with a few more tests, modeled after the last test we have now. I've left some examples in a comment.

test/index.spec.ts Outdated Show resolved Hide resolved
@darkwing
Copy link
Contributor Author

darkwing commented Nov 3, 2022

@Gudahtt Should I rename createKeyFromString to importKey? Seems like it might make sense.

@Gudahtt
Copy link
Member

Gudahtt commented Nov 3, 2022

That would make sense to me!

Personally I think of this more as serialization/deserialization than import/export, but, import/export is fine and matches the crypto API.

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

3 participants