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

chore: use sha256 from @noble/hashes #28171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

legobeat
Copy link
Contributor

@legobeat legobeat commented Oct 30, 2024

Description

Replace usage of sha256 implementation from deprecated legacy ethereumjs-util with @noble/hashes.

Open in GitHub Codespaces

Related issues

Blocked by

Blocking

Manual testing steps

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Copy link
Contributor

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.

@legobeat legobeat added dependencies Pull requests that update a dependency file team-security type-tech-debt Technical debt labels Oct 30, 2024
@legobeat legobeat force-pushed the deps-etheremjs-util-sha256 branch 3 times, most recently from be1b720 to 14a6791 Compare October 30, 2024 04:17
@legobeat legobeat marked this pull request as ready for review October 30, 2024 04:28
@legobeat legobeat requested a review from a team as a code owner October 30, 2024 04:28
@legobeat legobeat force-pushed the deps-etheremjs-util-sha256 branch 15 times, most recently from 7c5ad24 to 0e605c2 Compare November 9, 2024 09:52
@legobeat legobeat force-pushed the deps-etheremjs-util-sha256 branch 3 times, most recently from a163299 to d85040d Compare November 23, 2024 08:44
github-merge-queue bot pushed a commit that referenced this pull request Nov 26, 2024
## **Description**
- remove redundant resolutions entries
  - `ethereumjs-util` v5 is no longer present
- fix: use `BN` from bn.js (v5) instead of `ethereumjs-util` (deprecated
version)

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/28146?quickstart=1)

## **Related issues**

#### Blocking
- #28169
  - #28171
  - #28170

## **Manual testing steps**

## **Screenshots/Recordings**

### **Before**

### **After**

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
@legobeat legobeat force-pushed the deps-etheremjs-util-sha256 branch from d85040d to be97ffe Compare December 7, 2024 02:23
@legobeat legobeat force-pushed the deps-etheremjs-util-sha256 branch 2 times, most recently from 6de9491 to 5d175cd Compare December 14, 2024 01:44
@legobeat legobeat force-pushed the deps-etheremjs-util-sha256 branch 2 times, most recently from 5a71630 to ef488ce Compare December 23, 2024 22:27
@legobeat legobeat force-pushed the deps-etheremjs-util-sha256 branch from ef488ce to 53fc28c Compare January 9, 2025 22:19
@legobeat legobeat force-pushed the deps-etheremjs-util-sha256 branch from 53fc28c to e9fc527 Compare January 9, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file external-contributor team-security type-tech-debt Technical debt
Projects
Status: Needs dev review
Development

Successfully merging this pull request may close these issues.

2 participants