@endpass/utils
Advanced tools
Comparing version 1.8.5 to 1.8.6
@@ -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, | ||
}; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
315293
59
1108