Skip to content

About

Air-gapped, stateless Bitcoin PSBT signer for the Nintendo DSi, running SeedSigner's code. Camera QR, SeedQR, scribble + mic entropy.

Topics

Resources

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

NDS-Signer

NDS-Signer: SeedSigner on a Nintendo DSi

An air-gapped, stateless Bitcoin PSBT signer for the Nintendo DSi, running SeedSigner's own code.

Leer en español

⚠️ Alpha software (v0.2.2-alpha). It has not been audited. Try it on testnet/signet or with amounts you can afford to lose. Read the disclaimer.

A Nintendo DSi already has what a SeedSigner needs: a camera, two screens (one of them touch), a battery and no network you have to trust. Second-hand, it costs less than the parts of a DIY signer, and in a drawer it looks like an old toy, not like a Bitcoin wallet. Why this project exists: docs/why.md.

Screenshots

Top and bottom screen of the DSi, rendered with the ROM's fonts by the host simulator (tools/dev/readme_screenshots.sh):

Home
Home
Review the transaction
Review the transaction
Each recipient's address
Each recipient's address
The amounts add up
The amounts add up
Signed PSBT, animated QR
Signed PSBT, animated QR
Address explorer with QR
Address explorer with QR
SeedQR backup with a map
SeedQR backup with a map
New seed: scribble + mic
New seed: scribble + mic
Tones: listening
Tones: listening to a PSBT
Tones: a made-up PIN
Tones: a PIN made up by the DSi
Tones: playing the signed PSBT
Tones: playing the signed PSBT
Tones: a seed with its PIN
Tones: a seed with its PIN

What it does

