mmick66/jswallet
Tentang
An experimental Bitcoin Wallet in Electron + React.js
Pengembangan web dan aplikasiPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- Mengumpulkan riwayat
- dalam 15 hari
- Mengumpulkan riwayat
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliJSWallet

This is a companion to my Medium tutorial.
It is not production code and should be used for educational purposes only.
Installation
You need Node.js 24, the version in .nvmrc (with nvm: nvm use).
git clone https://github.com/mmick66/jswallet.git
cd jswallet
npm install
npm start
npm start runs the app from source, with the renderer served by Vite's dev server.
Downloads
Installers for Windows, macOS (Apple silicon and Intel) and Linux are on the Releases page. They are not code-signed yet, so the system warns before opening them the first time:
- macOS: unzip and open the app. When macOS says Apple could not verify it, go to System Settings › Privacy & Security and choose Open Anyway (on macOS 14 and older, right-click the app and choose Open).
- Windows: when SmartScreen says Windows protected your PC, choose More info › Run anyway.
- Linux:
sudo apt install ./jswallet_<version>_amd64.deb, orsudo dnf install ./jswallet-<version>-1.x86_64.rpm.
Each release lists the files' SHA-256 checksums in SHA256SUMS.txt. Check a download with
shasum -a 256 -c SHA256SUMS.txt --ignore-missing (or sha256sum -c on Linux).
Network
The wallet runs on Bitcoin's testnet4, where coins have no value. It reads balances and history and broadcasts transactions through the mempool.space API. To get test coins, send them to a wallet's address from a testnet4 faucet, such as the mempool.space faucet or faucet.testnet4.dev.
The network is set in src/env.json:
{
"network": "testnet",
"apiBase": {
"bitcoin": "https://mempool.space/api",
"testnet": "https://mempool.space/testnet4/api"
}
}
networkpicks the chain:testnet(testnet4) orbitcoin(mainnet, real money).apiBaseholds the API of each network; the app uses the one thatnetworknames. It must be anhttps:URL on mempool.space: with any other URL the app turns its network features off.
The file is built into the app, so restart npm start or rebuild after changing it.
Each wallet belongs to the network it was created on, and the app lists only the wallets of the current one.
Design Principles
Key derivation is the beating heart of a Bitcoin Wallet and most security concerns have to do with this first step.
My code is mainly intended as an illustration of the following pattern:

Building
This project is built with Electron Forge.
npm run make
builds the app and its installers for the platform you run it on, into out/make:
a zip on macOS, a Squirrel installer on Windows, and deb and rpm packages on Linux
(these need dpkg and fakeroot, and rpmbuild).
npm run package builds the app alone, into out.
Releasing
- Set the version:
npm version <x.y.z> --no-git-tag-version. - Write the release notes in
docs/releases/<x.y.z>.md. - Commit both, push, then tag the commit
<x.y.z>and push the tag.
The Release workflow then checks the code, builds every installer
on its own platform, and publishes the GitHub release with the notes and SHA256SUMS.txt.
Without a notes file, it creates a draft with generated notes instead.
The workflow signs the installers once the signing credentials are in the repository's Actions secrets and variables (listed at the top of the workflow): a Developer ID and App Store Connect API key for macOS, and a SignPath project for Windows. Until then the macOS app is signed ad hoc and the Windows installer is unsigned.
Wallet storage
The wallets are kept in db/wallets.db inside the app's data folder:
~/Library/Application Support/jswallet on macOS, %APPDATA%\jswallet on Windows and ~/.config/jswallet on Linux.
Older versions kept them in db/wallets.db next to wherever the app was started; on its first start the app
copies that file over and leaves the original where it was.
Development
npm run check
runs ESLint and the tests.
Warnings
As stated above this is not production code.
It is set to work with testnet4 by default but by a simple change in src/env.json it could well function with real bitcoins!
Code signing policy
Free code signing provided by SignPath.io, certificate by SignPath Foundation.
This covers the Windows installer, from the first release signed this way. Releases up to 1.2.0 are not code-signed.
- Committers and reviewers: Michael Michailidis
- Approvers: Michael Michailidis
Every installer is built from this repository's source by the Release workflow, from the release's tag, and each signing is approved by hand.
Privacy policy
JSWallet has no accounts, no telemetry, no crash reports and no automatic updates. It contacts two services, over HTTPS, and nothing else:
- mempool.space: it sends your wallets' addresses to read their balances, unspent outputs and history, the IDs of the transactions you spend from, and each transaction you send, to broadcast it. It also reads the recommended fees and the current prices. This happens as the app opens and when you reload or send.
- api.blockchain.info: it reads the price chart. No wallet data is sent.
Each service sees your IP address with the requests, under its own privacy policy. Your recovery phrases, private keys and passwords never leave your computer.
To uninstall, remove JSWallet from Settings › Apps on Windows, delete the app on macOS, or remove
the jswallet package on Linux. The wallets stay in the app's data folder (see Wallet storage)
until you delete it.
License
What to install
What this project needs of the machine, from "requires" in .tutti/settings.json. tutti requires checks each one and installs what it can.
- actionlint
- check:
actionlint -version - install:
brew install actionlint
- check:
Jelajahi proyek terkait
Memuat…