Secure wallet and development enviroment
Project description
Secure Web3
About
This is a simple, secure command-line wallet for EVM compatible wallets. Additionally, it is a secure framework for developers to manage their private keys with. It contains a setup wizard that encrypts your wallet and saves it into a json file for secure storage. I wrote it because I have a lot of web3 projects and I do not like storing private keys in plaintext on disc.
Use as a wallet
Sw3 is a command line wallet which is compatable with any EVM chain. Currently it supports sending both eth and erc20 tokens. I will be adding more features in time.
usage: Secure Web3 Cli [-h] [-i INIT_WALLET] [-o [OPEN_WALLET]] [-l] [-n {ethereum,polygon,bsc,aurora,goerli}] [-it IMPORT_TOKEN] [-b] [-r BROADCAST_RAW] [-s {eth,erc20}] [-L] options: -h, --help show this help message and exit Wallet managment options. -i INIT_WALLET, --init INIT_WALLET Initialize this new wallet -o [OPEN_WALLET], --open [OPEN_WALLET] Unlock a wallet, use default wallet if not specified. -l, --lock Lock all open wallets. -n {ethereum,polygon,bsc,aurora,goerli}, --network {ethereum,polygon,bsc,aurora,goerli} Wallet configuration options and functions -it IMPORT_TOKEN, --import-token IMPORT_TOKEN Add this token to the specified wallet. EVM State-Reading functions. -b, --balance Get wallet balance info. EVM State-Writing related options. -r BROADCAST_RAW, --raw BROADCAST_RAW Load a json tx from this file to sign and broadcast. -s {eth,erc20}, --send {eth,erc20} Open interactive shell to send ethereum. -L, --legacy Use legacy gas protocol.
As a development framework
See main.py for example use.
from lib import wallet_manager manager = wallet_manager.WalletManager(wallet_file) priv_key = manager.decrypt_load_wallet()
Changelog
- January 28th, 2023 -- Added support for flashbots RPC and private transactions.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for secure_web3_chevyoung-1.141.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97f6a257d5a7089e6628cb66fe65fc309e7d1efbda44e610dc793afc7351a407 |
|
MD5 | a4d98d52e298e62e27533bfbdf8e3f4a |
|
BLAKE2b-256 | aa976064dd472aa070b93a9e84298ad000ba6e525f9b763f8dd4f1221c47c8ce |
Hashes for secure_web3_chevyoung-1.141-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13afa938e148c249acb3a3bc7b7d7bd303e5d317398cf94b2e9d5b1f347f3b0a |
|
MD5 | 835af61a16c407faec8d8b1c1807b642 |
|
BLAKE2b-256 | b5a3f387547750a65977ef6af2edfe5cb88070efbee41f2c3da0c4aba4132031 |