Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@metamask/utils

Package Overview
Dependencies
Maintainers
8
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/utils - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

9

dist/keyring.d.ts

@@ -0,5 +1,5 @@

import type { TypedTransaction, TxData } from '@ethereumjs/tx';
import type { Eip1024EncryptedData } from './encryption-types';
import { Hex } from './hex';
import { Json } from './json';
import type { Transaction, SignedTransaction } from './transaction-types';
/**

@@ -122,3 +122,3 @@ * A Keyring class.

*/
signTransaction?(address: Hex, transaction: Transaction, options?: Record<string, unknown>): Promise<SignedTransaction>;
signTransaction?(address: Hex, transaction: TypedTransaction, options?: Record<string, unknown>): Promise<TxData>;
/**

@@ -211,2 +211,7 @@ * Sign a message. This is equivalent to an older version of the the

decryptMessage?(account: Hex, encryptedData: Eip1024EncryptedData): Promise<string>;
/**
* Generates the properties for the keyring based on the given
* BIP39-compliant mnemonic.
*/
generateRandomMnemonic?(): void;
};
{
"name": "@metamask/utils",
"version": "4.0.0",
"version": "5.0.0",
"description": "Various JavaScript/TypeScript utilities of wide relevance to the MetaMask codebase.",

@@ -33,2 +33,3 @@ "repository": {

"dependencies": {
"@ethereumjs/tx": "^4.1.1",
"@types/debug": "^4.1.7",

@@ -35,0 +36,0 @@ "debug": "^4.3.4",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc