Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Move encryption and generic utils to common workspace#264

Merged
cryptotavares merged 4 commits intomain-desktopfrom
move-encryption-and-generic-utils-to-common-workspace
Nov 22, 2022
Merged

Move encryption and generic utils to common workspace#264
cryptotavares merged 4 commits intomain-desktopfrom
move-encryption-and-generic-utils-to-common-workspace

Conversation

@cryptotavares
Copy link
Copy Markdown
Contributor

Overview

Move the encryption (asymmetric, symmetric, and web sockets streams), totp as well as all required utils (crypto, generic utils and background types).

Changes

Move the following to the common workspace:

  • encryption/symmetrinc-encryption
  • encryption/asymmetrinc-encryption
  • encryption/encrypted-web-socket-stream
  • utils/utils
  • utils/totp
  • utils/crypto
  • types/background

@cryptotavares cryptotavares marked this pull request as ready for review November 22, 2022 12:22
@cryptotavares cryptotavares requested a review from a team November 22, 2022 12:22
@cryptotavares cryptotavares force-pushed the move-encryption-and-generic-utils-to-common-workspace branch from 45c515d to 8616b03 Compare November 22, 2022 15:27
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we definitely want to export this from it's own file rather than just @metamask/desktop/dist/encryption?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I kept it on its own file, otherwise I would have to export both web-socket + symmetric + asymmetric encryption from there... And to do that I would either have to rename methods from those or export contained on its own object (example symmetric.encrypt). I though about it, but then we would need to distinguish which methods/objects/classes/etc are to be exported as root or as "namespaced" by an object. Decided to leave that decision for later 😅

I have removed the encryption from file naming though (as it was redundant).

@cryptotavares cryptotavares force-pushed the move-encryption-and-generic-utils-to-common-workspace branch from 8616b03 to c675652 Compare November 22, 2022 17:08
@cryptotavares cryptotavares merged commit d26cd9a into main-desktop Nov 22, 2022
@cryptotavares cryptotavares deleted the move-encryption-and-generic-utils-to-common-workspace branch November 22, 2022 19:10
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