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

web3-eth-accounts

Package Overview
Dependencies
Maintainers
4
Versions
489
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-eth-accounts - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1-dev.2011192.0

4

lib/commonjs/account.d.ts

@@ -1,3 +0,3 @@

import { Address, Bytes, CipherOptions, HexString, KeyStore } from 'web3-types';
import type { SignatureObject, SignTransactionResult, TypedTransaction, Web3Account, SignResult } from './types.js';
import { Address, Bytes, CipherOptions, HexString, KeyStore, SignatureObject, SignResult, SignTransactionResult } from 'web3-types';
import type { TypedTransaction, Web3Account } from './types.js';
/**

@@ -4,0 +4,0 @@ * Get the private key Uint8Array after the validation.

@@ -1,20 +0,4 @@

import { Web3BaseWalletAccount, HexString } from 'web3-types';
import { FeeMarketEIP1559TxData, AccessListEIP2930TxData, TxData } from './tx/types.js';
import { HexString, SignatureObject, SignResult, SignTransactionResult, Web3BaseWalletAccount } from 'web3-types';
import { AccessListEIP2930Transaction, FeeMarketEIP1559Transaction, Transaction } from './tx';
export declare type SignatureObject = {
messageHash: string;
r: string;
s: string;
v: string;
};
export declare type SignTransactionResult = SignatureObject & {
rawTransaction: string;
transactionHash: string;
};
export declare type SignTransactionFunction = (transaction: TxData | AccessListEIP2930TxData | FeeMarketEIP1559TxData | Record<string, unknown>) => SignTransactionResult;
export declare type SignResult = SignatureObject & {
message?: string;
signature: string;
};
export declare type SignFunction = (data: string, privateKey: string) => SignResult;
export { SignatureObject, SignResult, SignTransactionResult };
export interface Web3Account extends Web3BaseWalletAccount {

@@ -21,0 +5,0 @@ address: HexString;

@@ -1,3 +0,3 @@

import { Address, Bytes, CipherOptions, HexString, KeyStore } from 'web3-types';
import type { SignatureObject, SignTransactionResult, TypedTransaction, Web3Account, SignResult } from './types.js';
import { Address, Bytes, CipherOptions, HexString, KeyStore, SignatureObject, SignResult, SignTransactionResult } from 'web3-types';
import type { TypedTransaction, Web3Account } from './types.js';
/**

@@ -4,0 +4,0 @@ * Get the private key Uint8Array after the validation.

@@ -1,20 +0,4 @@

import { Web3BaseWalletAccount, HexString } from 'web3-types';
import { FeeMarketEIP1559TxData, AccessListEIP2930TxData, TxData } from './tx/types.js';
import { HexString, SignatureObject, SignResult, SignTransactionResult, Web3BaseWalletAccount } from 'web3-types';
import { AccessListEIP2930Transaction, FeeMarketEIP1559Transaction, Transaction } from './tx';
export declare type SignatureObject = {
messageHash: string;
r: string;
s: string;
v: string;
};
export declare type SignTransactionResult = SignatureObject & {
rawTransaction: string;
transactionHash: string;
};
export declare type SignTransactionFunction = (transaction: TxData | AccessListEIP2930TxData | FeeMarketEIP1559TxData | Record<string, unknown>) => SignTransactionResult;
export declare type SignResult = SignatureObject & {
message?: string;
signature: string;
};
export declare type SignFunction = (data: string, privateKey: string) => SignResult;
export { SignatureObject, SignResult, SignTransactionResult };
export interface Web3Account extends Web3BaseWalletAccount {

@@ -21,0 +5,0 @@ address: HexString;

{
"name": "web3-eth-accounts",
"version": "4.3.0",
"version": "4.3.1-dev.2011192.0+2011192",
"description": "Package for managing Ethereum accounts and signing",

@@ -58,3 +58,3 @@ "main": "./lib/commonjs/index.js",

"typescript": "^4.7.4",
"web3-providers-ipc": "^4.0.7"
"web3-providers-ipc": "4.0.8-dev.2011192.0+2011192"
},

@@ -65,8 +65,8 @@ "dependencies": {

"ethereum-cryptography": "^2.0.0",
"web3-errors": "^1.3.0",
"web3-types": "^1.9.0",
"web3-utils": "^4.3.2",
"web3-validator": "^2.0.6"
"web3-errors": "1.3.1-dev.2011192.0+2011192",
"web3-types": "1.9.1-dev.2011192.0+2011192",
"web3-utils": "4.3.3-dev.2011192.0+2011192",
"web3-validator": "2.0.7-dev.2011192.0+2011192"
},
"gitHead": "34ea1b2dd18a8aa21156f0447ab51818c78ef93e"
"gitHead": "2011192f92218aa1572f2c711f38866eba92f844"
}

@@ -72,2 +72,5 @@ /*

ScryptParams,
SignatureObject,
SignResult,
SignTransactionResult,
Transaction,

@@ -94,9 +97,3 @@ } from 'web3-types';

import { TransactionFactory } from './tx/transactionFactory.js';
import type {
SignatureObject,
SignTransactionResult,
TypedTransaction,
Web3Account,
SignResult,
} from './types.js';
import type { TypedTransaction, Web3Account } from './types.js';

@@ -103,0 +100,0 @@ /**

@@ -18,35 +18,13 @@ /*

import { Web3BaseWalletAccount, HexString } from 'web3-types';
import { FeeMarketEIP1559TxData, AccessListEIP2930TxData, TxData } from './tx/types.js';
import {
HexString,
SignatureObject,
SignResult,
SignTransactionResult,
Web3BaseWalletAccount,
} from 'web3-types';
import { AccessListEIP2930Transaction, FeeMarketEIP1559Transaction, Transaction } from './tx';
export type SignatureObject = {
messageHash: string;
r: string;
s: string;
v: string;
};
export { SignatureObject, SignResult, SignTransactionResult };
export type SignTransactionResult = SignatureObject & {
rawTransaction: string;
transactionHash: string;
};
export type SignTransactionFunction = (
transaction:
| TxData
| AccessListEIP2930TxData
| FeeMarketEIP1559TxData
| Record<string, unknown>,
) => SignTransactionResult;
export type SignResult = SignatureObject & {
message?: string;
signature: string;
};
export type SignFunction = (data: string, privateKey: string) => SignResult;
// https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition
export interface Web3Account extends Web3BaseWalletAccount {

@@ -53,0 +31,0 @@ address: HexString;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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