DogeJS / All apps / Vault

A paper vault for your Dogecoin savings

Make a new Dogecoin address whose keys exist only on paper. It happens on your own device, offline, one calm step at a time. Nothing is sent anywhere and nothing is kept.

An example printed vault sheet, marked EXAMPLE ONLY: at the top the deposit address with its QR code and Send Dogecoin here; in the middle twelve numbered recovery words (the public test words abandon … about); at the bottom how to restore and lines for notes, with two dashed fold lines.
The Go offline step: This device is offline, and a ladder of good, better and best ways to make a vault.

Cold storage you can hold in your hand

For savings you rarely touch. For everyday spending, use the DogeJS Wallet.

Step 1 of 8, Make a paper vault for your Dogecoin: what it is for, what it is not for, and what you need.

Guided

Eight short steps, one per screen

Each step says what to do and why, in a sentence or two. Big type, no jargon, and a dot for every step so you always know where you are.

  • About ten minutes from start to finish
  • Works on a phone, a tablet or a computer
  • Every step can be read again before you continue
Go offline: the page shows This device is offline, with Good, Better and Best ways to do it.

Offline

Made on your device, with the network off

The page has everything it needs once it has loaded. It shows live whether your device is online, and asks you to turn on airplane mode before the words exist.

  • Its security policy forbids every connection
  • Download it as one file for a computer that stays offline
  • Honest about what is safer: good, better, best
Make your vault: Your vault is ready, with the deposit address and its QR code.

Your keys

Words from your device’s secure randomness

The browser’s cryptographic random number generator picks 12 standard recovery words. If you would rather not rely on it alone, roll a die and type the numbers: your rolls are mixed in, so the result is at least as strong as either.

  • Standard BIP39 words, the same as most wallets
  • 24 words and up to five addresses under Advanced
  • Restores in the DogeJS Wallet with the same addresses
The example sheet: address and QR code at the top, the numbered words in the middle, notes at the bottom, two fold lines.

On paper

A sheet that folds like a letter

A4 or US Letter, in three equal parts: the address and its QR code on top, your numbered words in the middle, notes at the bottom. Fold it and the words are inside, the address outside. Prefer a pen? The page shows the words large and prints a blank form.

  • No QR code of the words unless you ask for it
  • Plain advice on which printers to avoid
  • The date and how to restore, printed on the sheet
Check your paper: type words 2, 3, 8 and 9 from the paper.

Checked

It checks your paper before you rely on it

You type four words, chosen at random, from the paper. A misprint or a slip of the pen is caught now, while it is easy to fix.

  • On touch screens, letter keys on the page instead of your keyboard app
  • Optionally scan the printed QR code to check the address
Remove the digital copy: Removed, checked on this device just now, and what else to do.

Nothing stays

It removes the digital copy, and shows you

The page overwrites the words and keys in its memory, checks that it wrote nothing to the browser, and lists what is left for you to do: close the tab, clear the printer queue.

  • Also wiped if you leave or reload the page
  • The words are hidden while you are away from the page
  • Never in a file, the clipboard, the address bar or a cookie

The eight steps

What the page walks you through, in order.

  1. Get ready

    Read what a paper vault is for. You need a printer or a pen, ten minutes and a private place.

  2. Go offline

    Turn on airplane mode or unplug. The page shows live whether the device is online.

  3. Make your vault

    Your device picks 12 words. Add your own dice rolls if you like. You see the deposit address.

  4. Put it on paper

    Print a clean sheet that folds like a letter, or write the words by hand.

  5. Check your paper

    Type four words back from the paper, so a misprint is caught now and not years later.

  6. Remove the digital copy

    The page wipes its memory, checks it saved nothing, and tells you what else to do.

  7. Store it

    Two copies in two places, safe from fire and water. Tell someone you trust that it exists.

  8. To spend later

    Restore the words in the DogeJS Wallet, move everything out, and treat the paper as used.

What this protects against, and what it does not

A paper vault moves the risk from computers to paper. Know both sides.

It protects against

  • Theft over the internet after the vault is made: the keys are on no computer.
  • An exchange or app failing, freezing accounts or closing.
  • A lost or broken phone or computer: the coins are on the Dogecoin network and the words are on paper.

It does not protect against

  • Malware, a bad browser extension or a compromised browser or operating system on the device while you make it.
  • A camera that can see your screen or paper, or a photo of the sheet.
  • A printer that keeps a copy of what it prints.
  • Fire, water or simply losing the paper.
  • Someone finding the paper: whoever has the words owns the coins.
  • The page you load being changed one day: the downloaded file, checked against its fingerprint below, avoids that.

How careful do you want to be?

  1. GoodThis page, with the device offline while you make the vault.
  2. BetterThe downloaded file, checked against its fingerprint, opened in a private window on a computer you trust, offline.
  3. BestA computer that never goes online again. For large amounts, a hardware wallet is safer than any paper vault made on a computer.

Download it for offline use

The whole tool in one HTML file. Save it to a USB stick and open it on a computer that is not online.

Download dogejs-vault-0.2.0.html

164 KB. It holds no secrets and needs nothing else: double-click it and it opens in your browser. You may keep it.

Check the file before you use it. Its SHA-256 fingerprint must be exactly:

a2c79e51337e0c458b0c42747f4cf38a8cd8ad7f47d536b2e39da36c4fe1e80e
  • Windows (PowerShell): Get-FileHash dogejs-vault-0.2.0.html
  • Mac: shasum -a 256 dogejs-vault-0.2.0.html
  • Linux: sha256sum dogejs-vault-0.2.0.html

The same fingerprint is listed in SHA256SUMS, and anyone can rebuild the file from the source and get the same bytes (see For developers).

Questions

Is this a good idea?

For savings you rarely touch, yes: coins in a paper vault cannot be taken by anyone online, because the keys are on no computer. It is only as safe as the device you make it on and the place you keep the paper. For large amounts, a hardware wallet is safer.

Does DogeJS see my words or my address?

No. The page is a set of static files. Its security policy forbids it to connect anywhere, and it stores nothing in the browser. The words exist in the page’s memory until you remove them, and then only on your paper.

Why go offline if the page cannot send anything?

The page cannot, but other things on the same device might: a browser extension, malware or another app. Offline, nothing can send your words anywhere while they exist.

Printer or hand-written?

A simple USB printer is fine and avoids writing mistakes. Office, shared, Wi-Fi and cloud printers can keep a copy of what they print. If you are unsure, write the words by hand: the page shows them large and numbered, and prints a blank form that holds no secret.

Can I add more coins later?

Yes. Send to the deposit address as often as you like. You do not need the words to receive, only to spend.

How do I check my balance?

After the digital copy is removed, the Store step offers “Check the balance later with Watch”: it opens DogeJS Watch in a new tab with the public deposit address only, and Watch asks before adding it. Or open Watch on your everyday phone and type or scan the address from your paper. Watch only reads public data; the free service it uses sees the address and your internet address, never your words.

How do I spend from it?

Open the DogeJS Wallet, choose Restore from recovery phrase, then Real Dogecoin, and type the words. Move everything to its new home in one go, and do not reuse the paper.

Why not reuse the paper after spending?

Once the words have been typed on a device that goes online, they are no longer only on paper. A new vault starts clean.

Is there a passphrase (25th word) option?

No, on purpose: the DogeJS Wallet cannot restore a vault with one, and a forgotten passphrase would lose the coins for good, so the vault keeps to the plain words.

12 or 24 words?

Twelve words (128 bits) are already far beyond what anyone can guess, and are easier to write and check. Twenty-four are under Advanced if you prefer them.

What if I lose the paper?

Then the coins are lost. Nobody, including DogeJS, can recover them. That is why the page asks for two copies in two places.

Can someone who finds the paper take the coins?

Yes. Whoever has the words owns the coins. Fold it so the words are inside, keep it where you would keep cash or documents, and never photograph it.

Ready when you are

Ten minutes, a private place, and a printer or a pen.

For developers

Documentation

How the keys are made, the test vectors, what the page is allowed to do, and how to rebuild it byte for byte.

Derivation

A vault is a standard HD wallet, made exactly the way the DogeJS Wallet restores one on the main network, so “Restore from recovery phrase”, then “Real Dogecoin”, shows the same addresses.

PartValue
WordsBIP39, English list, 12 words (128 bits) or 24 words (256 bits), no passphrase
SeedPBKDF2-HMAC-SHA512, 2048 rounds, salt mnemonic
Accountm/44'/3'/0' (BIP44, SLIP-0044 coin type 3, Dogecoin)
Addressesm/44'/3'/0'/0/i, P2PKH of the compressed public key, version byte 0x1e (“D…”)
Code@dogejs/core (noble and scure libraries); every vault is derived twice, from the entropy and again from the words, and must agree

There is no BIP39 passphrase option because the DogeJS Wallet cannot enter one; a vault with a passphrase could not be restored there.

Randomness

  • System: 32 bytes from crypto.getRandomValues; the first 16 (12 words) or all 32 (24 words) are the entropy. Without crypto.getRandomValues and crypto.subtle the page refuses to run. There is no other source and no Math.random anywhere (the build refuses a bundle that contains it).
  • With dice: entropy = first 16 or 32 bytes of SHA-256(32 system bytes ‖ the rolls as ASCII digits). At least as unpredictable as either part alone.
  • Dice only (a choice under the dice box, at least 99 rolls, 99 × log2 6 ≈ 255.9 bits): entropy = first 16 or 32 bytes of SHA-256(the rolls as ASCII digits), so it can be recomputed with any SHA-256 tool, e.g. printf '%s' 1623… | sha256sum.
  • The four words of the paper check are chosen with crypto.getRandomValues (rejection sampling, no modulo bias).

Test vectors

Public test values only. Never send coins to them: anyone can spend from these words.

InputWordsm/44'/3'/0'/0/0
entropy 00000000000000000000000000000000abandon ×11, aboutDBus3bamQjgJULBJtYXpEzDWQRwF5iwxgC (libdogecoin vector)
dice only, 12 words, rolls 123456 ×17 (102 rolls)more matter caught bind tip twin indicate visa rifle angle defense localDGAQbZnBPk3W2MUGeu5dBtxYvJLPxRqpkc
dice only, 24 words, the same rollsmore matter caught … affair garlic (entropy 8fd12891…1d36c112, the full SHA-256 of the rolls)DENgjLpHyQuZcjjQ5Pue28PLfjDvQ5Rg3f

The unit tests also check every address against an independent implementation written in the test from the specifications (Node’s SHA-256, HMAC-SHA512, PBKDF2 and RIPEMD-160, and secp256k1 in plain BigInt arithmetic), which itself first reproduces the 24 BIP39 Trezor vectors, BIP32 test vector 1 and the libdogecoin address vectors.

What the page may do

The tool page carries this Content-Security-Policy (the single file has the same, with the SHA-256 of its inline script and style instead of 'self'):

Content-Security-Policy
default-src 'none'; script-src 'self'; style-src 'self'; connect-src 'none'; img-src data:; media-src 'none'; font-src 'none'; base-uri 'none'; form-action 'none'; object-src 'none'; require-trusted-types-for 'script'; trusted-types 'none'
  • No connection of any kind (connect-src 'none'), no outside host, no fonts, no analytics, no service worker. The script and stylesheet have hash-pinned names and Subresource Integrity.
  • Trusted Types are enforced and the code never builds HTML from text; it refuses to run inside a frame.
  • It never writes to localStorage, sessionStorage, IndexedDB, cookies, Cache Storage or the address bar, and never puts the words on the clipboard: the only clipboard write is “Copy address” on the Store step, after the wipe, with the public deposit address. Fields have autocomplete, spellcheck and autocorrect off.
  • Its only way out is a link you choose to open: “Check the balance later with Watch” (after the wipe) opens /watch/app/#add=<deposit address>&name=Paper%20vault in a new tab, without opener or referrer. The page itself still makes no request; from the downloaded file the link is the full https://dogejs.com/watch/app/ address.
  • Secrets live in memory only. “Remove it now”, “Finish” and leaving or reloading the page overwrite the entropy bytes, empty the word arrays and the parts of the page that showed them. JavaScript strings cannot be overwritten in place; they are released for the garbage collector, and closing the browser clears what remains.

Reproducible build

The build has no timestamps; two builds give the same bytes (a test builds twice and compares). To check the site’s files yourself:

Shell
git clone https://github.com/DogeJS-Dev/vault && cd vault
git checkout v0.2.0
npm install
VAULT_OUT=/tmp/vault node build.mjs
cd /tmp/vault && sha256sum -c SHA256SUMS
# compare with https://dogejs.com/vault/app/SHA256SUMS

Build 0.2.0: build hash b007bb88221f6d9bfd962ac17487c54e45f7279a0a04030ddceff054cac81417 (the SHA-256 of SHA256SUMS). Files: index.html, app-….js, app-….css, dogejs-vault-0.2.0.html, THIRD_PARTY_LICENSES.txt; details in build-info.json.

Package API

@dogejs/vault exports the logic without the page (ES module, depends on @dogejs/core):

JavaScript
import { makeEntropy, vaultFromEntropy, addressesFromPhrase, parseDice, pickPositions, wordMatches } from '@dogejs/vault';

const { entropy, source } = await makeEntropy({ words: 12, rolls: parseDice('3 1 4 1 5').rolls });
const { words, addresses } = await vaultFromEntropy(entropy, 5);   // 12 words, m/44'/3'/0'/0/0..4
entropy.fill(0);                                                     // the caller wipes
const again = await addressesFromPhrase(words.join(' '), 1);         // same first address
ExportWhat it does
makeEntropy({ words, rolls?, diceOnly? })16 or 32 bytes as described under Randomness; returns { entropy, source }
vaultFromEntropy(entropy, count)Words and the first count receive addresses (1 to 20)
addressesFromPhrase(phrase, count)Validates the phrase (words and checksum) and returns its addresses
parseDice(text), diceBits(n)Reads typed rolls (1-6); bits carried by n rolls
pickPositions(total, count), wordMatches(typed, expected)The paper check
snapshotStorage(), storageChanges(a, b)The “saved nothing” check shown after the wipe

Tests

Unit tests (Vitest): derivation and vectors, the entropy pipeline and BIP39 checksum, the flow and the wipe in jsdom, the string table, and the build. Browser tests (Chrome): the whole flow online, with the network off, and from the single file on file://; zero requests after load; storage empty and the browser profile on disk free of the words afterwards; the printed sheet and the blank form at A4 and Letter, each word in the PDF exactly as often as in the phrase; restoring vaults of 12 and 24 words in the built DogeJS Wallet and comparing its addresses and watch-only key; the Watch link opening a new tab whose address holds only the deposit address, while the vault page makes no request; touch input; four screen widths, dark mode and axe-core.