Skip to content

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

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>
* @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.

3 participants