NDS-Signer runs SeedSigner's Python code (views, PSBT verification, seed handling, settings, translations) unmodified on the DSi, through MicroPython, with embit and libsecp256k1 for the cryptography. Only the screens and the hardware drivers are NDS-Signer's own: a dual-screen touch interface, the DSi cameras, QR decoding and display.

  • Sign transactions: scan a PSBT QR code (animated UR or static) from a watch-only wallet such as Sparrow, review recipients, change and fee on the top screen, approve, and show the signed PSBT as an animated QR code.
  • Seeds, only in RAM: type the 12/24 words on the touch keyboard, scan a SeedQR (standard or compact), add a BIP-39 passphrase.
  • New seeds: dice rolls, the camera (SeedSigner's image entropy), or NDS-Signer's own scribble + microphone tool; final word calculator.
  • Backups: view the words, export a SeedQR to copy by hand (with a map of the whole code on the bottom screen), verify the backup.
  • Wallet setup and checks: export the xpub as a QR code, address explorer (each address with its QR code), verify a receive address.
  • Settings: network (mainnet, testnet/signet, regtest), units, 16 languages (SeedSigner's translations; the console's language by default), feedback sounds, rear or front camera.

Tested on a real DSi XL: signing a Signet transaction created in Sparrow, and exporting the xpub to Sparrow.

Telephone tones (experimental)

Besides QR codes, NDS-Signer can exchange data as telephone tones (DTMF), by an audio cable or through the air: the ur-tones format. No camera is needed on either side, and the same UR parts as animated QR codes travel, with error correction (two misheard tones per frame are always repaired) and fountain codes (a lost frame costs one frame).

  • Receive a PSBT: in Sparrow, Copy as Base64; paste it into the ur-tones web tool (Send) and play it. On the DSi: Scan → Listen to tones (experimental) → Start listening — start listening first, then the sender. The top screen shows the frames, the current frame's progress, the tones as they come and the level in dB; the bottom one, Cancel and the microphone's gain.
  • Send the signed PSBT back: Play as tones (experimental), next to its animated QR code; the web tool listens (Listen) and gives the PSBT to copy back into Sparrow.
  • Seeds, with a PIN: a seed can be received (Listen to tones), or exported (Backup seed → Export as tones) to another device or as a backup on tape or MP3 — by cable for the best sound. With a PIN, whoever overhears or records the tones gets a different, empty wallet. Either side can make the PIN up (the DSi from its microphone's noise: 12 characters, in groups of four) for the other to type; both show the seed's fingerprint, so a wrong PIN shows at once.

Through the air, any microphone in the room can record what is played: send seeds by cable, or with a PIN of 12 characters or more. The receiver is ur-tones' C library, with integers only (third_party/ur-tones/c). Tested on a DSi XL: seeds through the air with and without a PIN, and a Sparrow PSBT through the air at cable pace, both ways, in a noisy room.

A sister project: DTMF-Signer, born from this one, is a minimal open-hardware signer built around a Raspberry Pi Pico that talks the same ur-tones format. Its cheapest build, the Phone Exchange (PEX), has no screen and no buttons: an old tone telephone is its whole interface.

Compatible wallets

NDS-Signer signs for a watch-only wallet ("coordinator") on your computer or phone, exchanging QR codes, exactly like SeedSigner. Any wallet that works with SeedSigner should work:

Wallet Computer Phone Tried with NDS-Signer
Sparrow ✅ ✅ (xpub export, signing on Signet)
Specter Desktop ✅
Nunchuk ✅ ✅
Keeper ✅
BlueWallet ✅

Plus any wallet that reads and shows PSBTs as QR codes (animated UR or static). Without a camera, any of them through the ur-tones web tool and telephone tones (copy and paste the PSBT; experimental). Blank in the last column: expected to work, as with SeedSigner, but not tried yet; reports welcome.

Which consoles work

Console Works?
Nintendo DS, DS Lite ❌ No (4 MB of RAM: NDS-Signer needs over 8)
Nintendo DSi, DSi XL ✅ Yes (tested on a DSi XL) — also with a broken camera, through tones
Nintendo 3DS / 2DS family ❓ Untested
Emulators ⚠️ Development only: never a real seed

Without a camera? The telephone tones replace the camera: a DSi whose camera does not work can still receive and sign PSBTs. They do not make the DS or DS Lite work, though: those have a microphone and a speaker, but 4 MB of RAM, and NDS-Signer reserves 6 MB for SeedSigner's Python (the PSBTs and the seeds live there) on top of its 2 MB of code. The DSi has 16 MB.

Install

The console needs a homebrew launcher (Unlaunch, optionally TWiLight Menu++). docs/install.md explains it step by step: preparing the DSi, checking the download, starting NDS-Signer and the first test signature.

In short:

  1. Download nds-signer.nds and SHA256.txt from the releases.
  2. Check the file: shasum -a 256 nds-signer.nds must print the hash in SHA256.txt. Better still, build it yourself and compare.
  3. Copy nds-signer.nds to the SD card and launch it from Unlaunch (hold A + B while switching on) or TWiLight Menu++.

Official releases are published only here, on GitHub, with their SHA-256, and the build is reproducible. A ROM from anywhere else, or an "update" announced anywhere else, is not NDS-Signer's.

Known limitations

  • Alpha: not audited by anyone outside the project.
  • Tested on real hardware: single-signature native segwit wallets (bc1q…) with Sparrow, on Signet. Taproot and multisig come with SeedSigner's code but have not been tried on a DSi yet.
  • Scanning bright screens is slow: lower the screen's brightness (help wanted).
  • 3DS family: untested.
  • Telephone tones are experimental: the ur-tones format is a draft and may still change. In a noisy room, or with the DSi's small speaker far from the receiver, use the slower air pace.

Build

Needs Docker and git.

git clone --recurse-submodules https://github.com/ndssigner/nds-signer.git
cd nds-signer
docker build -t nds-signer-builder .
docker run --rm -v "$(pwd)":/source nds-signer-builder make MPY_APP=1
shasum -a 256 nds-signer.nds

The same commit gives the same SHA-256 on any machine.

Tests

The host tests drive SeedSigner's controller and views through a simulator of NDS-Signer's screens (every flow above, plus upstream's own test vectors), on the same MicroPython and memory size as the ROM:

docker run --rm -v "$(pwd)":/source nds-signer-builder make mpy-unix
python3 -m venv build/venv && build/venv/bin/pip install -r tests/requirements.txt qrcode pillow
make -C tests/host all seedsigner PYTHON=$(pwd)/build/venv/bin/python

Documentation

Using it

Reviewing its security

  • AUDIT.md: where to start, the critical files and the pinned dependencies.
  • docs/threat-model.md: what is protected, what is trusted, where an attacker could get in.
  • docs/entropy.md: how new seeds are made from scribbles and microphone noise.

How it works

In Spanish: docs/es/.

Contributing

Issues and pull requests are welcome, especially from people with a DSi to test on. Before opening one, read CONTRIBUTING.md: the rules are strict because NDS-Signer handles seeds. Good places to start are the open problems in docs/help-wanted.md.

  • Security problems: report them privately, as in SECURITY.md, never in a public issue.
  • PSBT verification, seeds or signing: that code is SeedSigner's and embit's, run unmodified, so fixes belong upstream; NDS-Signer then updates its pinned versions.

Thanks

  • shadowbip (nostr), for the security advice.
  • merd0ne, for the first independent reproduction of a release build, on Linux and macOS (#11).
  • tofu_ai and DobbyAgent (Stacker News), for their review notes on memory wiping, the microphone entropy and fuzzing.

Donate

NDS-Signer is free and has no funding. Donations help keep it going:

Bitcoin
Bitcoin
bc1qx5snc0wlc8cg9gwxhyx27y6pkru8rnngyq7uja
Lightning
Lightning
ndssigner@coinos.io

Lightning wallets without Lightning addresses can use the LNURL:
LNURL1DP68GURN8GHJ7CM0D9HX7UEWD9HJ7TNHV4KXCTTTDEHHWM30D3H82UNVWQHKUERNWD5KWMN9WGQ8XE42

The same addresses are in the app (Home → Donate). NDS-Signer is built on SeedSigner: please support it too, at seedsigner.com.

Disclaimer

NDS-Signer is experimental software provided "as is", without warranty of any kind (see LICENSE, MIT). The authors take no responsibility for its use or for any loss of funds. It is not affiliated with Nintendo or with the SeedSigner project.

About

Air-gapped, stateless Bitcoin PSBT signer for the Nintendo DSi, running SeedSigner's code. Camera QR, SeedQR, scribble + mic entropy.

Topics

Resources

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages