New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mnemonic-decrypter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mnemonic-decrypter

Decrypts accounts from a provided mnemonic

latest
Source
npmnpm
Version
2.0.4
Version published
Maintainers
1
Created
Source

mnemonic-decrypter

Decrypts accounts from a mnemonic


How to install

npm install mnemonic-decrypter

Usage Example

Code Snippet

const decrypter = require('mnemonic-decrypter');

const mnemonic = "test test test test test test test test test test test test";
const firstDecryptedAccount = decrypter.decrypt(mnemonic);
const first2DecryptedAccounts = decrypter.decrypt(mnemonic,2);
const first200DecryptedAccounts = decrypter.decrypt(mnemonic,200);

console.log("First account: ", firstDecryptedAccount);
console.log("First 2 accounts: ", first2DecryptedAccounts);
console.log("First 200 accounts: ", first200DecryptedAccounts.length);

Output

First account:  [
  {
    address: '0x72e37d393c70823113a7176ac1f7c579d2c5623e',
    key: 'e9dbd00767eef0e147dce36d0c2ffffffb8ecba9edeaad63f5ce7aa738c2c3a6'
  }
]
First 2 accounts:  [
  {
    address: '0x72e37d393c70823113a7176ac1f7c579d2c5623e',
    key: 'e9dbd00767eef0e147dce36d0c2ffffffb8ecba9edeaad63f5ce7aa738c2c3a6'
  },
  {
    address: '0xf49b089183ec02bad392630a82c0f5b5c3bfabe9',
    key: '581c170508a6746bddebaaec79666d186133580a2082f6797853179ebcec51f9'
  }
]
First 200 accounts:  200

Keywords

EVM

FAQs

Package last updated on 09 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts