Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/earthdiver/psbitcoin
A PowerShell tool for self-custodial bitcoin wallets
https://github.com/earthdiver/psbitcoin
bitcoin bitcoin-transaction bitcoin-wallet bitcoin-wallet-address bitcoin-wallet-generator powershell
Last synced: about 1 month ago
JSON representation
A PowerShell tool for self-custodial bitcoin wallets
- Host: GitHub
- URL: https://github.com/earthdiver/psbitcoin
- Owner: earthdiver
- Created: 2024-04-29T02:54:11.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-16T04:01:16.000Z (3 months ago)
- Last Synced: 2024-09-29T03:42:18.937Z (about 2 months ago)
- Topics: bitcoin, bitcoin-transaction, bitcoin-wallet, bitcoin-wallet-address, bitcoin-wallet-generator, powershell
- Language: PowerShell
- Homepage:
- Size: 217 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# psBitcoin
## Overview
This tool aims to help users understand bitcoin wallets in various forms, including entropy, mnemonic phrase, seed, extended keys, and more.### Pros
- **No external libraries are required**: It leverages the pre-installed PowerShell in Windows, making it compatible with any PC running Windows 10. (The RIPEMD160 NuGet package is required for PowerShell 7.X, though.)### Cons (or perhaps even a Pro)
- Limited to bitcoin; does not support other cryptocurrencies.### Notes
- **BitcoinWallet.ps1 does not access the network at all.**
- `GetBalance` and `GetUTXO` functions, along with the four other functions that call GetUTXO in BitcoinTransaction.ps1, connect to the Internet.
- For enhanced security, it is recommended to use the tool with the network disabled in Windows Sandbox, considering the risk of malware infection on your PC. Save the following code as a text file with the extension .wsb on your desktop, and double-click it to start the sandbox with the network disabled.```NoNetwork.wsb
Configuration>
powershell -Command "Set-ExecutionPolicy ByPass -Scope CurrentUser"
C:\Users\{UserID}\Desktop\{Writable Folder}
C:\Users\{UserID}\Desktop\{ReadOnly Folder}
true
Disable```
## Operating Environment
The tool has been tested on a PC running Windows 10, in the following environment:
- Windows PowerShell 5.1
- PowerShell 7.X## Setup
[For PowerShell 7 series only]
Obtain the RIPEMD160 NuGet package by executing the following command:```
Install-Package RIPEMD160 -Source https://www.nuget.org/api/v2 # Execute only once.
```[For Windows PowerShell 5.1/PowerShell 7 series]
Execute the following command to load function/class definitions:```powershell:
. ./BitcoinWallet.ps1
```Please place the wordlists in the same folder.
> [!TIP]
> If you encounter an error stating "running script is disabled on this system" error, use `Set-ExecutionPolicy ByPass -Scope Process` to bypass the restriction.## Running Examples
```powershell:
./examples/01_entropy2seed.ps1
./examples/02_seed2addresses.ps1
./examples/03_multisig.ps1
./examples/04_BrainWallet.ps1
./examples/05_HD-BrainWallet.ps1
./examples/06_nested-BIP85.ps1
./examples/07_SilentPaymentAddresses_BIP352.ps1
```## Other Tools
- Functions (`RawTXfromLegacyAddress`,`RawTXfromSegwitAddress`,`RawTXfromTaprootAddress`, etc.) to generate TX data (experimental; use these on Testnet only)
- Functions (`Mnemonic2QRcode`, `Mnemonic2CompactQRcode`) to generate SeedQR images```
. ./BitcoinTransaction.ps1
. ./SeedQR.ps1
```## Donations
Welcome at the following addresses (buy me a coffee).
- `bc1qv6pe28gesk52zuj7fnqk4vul4x6qtyfc7qf9y4`
- `sp1qq08f39ntp6zv03exfx0he79nklvx9ulh436ygulgddgt26796274qqs5gqanfc8m5hmaecqz40l7uw4qp6ldj37q2lcv35azsegp3huhpclx8qsr`## License
psBitcoin is licensed under CC BY-SA 4.0