/wallet_generator

Generate keys+wallet addresses from mnemonic, accepts arbitrary HDpath

Primary LanguageTypeScriptMIT LicenseMIT

Wallet Generator

Generates keys and/or wallet addresses from a mnemonic seed, private key, or public key. Supports arbitrary HD paths as per BIP32/BIP44 standards and outputs Bech32 addresses for Cosmos SDK as well as proper (non-evmos) Ethereum address.

Wallet applications love to gatekeep this. You know who you are. Stop it. Be better.

Features

  • Generate private keys, public keys, and wallet addresses from a mnemonic seed.
  • Generate public keys and wallet addresses from a private key.
  • Generate wallet addresses from a public key.
  • Accept arbitrary HD derivation paths.
  • Generate addresses for Cosmos SDK chains (Bech32) and Ethereum (Hex format).

Installation

  1. Clone the repository:
git clone https://github.com/cordtus/wallet_generator.git
cd wallet_generator
  1. Install dependencies:
yarn install
  1. Build the project:
yarn build
  1. Test:
yarn test
  1. Run:
yarn start

Usage

When you run the tool, you'll be prompted to select an input mode:

  1. Mnemonic: Generate private key, public key, and wallet addresses from a mnemonic seed.
  2. Private Key: Generate public key and wallet addresses from a private key.
  3. Public Key: Generate wallet addresses from a public key.

Example Usage

Generating from a Mnemonic:

yarn start

✔ Select input mode: Mnemonic
✔ Enter your mnemonic: [your mnemonic here]
✔ Enter the derivation path: m/44'/118'/0'/0/0

The tool will output:

  • Bech32 Address
  • Ethereum (hex) Address
  • Public Key
  • Private Key

Generating from a Private Key:

yarn start

✔ Select input mode: Private Key
✔ Enter your private key: [your private key here]

The tool will output:

  • Bech32 Address
  • Ethereum (hex) Address
  • Public Key

Generating from a Public Key:

yarn start

✔ Select input mode: Public Key
✔ Enter your public key: [your public key here]

The tool will output:

  • Bech32 Address
  • Ethereum Address

License

MIT License © 2024 Cordt Hanson