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

@endpass/utils

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@endpass/utils - npm Package Compare versions

Comparing version 1.8.5 to 1.8.6

ethereum.d.ts

17

constants.d.ts

@@ -1,9 +0,16 @@

declare type KDFEncryptOptions = {
kdf: 'scrypt',
n: number,
};
declare namespace KDFTypes {
type KdfProperty = 'scrypt';
type EncryptOptions = {
kdf: KdfProperty,
n: number,
}
}
// Just shorthand for the KDFTypes.EncryptOptions type
declare type KDFEncryptOptions = KDFTypes.EncryptOptions;
declare module '@endpass/utils/constants' {
export const KDF_ENCRYPT_OPTIONS: KDFEncryptOptions;
export const KDF_ENCRYPT_OPTIONS: KDFTypes.EncryptOptions;
export const HD_KEY_MNEMONIC_PATH: "m/44'/60'/0'/0";
}

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

/// <reference path="global.d.ts" />
/// <reference path="constants.d.ts" />
/// <reference path="keystores.d.ts" />

@@ -9,8 +9,8 @@ declare module '@endpass/utils/keystoreCrypto' {

options: KDFEncryptOptions
): v3KeystoreWithoutAddress;
): V3KeystoreWithoutAddress;
export function decrypt(
password: string,
v3Keystore: v3Keystore
v3Keystore: V3Keystore
): Buffer;
}

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

/// <reference path="global.d.ts" />
/// <reference path="constants.d.ts" />
/// <reference path="ethereum.d.ts" />
/// <reference path="keystores.d.ts" />

@@ -11,8 +12,8 @@ declare module '@endpass/utils/keystoreHDWallet' {

encryptOptions: KDFEncryptOptions
): v3Keystore;
): V3Keystore;
export function decryptHDWallet(
password: string,
v3Keystore: v3Keystore
v3Keystore: V3Keystore
): EthereumHDKey;
}

@@ -1,6 +0,6 @@

/// <reference path="global.d.ts" />
/// <reference path="keystores.d.ts" />
declare module '@endpass/utils/keystoreKeyGen' {
export function getPublicKey(password: string, v3Keystore: v3Keystore): string;
export function getPrivateKey(password: string, v3Keystore: v3Keystore): string;
export function getPublicKey(password: string, v3Keystore: V3Keystore): string;
export function getPrivateKey(password: string, v3Keystore: V3Keystore): string;
}

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

/// <reference path="global.d.ts" />
/// <reference path="constants.d.ts" />
/// <reference path="ethereum.d.ts" />
/// <reference path="keystores.d.ts" />

@@ -7,3 +8,3 @@ declare module '@endpass/utils/keystoreWallet' {

password: string,
hdKeystore: v3Keystore,
hdKeystore: V3Keystore,
index?: number

@@ -16,8 +17,8 @@ ): Wallet;

encryptOptions: KDFEncryptOptions
): v3Keystore;
): V3Keystore;
export function decryptWallet(
password: string,
v3Keystore: v3Keystore
v3Keystore: V3Keystore
): Wallet;
}
{
"name": "@endpass/utils",
"version": "1.8.5",
"version": "1.8.6",
"description": "Utils and helper functions",

@@ -5,0 +5,0 @@ "author": "Endpass, Inc",

/// <reference path="constants.d.ts" />
/// <reference path="keystores.d.ts" />

@@ -10,4 +11,4 @@ declare module "@endpass/utils/walletGen" {

encryptedSeed: string,
v3KeystoreHdWallet: v3Keystore,
v3KeystoreChildWallet: v3Keystore,
v3KeystoreHdWallet: V3Keystore,
v3KeystoreChildWallet: V3Keystore,
}>;

@@ -20,5 +21,5 @@

): {
v3KeystoreHdWallet: v3Keystore,
v3KeystoreChildWallet: v3Keystore,
v3KeystoreHdWallet: V3Keystore,
v3KeystoreChildWallet: V3Keystore,
};
}
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