Skip to content

Yu-jq/wallet-app-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web3 HD Wallet

A Python-based Hierarchical Deterministic (HD) Wallet supporting Bitcoin (BTC), Ethereum (ETH), and Solana (SOL). Built with FastAPI and Vue.js.

Features

  • Multi-Chain Support: Generate addresses for BTC (Legacy), ETH, and SOL.
  • BIP Standards: Implements BIP39 (Mnemonic), BIP32 (HD Wallets), and BIP44 (Multi-Account).
  • Security:
    • Mnemonic generation and secure storage (in memory).
    • Private key visibility toggle (masked by default).
  • Web Interface: Clean, responsive UI built with Vue.js and Tailwind CSS.

Prerequisites

  • Python 3.8+
  • pip

Installation

  1. Clone the repository (or download the source code).
  2. Install dependencies:
pip install -r requirements.txt

Usage

  1. Start the application:
python wallet_app.py
  1. Open your browser and navigate to: http://127.0.0.1:8000

  2. Initialize Wallet:

    • Enter an existing mnemonic phrase to recover a wallet.
    • Or leave it blank and click "Create / Import Wallet" to generate a new one.
  3. Manage Accounts:

    • Click "+ BTC Account", "+ ETH Account", or "+ SOL Account" to generate new addresses.
    • Click the "Eye" icon to reveal the private key for any account.

Project Structure

  • wallet_core.py: Core wallet logic (Key generation, address derivation).
  • wallet_app.py: FastAPI backend application.
  • templates/index.html: Frontend user interface.
  • requirements.txt: Python dependencies.

Docker Support

Build and run with Docker:

docker build -t web3-wallet .
docker run -p 8000:8000 web3-wallet

About

python实现的bip39,bip32,bip44钱包应用

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published