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

Use getEncryptionPublicKey from Core KeyringController #20646

Conversation

cryptodev-2s
Copy link
Contributor

Explanation

This PR uses getEncryptionPublicKey from core KeyringController instead of calling EthKeyringController directly.

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@cryptodev-2s cryptodev-2s requested a review from a team as a code owner August 29, 2023 16:37
@github-actions
Copy link
Contributor

github-actions bot commented Aug 29, 2023

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@cryptodev-2s cryptodev-2s force-pushed the refactor/getEncryptionPublicKey-from-core-keyring-controller branch from fa76bdc to d6e6c55 Compare August 29, 2023 16:38
@socket-security
Copy link

socket-security bot commented Aug 29, 2023

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: @metamask/[email protected], @metamask/[email protected]

Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Looks good aside from one thing.

package.json Outdated Show resolved Hide resolved
@cryptodev-2s cryptodev-2s force-pushed the refactor/getEncryptionPublicKey-from-core-keyring-controller branch 2 times, most recently from c558afc to d5aa088 Compare August 30, 2023 14:07
@cryptodev-2s cryptodev-2s force-pushed the refactor/getEncryptionPublicKey-from-core-keyring-controller branch from d5aa088 to 5c0ee84 Compare August 30, 2023 14:11
@cryptodev-2s cryptodev-2s requested review from mcmire, Gudahtt and a team August 30, 2023 14:11
@metamaskbot
Copy link
Collaborator

Builds ready [6640834]
Page Load Metrics (1513 ± 34 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint107156125136
domContentLoaded1424166015127234
load1424166015137234
domInteractive1424166015127234
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 724 Bytes (0.02%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (3f5bc97) 68.83% compared to head (6640834) 68.83%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #20646   +/-   ##
========================================
  Coverage    68.83%   68.83%           
========================================
  Files          997      997           
  Lines        38906    38906           
  Branches     10443    10443           
========================================
  Hits         26778    26778           
  Misses       12128    12128           
Files Changed Coverage Δ
app/scripts/metamask-controller.js 65.54% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mikesposito mikesposito left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Looks good!

@cryptodev-2s cryptodev-2s merged commit 656b787 into develop Aug 30, 2023
9 checks passed
@cryptodev-2s cryptodev-2s deleted the refactor/getEncryptionPublicKey-from-core-keyring-controller branch August 30, 2023 17:10
@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor EncryptionPublicKeyController to use @metamask/keyring-controller
4 participants