Coder Social home page Coder Social logo

dehotgoat / hd-seed-phrase-guesser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metamask/hd-seed-phrase-guesser

0.0 0.0 0.0 694 KB

A tool for recovering ethereum accounts from mis-recorded seed phrases.

Home Page: https://metamask.github.io/hd-seed-phrase-guesser/

JavaScript 99.98% HTML 0.02%

hd-seed-phrase-guesser's Introduction

HD Seed Phrase Guesser CircleCI

Live Web Interface Here

A tool for attempting to recover Ethereum addresses from incorrectly input seed phrases.

  • Attempts to compare an entered seed phrase against detected possible spelling errors.
  • Generates accounts for each valid seed phrase variation up to a defined depth.
  • Checks for accounts with any ethereum balance in that depth.
  • If an account with a balance is found, the valid mnemonic is returned.
  • The module is an event emitter for easy introspection into its attempt cycle.

Usage

const Guesser = require('hd-seed-phrase-guesser')
const Eth = require('ethjs')
const eth = new Eth(new Eth.HttpProvider('https://mainnet.infura.io'))

const input = ' travel funny  ocean erupt srader whale mandate timber scoter escout actress elbow'
const getBalance = eth.getBalance.bind(eth)

const guesser = new Guesser({
  phrase: input,
  getBalance: getBalance,
})

guesser.guess()
.then((mnemonic) => {
  // Successful recovery!
})
.catch((reason) => {
  // Failed to recover :()
})

// Track events!
guesser.on('trying', (mnemonic) => {
  // The guesser is checking balances on this mnemonic
})

Building the web interface

One detail: You'll have to remove the line of node_modules/spell/spell.js that references readFileSync, since that is not available in browser.

After you npm install, assuming you have browserify installed globally (npm install browserify -g) you should be able to build with npm run build.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.