Skip to content
DogeJS-DevPublic

About

DogeJS Wallet: an installable Dogecoin light wallet (PWA) made of static files. Keys are made and encrypted on your device.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

DogeJS

DogeJS Wallet

A Dogecoin light wallet that installs from a web page, keeps your keys on your device and talks only to the server you choose.

Live demo · Documentation · All DogeJS projects

Three screens of the DogeJS Wallet on the Dogecoin test network

What it does

  • Installs from a web page and keeps your keys on your device: the recovery phrase is made on your device, and everything is encrypted with a PIN or a password before it is stored.
  • Shows your balance and activity at a glance, with plain states (pending, n of 6 confirmations, dropped) and a badge that says whether the confirmations were checked here.
  • Receives with a QR code, pays by scanning one, and pays many people at once from a list or a CSV file (up to 500 payments in one transaction).
  • Checks confirmations itself: block headers and their proof of work are verified in the browser, and when your servers disagree, sending stops until they agree.
  • Lets other sites ask it to pay or sign in. A shop's Pay with DOGE button or a Sign in with Doge button opens the wallet in a small window; you see the site and the amount, then press Pay or Sign in.

Try it

Open the live wallet in a current browser on your phone or computer. It starts on the Dogecoin test network: https://dogejs.com/wallet/app/

The page about it, with how your keys are stored and how to choose a server: https://dogejs.com/wallet/

Screenshots

Balance and activity at a glance.
Balance and activity at a glance.
Receive with a QR code.
Receive with a QR code.
Check every line before anything is signed.
Check every line before anything is signed.
Pay many people at once from a list.
Pay many people at once from a list.

Install

The wallet is an app, not a library: the build writes a folder of static files that you can serve from any HTTPS host (or localhost). Nothing is on npm yet, so build it from this repository:

git clone https://github.com/DogeJS-Dev/wallet.git
cd wallet
npm install     # also installs core, backends, light-node and ledger from their git tags
npm run build   # writes dist/

Check the build and open it (the build is reproducible: the same sources give the same build hash, so you can compare a copy you downloaded with a published one):

cd dist && sha256sum -c SHA256SUMS
cd dist && python3 -m http.server 8000     # then open http://localhost:8000/

dist/ is the whole app: index.html, one hashed script and stylesheet (with subresource integrity), the verification worker, the service worker, icons, THIRD_PARTY_LICENSES.txt, build-info.json and SHA256SUMS. To put the build into a checkout of the website repository instead, run SITE_DIR=../website npm run build:site (it writes site/wallet/app).

How it works

Keys never leave the device. A PIN (6 digits, PBKDF2-SHA-256 with 11,000,000 iterations, and growing waits after wrong tries) or a password (at least 12 characters) derives the key that encrypts the stored data with AES-256-GCM. There is no DogeJS server: you choose the server that reads the chain, and every server must prove it serves the same network before it is used. A server can report your balance and history and pass on your signed payments, but it cannot move your coins, change a payment after you review it, or disagree with your other servers unnoticed. On the main network the wallet also offers the free public service described below.

The full description of every screen, the safety model and the file formats is in docs/REFERENCE.md. The pop-up protocols for other sites are in docs/PAY-REQUEST.md and docs/SIGNIN-REQUEST.md.

Works with

Status

Version 0.10.0. The package is private and not published to npm: the app is served as static files. It has had no external security review. It was tested with unit and jsdom tests and in headless Chrome against fake local servers. It has not been used against a real Esplora or electrs-doge server or the real Dogecoin network, on real phones, or with a real Ledger (the hardware support is a beta built to Ledger's published protocol). It starts on the test network; the main network needs a typed confirmation.

On the main network the wallet can use a free public service (BlockCypher, cross-checked with Blockchair) that you choose with one tap. It is free and public, not run by DogeJS, and limited: the wallet keeps its own request budget so it does not exceed the free limits. That path was built from responses captured from the real services (read endpoints only); no real payment has been sent through it. Your balance and the addresses you look up are visible to the service you pick, as with any server. For real money, use your own server.

Contributing

Bug reports, ideas and pull requests are welcome. Read the contributing guide first: small, tested, explained.

npm install
npm run build
npm run typecheck
npm test

Report a security problem privately to hello@dogejs.com, never in a public issue. See SECURITY.md.

The maintainers keep one combined development workspace for all DogeJS projects and publish each project from it as a repository of its own. An accepted pull request is applied there and appears here with the next release.

Licence

MIT, see LICENSE. Bundled third-party code, where there is any, is listed in THIRD_PARTY_LICENSES.

About

DogeJS Wallet: an installable Dogecoin light wallet (PWA) made of static files. Keys are made and encrypted on your device.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages