DevicesSpecter DIY

Specter DIY build

Flash the signed firmware on an STM32F469I-DISCO board, then register the descriptor, verify addresses, and sign with it in Liana.

An assembled Specter DIY in a dark case, seen from the front: a touchscreen that shows the PIN keypad.

You will need

Read the firmware version under the title of Settings > Device settings on the Specter DIY, and compare it with the table on the Specter DIY page.

  • Board: An STM32F469I-DISCO discovery board (Specter DIY shopping list).
  • Cables: A mini-USB cable to flash the firmware, and a micro-USB data cable to connect to Liana.
  • SD card: A FAT-formatted card of 32 GB or less, for firmware updates.
  • QR scanner: Optional, needed only to verify an address. The Specter DIY project recommends the Waveshare barcode scanner module.
  • On Linux: The rules file and group from Give Liana access to USB devices on Linux.
  • GnuPG: Installed as in Verify your download, to check the firmware signature.

Flash the firmware

Flash the initial firmware on a new board, or on a board below firmware 1.4.0. The file can overwrite what the board stores, so write down the seed phrase of any key it holds first.

Verify the firmware before you flash it

The board does not check the first firmware you copy onto it. That firmware handles your keys, so run every check below on a computer you trust.

Download the release files

From the Specter DIY 1.10.5 release, download initial_firmware_v1.10.5.bin and sha256.signed.txt into one folder. Open a terminal, or PowerShell on Windows, in that folder.

Import the signing key

The release notes name the key that signed sha256.signed.txt. For 1.10.5, it is Mike Tolkachev's key:

gpg --keyserver hkps://keys.openpgp.org --recv-keys F2DBC4C614C113E2B15F879ADD5C1264EBD645BE

Verify the signature of the hash list

gpg --verify sha256.signed.txt

GnuPG must report a good signature from Mike Tolkachev <contact@miketolkachev.dev>. Compare the fingerprint it prints with the one in the release notes and in the project's SECURITY.md: F2DB C4C6 14C1 13E2 B15F 879A DD5C 1264 EBD6 45BE.

Check the hash of the firmware

Extract the signed list, then compare the firmware file with it:

gpg --decrypt sha256.signed.txt > sha256.verified.txt
sha256sum --check --ignore-missing sha256.verified.txt
Expected output
initial_firmware_v1.10.5.bin: OK

Set the power jumper to STLK

Move the jumper on the top side of the board to STLK. The jumper selects where the board takes its power.

Connect the mini-USB port

Connect the mini-USB port on the top of the board to the computer. The board appears as a drive named DIS_F469NI.

Copy the firmware to the drive

Copy initial_firmware_v1.10.5.bin to the root of DIS_F469NI. The board flashes it, resets, and starts the bootloader. The bootloader checks the firmware, then starts it.

If the copy keeps failing, try another cable without a USB hub, or flash with stlink-tools:

st-flash write initial_firmware_v1.10.5.bin 0x8000000

If the bootloader reports that it finds no firmware, install it from the SD card, as in Update the firmware.

Prepare the Specter DIY

Set a PIN

At the first start, the Specter DIY shows Choose your PIN code, then Confirm your PIN code. As you enter the PIN, the Specter DIY shows words. Write them down, because they stay the same on this board and change if someone wipes it. Check them each time you unlock. The Specter DIY wipes itself when no PIN attempts remain.

Specter DIY screen Choose your PIN code, with four digits entered and the words opera blur syrup pause unhappy above a shuffled keypad.
Write down the words that appear as you enter the PIN. They are this board's words, so yours differ.

Turn on USB communication

Tap Device settings, then Communication > USB communication. Turn on Enable USB communication, then tap Confirm and Close.

Specter DIY USB communication screen with the Enable USB communication switch turned on, above Cancel and Confirm.
Turn the switch to ON, then tap Confirm.

Restart the Specter DIY

On the Reboot required! screen, tap Confirm. USB works from the next start.

Specter DIY screen Reboot required!, saying the settings will become active after reboot and asking Do you want to reboot now?, above Cancel and Confirm.
Tap Confirm to restart the Specter DIY with USB turned on.

Load your key

Enter your PIN, then tap Generate new key or Enter recovery phrase. The Specter DIY calls the seed phrase a recovery phrase. If you generate a key, write the seed phrase down before you continue.

Specter DIY screen What do you want to do? with Generate new key, Enter recovery phrase, Import recovery phrase and Load key under Key management, and Device settings.
After the PIN, the Specter DIY asks for a key: generate one or enter a recovery phrase.

By default, the Specter DIY forgets the key when it powers off. To keep it, go to Settings > Flash & SD card storage > Save key, tap Internal flash or SD card, then enter a file name. On the SD card, the Specter DIY encrypts the key for this board, so you need both to sign.

Match Liana's network

Go to Settings and tap Switch network, which names the current network in parentheses. Tap the network Liana uses: Bitcoin Mainnet, or Signet, Testnet, or Regtest for a test wallet. The Specter DIY keeps a separate list of wallets for each network.

Specter DIY network list with Bitcoin Mainnet and Liquid Mainnet under Production, and Testnet, Signet, Regtest and Liquid Testnet under Testnets.
Tap the network of your Liana wallet.

Connect to Liana

Plug in the micro-USB port

Connect the Specter DIY's micro-USB port to the computer. The mini-USB cable can stay connected, with the power jumper in either position.

Unlock the Specter DIY

Enter the PIN and load the key. Within a few seconds, Liana lists the Specter DIY as specter, followed by its fingerprint. Liana does not list a locked Specter DIY.

Specter DIY screen Enter your PIN code, with four digits entered and the words opera blur syrup pause unhappy under Do you recognize these words?
Check that the words are the ones you wrote down when you set the PIN.

Add its key to a new wallet

In the installer, on the Set keys screen, select Set. Select the Specter DIY under Detected devices. The Specter DIY sends its xpub without asking you to confirm.

Register the descriptor

Register the descriptor on every Specter DIY of the wallet, including one that holds only a recovery key. Without it, the Specter DIY cannot recognize the wallet's change or addresses.

Open the registration list

In the installer, the Register descriptor step follows the descriptor backup. For an existing wallet, go to Settings > Wallet and select Register on device.

Select the Specter DIY

Connect and unlock the Specter DIY, then select it in the list. Liana shows Processing, please check your device.

Read the wallet on the Specter DIY

The Specter DIY shows Add wallet "Liana-xxxxxxxx"?, where the eight characters are the descriptor's checksum. It shows the script type (Native Segwit or Taproot) and the policy in Miniscript. Check three things:

  • Timelocks: Each older() holds a timelock of the wallet in blocks, such as older(52596) for 52,596 blocks (about 1 year).
  • This device's key: My key marks the key of this Specter DIY.
  • The other keys: Each External key shows a fingerprint. Compare each one with the fingerprints of your other keys in Liana.
Specter DIY screen asking to add the wallet Liana-t26ywzl9, with the policy Native Segwit, the Miniscript or_d(pk(A), and_v(v:pkh(B), older(52596))), My key (A) 73c5da0a and External key (B) b8688df1.
Check each older() against the wallet's timelock, and each fingerprint against your keys.

In the installer and under Settings, Liana lets you select only a Specter DIY whose fingerprint is in the descriptor. It marks any other one This signing device is not related to this Liana wallet. If the Specter DIY shows None of the keys belong to the device., it holds no key of this descriptor. Tap Cancel and check the descriptor.

Tap Confirm to register

On the Specter DIY, tap Confirm. In the installer, Liana marks the Specter DIY with a check mark. Under Settings, Liana shows no mark, so open Wallets on the Specter DIY and look for Liana-xxxxxxxx under Your wallets.

Specter DIY wallet list showing Default and Liana-t26ywzl9 under Your wallets.
Once registered, the wallet appears under Your wallets with the descriptor's checksum in its name.

Tick the confirmation

If you created the wallet in the installer, tick I have registered the descriptor on my device(s), then select Next.

You changed the wallet?

Adding a recovery path, replacing a key, or changing a timelock creates a new descriptor. Register the new descriptor on every Specter DIY before you sign with it.

Verify an address

Check each new address on the Specter DIY before you share it. You need the Specter DIY and its QR scanner, not the USB cable.

Generate the address

In Receive, select Generate address, enter a label, then select Generate.

Open the verification window

Select Verify on signing device. If the Specter DIY is plugged in, its entry shows a warning icon. Its tooltip reads Liana cannot request the device to display the address. Verify it with the QR code in the options below.

Show the QR code for the Specter DIY

Expand Other options, then select Show QR code. Unlike the QR code of the Address window, it carries the address index the Specter DIY needs.

Scan the QR code

On the Specter DIY's main menu, tap Scan QR code, then point the scanner at Liana's screen.

Compare the two addresses

The Specter DIY shows Liana-xxxxxxxx, Receiving address #n, and the address in groups of six characters. Check that the address matches the one in Liana.

The Specter DIY shows Can't find wallet owning address?

Do not use the address. Check that the Specter DIY is on the wallet's network and has this wallet under Wallets, then scan again.

Specter DIY showing receiving address #1 of the wallet Liana-t26ywzl9, with its QR code and the address in groups of six characters.
The Specter DIY derives the address from the registered wallet. Check that the address matches the one in Liana.

Sign a transaction

The Specter DIY shows Unknown wallet in inputs?

The Specter DIY does not know this wallet, so it cannot tell your change from an address that malware put in its place. Tap Cancel, then register the descriptor and sign again.

Build the transaction

Build it in Send, as Send bitcoin describes.

Select Sign, then the Specter DIY

Connect and unlock the Specter DIY. Select Sign, then select the Specter DIY in the Select signing device to sign with: window.

Check the payment on the Specter DIY

The Specter DIY lists the amount it spends from Liana-xxxxxxxx, then each payment with its amount and address, then the fee in sats. It leaves out the change it has verified. Turn on Show detailed information to see every input and output, change included. Compare each address and amount with the payment you intended.

Specter DIY transaction review: 0.25 tBTC spent from Liana-t26ywzl9, 0.05 tBTC to a bcrt1q address, and a fee of 810 sats.
Read the amount, the address and the fee on the Specter DIY. Verified change is not listed.

Tap Confirm to sign

On the Specter DIY, tap Confirm. Liana adds the signature to the draft. Its Signatures count reaches the threshold, such as 2 of 2, once the path has every signature it needs. If the path needs more signatures, sign with the other keys, then select Broadcast.

Sign with a recovery path

Build the transaction in Recovery, as Recover in Liana describes, then sign it as above with the Specter DIY that holds a key of the recovery path. Liana marks a Specter DIY that holds another key of this wallet with This signing device is not part of this spending path.

On the Specter DIY, turn on Show detailed information. From firmware 1.10.3, each input shows the timelock of its path, such as Seq: 0x0000CD74 (Relative Locktime) and 52596 blocks.

Specter DIY transaction details with two inputs from Liana-t26ywzl9, each marked Seq: 0x0000CD74 (Relative Locktime) and 52596 blocks.
With Show detailed information on, each input of a recovery transaction shows the timelock of its path.

Update the firmware

The bootloader installs only firmware that the release keys signed.

Your Specter DIY runs firmware 1.9.0 or earlier?

Install 1.10.3 first. It changes the keys the bootloader accepts. Without it, the bootloader rejects every later release with Not enough signatures.

Copy the upgrade file to the SD card

Download specter_upgrade_v1.10.5.bin from the 1.10.5 release. Copy it to the root of the SD card, with no other specter_upgrade file next to it.

Insert the card and power on

The bootloader checks the signatures and installs the firmware. When it says it is done, restart the Specter DIY.