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 extracted key with encryption #20

Closed
wants to merge 17 commits into from
Closed

Provide extracted key with encryption #20

wants to merge 17 commits into from

Conversation

darkwing
Copy link
Contributor

Prerequisite to MetaMask/KeyringController#152

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

@darkwing darkwing marked this pull request as ready for review October 14, 2022 15:04
@darkwing darkwing force-pushed the export-key branch 3 times, most recently from 7cf54c2 to ec085f1 Compare October 20, 2022 15:39
@Gudahtt
Copy link
Member

Gudahtt commented Oct 25, 2022

I see that you've committed the dist directory; could you remove that?

You can leave it committed in a separate branch for testing purposes

src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
darkwing and others added 2 commits October 25, 2022 15:07
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
src/index.ts Outdated Show resolved Hide resolved
* @param {R} dataObj - data to encrypt
* @returns {Promise<DetailedEncryptionResult>} object with vault and extractedKeyString
*/
async function encryptWithDetail<R>(
Copy link
Member

Choose a reason for hiding this comment

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

Rolling this back into encrypt might make mobile compatibility easier to manage. It'd be a breaking change, but we can easily update mobile to return { vault } rather than vault, and that's the only change we'd need. Whereas the alternative might be to severely complicate KeyringController to handle the two different types of encryptor libraries.

Copy link
Member

Choose a reason for hiding this comment

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

On second thought, I am less sure of this suggestion now. Maybe we should figure out what makes sense on KeyringController first, then come back to this.

@darkwing
Copy link
Contributor Author

Superceded by #29 to avoid massive rebase.

@darkwing darkwing closed this Oct 31, 2022
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