Skip to content

Releases

Specter-DIY for ESP32-P4 v0.1.0-alpha.9

Pre-release

Choose a tag to compare

@sandman21vs sandman21vs released this 24 Nov 21:59
a669504

Ninth pre-release of Specter-DIY on the Waveshare ESP32-P4-WIFI6-Touch-LCD-4.3-C: it now runs on boards with the newer ESP32-P4 v3.x chip, and the web flasher picks the right build by itself.

Warning

Development build. Do not use with real funds. No Secure Boot, no flash encryption, no eFuses burned. Everything is reversible, but the device is not protected against someone with physical access.

What's new since alpha.8

  • Boards with an ESP32-P4 v3.x chip are supported. Newer boards ship with chip revision v3.x, and every earlier build refused to boot on them (#21). ESP-IDF builds an image for v0.x/v1.x or for v3.x, never both, so this release has two zips, one per chip family. The v3.x build also fixes two things the chip needs: the display clock source, and a bus timeout that turned PSRAM accesses into crashes. Details in #22.
  • The web flasher detects the chip revision. On Connect it reads the revision from the chip, whatever firmware the board is running, factory firmware included, and uses the matching build. You can also pick the family by hand. If the build does not match the chip, flashing is refused.
  • The flasher works on v3.1/v3.2 chips. It now uses esptool-js 0.7.0, which powers the flash on those chips. Before, Connect failed with "Serial data stream stopped". It also runs at 115200 baud now, so flashing takes a few minutes.
  • The bootloader header is no longer rewritten when flashing. Before, flashing a v3.x build made the chip report SHA-256 comparison failed on every boot. The board booted anyway, but with Secure Boot it would not have.

Which zip

Chip revision Zip
v0.x / v1.x specter-diy-wave_43-v0.1.0-alpha.9.zip
v3.x specter-diy-wave_43_v3-v0.1.0-alpha.9.zip

The web flasher chooses for you. To check by hand: esptool.py --chip esp32p4 flash_id prints Chip is ESP32-P4 (revision v3.2), or the v1.x equivalent.

Tested on a v3.2 board

Boot, crypto (hashes, TRNG, secp256k1, BIP340, BIP84 vectors), PSRAM, display, camera (OV5647 at 37.7 fps), the smartcard hat with the Specter applet, and NFC backup on an RFID Unit 2 with a MIFARE Classic ring. Not yet tested on v3.x: microSD with a card, scanning a QR, and the smartcard over NFC.

Thanks

  • @Schnuartz, for reporting #21 with the first v3.x board and showing it could work.
  • @odudex, whose Kern port to v3.x showed what the chip needs. The v3.x changes here follow it.

Flash from the browser

  1. Plug the board into its UART USB-C port with a data cable.
  2. Open the Specter-DIY Web Flasher in Chrome, Edge or Brave (desktop). It serves this release.
  3. Leave Auto-detect selected, tick the acknowledgement, click Connect, pick the board's serial port, then Flash.
  4. The board reboots, formats its internal storage and shows the Specter screen.

Or download the zip for your chip below and load it in the flasher's Custom ZIP bundle tab. Both list:

File Address
bootloader.bin 0x2000
partition-table.bin 0x8000
specter-diy.bin 0x10000
storage-reset.bin 0x410000

Flashing wipes everything stored on the device. Keep your recovery phrase. Keys saved on a smartcard, a microSD or an NFC card are not touched. But a key saved to a smartcard as Encrypt only reads back on the device that saved it, and not after a wipe. Save it as plain text if the card has to survive a reflash.

If Connect fails, hold BOOT, tap RST, release BOOT and try again.

Flash from the command line

pip install esptool
esptool.py --chip esp32p4 write_flash 0x2000 bootloader.bin 0x8000 partition-table.bin 0x10000 specter-diy.bin 0x410000 storage-reset.bin

Checksums are in SHA256SUMS.txt inside each zip.

Specter-DIY for ESP32-P4 v3.x chips (dev build, untested)

Choose a tag to compare

Development build for ESP32-P4 v3.x chips. Not tested on v3.x hardware yet. Built from branch esp32p4-rev3-dev (commit 75f906e) for boards like the one in #21. I don't have a v3.x board yet, so this is for people who do and want to try it.

Warning

Development build. Do not use with real funds. Flashing it wipes the device's internal storage: keep your recovery phrase.

This image only boots on ESP32-P4 v3.x. Boards with a v0.x/v1.x chip keep using alpha.8.

Flash it

  1. Open the Specter-DIY Web Flasher and plug the board into its UART port.
  2. Leave Auto-detect selected, tick the acknowledgement, Connect. The page reads the chip revision and picks this build on a v3.x chip. You can also pick v3.x by hand, or load specter-diy-wave_43_v3-v0.1.0-alpha.8-rev3-dev.zip under Custom ZIP bundle.
  3. Flash. It runs at 115200 baud, so it takes a few minutes.

What changed for v3.x

Ported from odudex/Kern, which already runs on a v3.2 board:

  • Image built for v3.0–v3.99 (P4_REV3=1).
  • DSI PHY clock source picked by ESP-IDF per revision (the old one does not exist on v3.x and stops the display from starting).
  • HP core bus timeout turned off at boot (PSRAM access faults on v3.x).
  • Web flasher on esptool-js 0.7.0: 0.6.0 never powers the flash on v3.1/v3.2, which caused the "Serial data stream stopped" error in #21.

Please report

In #21: the chip revision the flasher printed, whether it boots and touch works, and how the camera/QR, microSD, smartcard and NFC behave (none tested on v3.x). If it doesn't boot, the serial log from the UART port at 115200 baud helps a lot.

Checksums are in SHA256SUMS.txt inside the zip.

Test build for PR #20: two lines of anti-phishing words

Choose a tag to compare

@sandman21vs sandman21vs released this 22 Nov 11:34

Test build, not a release. Built from #20 (branch esp32p4-pin-words-two-lines, commit 03e3804) so it can be tried without building. It is not served by the web flasher's "Latest release".

What it tests: the PIN screen shows at most two lines of anti-phishing words, as on the original Specter firmware (#15).

Warning

Development build. Do not use with real funds. Flashing it wipes the device's internal storage: keep your recovery phrase.

Flash it

  1. Download specter-diy-wave_43-pr20-pin-words.zip below.
  2. Open the Specter-DIY Web Flasher, choose Custom ZIP bundle and select the zip, unchanged.
  3. Plug the board into its UART port, tick the acknowledgement, Connect, Flash.

To go back, flash Latest release from the same page.

Same bootloader, partition table and storage reset as alpha.7; only specter-diy.bin changes. Checksums are in SHA256SUMS.txt inside the zip.

Specter-DIY for ESP32-P4 v0.1.0-alpha.8

Pre-release

Choose a tag to compare

@sandman21vs sandman21vs released this 22 Nov 11:48
8f109f5

Eighth pre-release of Specter-DIY on the Waveshare ESP32-P4-WIFI6-Touch-LCD-4.3-C: the smartcard hat now matches CryptoGuide's official V1.0.9 board, and the camera no longer reads a QR code from an earlier scan.

Warning

Development build. Do not use with real funds. No Secure Boot, no flash encryption, no eFuses burned. Everything is reversible, but the device is not protected against someone with physical access.

What's new since alpha.7

  • Smartcard hat on GPIO21/GPIO28, as on the official V1.0.9 board. CryptoGuide's Smartcard Hat V1.0.9 has a route for the ESP32-P4: with R47/R48 fitted, its serial lines land on header pins 16 and 15, GPIO21 and GPIO28. The firmware now reads the hat there, so a V1.0.9 hat fitted for the P4 works with no wires. Older hats need two wires, shown in the README. Details in #17.
  • The camera never decodes a frame from an earlier scan. After scanning a QR code and cancelling, the next scan could return the old code, even with nothing in front of the camera, and the preview opened with the old picture. For a seed import that meant importing a seed that was no longer there. Thanks to @asti-lb for finding and fixing it in #16.
  • A scanned seed no longer stays in memory after the scan. The camera buffers are blanked when the scan screen closes, and before the camera is shut down. Details in #18.
  • README: pictures of the board, the smartcard hat (V1.0.9 and older) and the three NFC readers. Details in #19.

Important

If you reworked your hat for an earlier build, with the serial RX wire on GPIO22, move that wire to GPIO28 (header pin 15, Raspberry Pi numbering). The TX wire on GPIO21 stays. Without this change the reader does not answer.

Same bootloader, partition table and storage reset as alpha.7.

Thanks

  • CryptoGuide, for the Smartcard Hat and for adding an ESP32-P4 route to it in V1.0.9, which is what made a hat with no wires possible on this board.
  • @Schnuartz, for testing the port next to the original Specter and reporting what differs, like the anti-phishing words on the PIN screen (#15, being worked on in #20).
  • @asti-lb, for finding and fixing the camera reading old QR codes (#16).

Flash from the browser

  1. Plug the board into its UART USB-C port with a data cable.
  2. Open the Specter-DIY Web Flasher in Chrome, Edge or Brave (desktop). It serves this release.
  3. Tick the acknowledgement, click Connect, pick the board's serial port, then Flash.
  4. The board reboots, formats its internal storage and shows the Specter screen.

Or download specter-diy-wave_43-v0.1.0-alpha.8.zip below and load it in the flasher's Custom ZIP bundle tab. It lists:

File Address
bootloader.bin 0x2000
partition-table.bin 0x8000
specter-diy.bin 0x10000
storage-reset.bin 0x410000

Flashing this bundle wipes everything stored on the device. Keep your recovery phrase. Keys saved on a smartcard, a microSD or an NFC card are not touched - but a key saved to a smartcard as Encrypt only reads back on the device that saved it, and not after a wipe. Save it as plain text if the card has to survive a reflash.

If Connect fails, hold BOOT, tap RST, release BOOT and try again.

Flash from the command line

pip install esptool
esptool.py --chip esp32p4 -b 460800 write_flash --flash_mode dio --flash_size 16MB 0x2000 bootloader.bin 0x8000 partition-table.bin 0x10000 specter-diy.bin 0x410000 storage-reset.bin

Specter-DIY for ESP32-P4 v0.1.0-alpha.7

Pre-release

Choose a tag to compare

Seventh pre-release of Specter-DIY on the Waveshare ESP32-P4-WIFI6-Touch-LCD-4.3-C: a fix for the battery icon.

Warning

Development build. Do not use with real funds. No Secure Boot, no flash encryption, no eFuses burned. Everything is reversible, but the device is not protected against someone with physical access.

What's new since alpha.6

  • The battery icon no longer moves under touch. On alpha.6 the icon in the top right corner could be dragged back and forth with a finger. The widget holding it was smaller than the icon, and since LVGL 9 every widget scrolls by default when its content does not fit, so it had become a tiny scroll area. Scrolling and touch are now off on it, and the icon fits. Thanks to @Schnuartz for reporting it. Details in #13.

Nothing else changed: same bootloader, same partition table, same features as alpha.6.

Flash from the browser

  1. Plug the board into its UART USB-C port with a data cable.
  2. Open the Specter-DIY Web Flasher in Chrome, Edge or Brave (desktop). It serves this release.
  3. Tick the acknowledgement, click Connect, pick the board's serial port, then Flash.
  4. The board reboots, formats its internal storage and shows the Specter screen.

Or download specter-diy-wave_43-v0.1.0-alpha.7.zip below and load it in the flasher's Custom ZIP bundle tab. It lists:

File Address
bootloader.bin 0x2000
partition-table.bin 0x8000
specter-diy.bin 0x10000
storage-reset.bin 0x410000

Flashing this bundle wipes everything stored on the device. Keep your recovery phrase. Keys saved on a smartcard, a microSD or an NFC card are not touched - but a key saved to a smartcard as Encrypt only reads back on the device that saved it, and not after a wipe. Save it as plain text if the card has to survive a reflash.

If Connect fails, hold BOOT, tap RST, release BOOT and try again.

Flash from the command line

pip install esptool
esptool.py --chip esp32p4 -b 460800 write_flash --flash_mode dio --flash_size 16MB 0x2000 bootloader.bin 0x8000 partition-table.bin 0x10000 specter-diy.bin 0x410000 storage-reset.bin

NFC readers

Unchanged since alpha.6: the M5Stack RFID Unit 2 and the PN532 on I2C, the RFID-RC522 on SPI, found automatically. For the smartcard, a PN532; for the key backup only, any of the three. The comparison and the wiring are in the alpha.6 notes and the README.

Known limitations

  • PN532: NTAG backup cards have only been tested against a simulated chip.
  • Smartcard over NFC: only one card is remembered at a time. With the RFID Unit 2 the card's position on the reader is critical; an RC522 can not power the card.
  • Only ESP32-P4 chip revisions v0.x / v1.x. The flasher refuses v3.x chips.
  • No secure boot, flash encryption or secure wipe.
  • NFC key backup and the smartcard over NFC are proofs of concept with no security review. Keep another backup.
  • embit is not yet at upstream's v0.8.2; the rest of the app is at v1.10.5.
  • Signing a transaction from Specter Desktop over USB has not been tested end to end; the transport has.

Build it yourself

See the README. This bundle was built from commit dffd807 on esp32-p4-port.

SHA-256 of the zip: 6bc132c1b7d80f5d3e3f8ed9916ee386c8d7f2741c53046a1d42d96c1913294a

Specter-DIY for ESP32-P4 v0.1.0-alpha.6

Pre-release

Choose a tag to compare

@sandman21vs sandman21vs released this 13 Oct 21:00
f54e345

Sixth pre-release of Specter-DIY on the Waveshare ESP32-P4-WIFI6-Touch-LCD-4.3-C: two cheaper NFC readers, and a comparison of the three.

Warning

Development build. Do not use with real funds. No Secure Boot, no flash encryption, no eFuses burned. Everything is reversible, but the device is not protected against someone with physical access.

What's new since alpha.5

  • PN532 NFC reader (the red "PN532 NFC RFID module V3"), on the same two I2C wires as the RFID Unit 2. The Specter smartcard works over it, and much more easily than before: the card is found at once instead of on one exact spot.
  • RFID-RC522 NFC reader, on SPI, for the key backup on MIFARE and NTAG cards. It can not read the Specter smartcard: the module does not deliver enough power for a card with a processor.
  • The reader is detected automatically. One is plugged in at a time; nothing to configure.
  • Documentation: a comparison of the three readers, with wiring for each. Details in #12.

Which reader to get

M5Stack RFID Unit 2 PN532 module V3 RFID-RC522 module
Chip WS1850S NXP PN532 NXP MFRC522
Price the most expensive of the three a few dollars the cheapest
Wires 4 (I2C, Grove cable) 4 (I2C) 7 (SPI)
Key backup on MIFARE / NTAG cards works on the board works on the board with MIFARE Classic; NTAG simulated only cards are read on the board
Specter smartcard (JavaCard) works, on one exact spot works, found at once does not work
Time for the card to open its secure channel about 1.0 s about 0.3 s -

For the smartcard, a PN532. For the key backup only, any of the three.

Measured with the same smartcard on each reader: twenty secure channel openings out of twenty on the PN532 at the first try, with the card computing three times faster than on the RFID Unit 2; twenty out of twenty on the RFID Unit 2 once the card is on the right spot; and on the RC522 not one complete answer in over nine hundred tries, while a MIFARE card in the same place was read every time.

Wiring

PN532 and RFID Unit 2 (I2C):

Reader Board
SDA GPIO7
SCL GPIO8
VCC 3V3, not 5 V
GND GND

For the PN532: set the module's switch to I2C (it usually ships set to serial and then does not answer), cut its power after changing the switch, and use the four pins on the side of the module.

RC522 (SPI): SCK to GPIO31, MOSI to GPIO29, MISO to GPIO30, SDA/SS to GPIO50, RST to GPIO28, 3.3V to 3V3, GND to GND.

Then Device settings → Communication → NFC card reader: Test the reader says which reader was found.

How far it was tested. PN532, on the board, with one module: the smartcard with the diagnostic script and through the screens (the switch, the PIN, the tap), and a MIFARE Classic card written and read back at six record sizes. NTAG cards on the PN532, and writing a card on the RC522: only against simulated chips. All of this has had very little use.

The full write-up is in the README.

Flash from the browser

  1. Plug the board into its UART USB-C port with a data cable.
  2. Open the Specter-DIY Web Flasher in Chrome, Edge or Brave (desktop). It serves this release.
  3. Tick the acknowledgement, click Connect, pick the board's serial port, then Flash.
  4. The board reboots, formats its internal storage and shows the Specter screen.

Or download specter-diy-wave_43-v0.1.0-alpha.6.zip below and load it in the flasher's Custom ZIP bundle tab. It lists:

File Address
bootloader.bin 0x2000
partition-table.bin 0x8000
specter-diy.bin 0x10000
storage-reset.bin 0x410000

Flashing this bundle wipes everything stored on the device. Keep your recovery phrase. Keys saved on a smartcard, a microSD or an NFC card are not touched - but a key saved to a smartcard as Encrypt only reads back on the device that saved it, and not after a wipe. Save it as plain text if the card has to survive a reflash.

If Connect fails, hold BOOT, tap RST, release BOOT and try again.

Flash from the command line

pip install esptool
esptool.py --chip esp32p4 -b 460800 write_flash --flash_mode dio --flash_size 16MB 0x2000 bootloader.bin 0x8000 partition-table.bin 0x10000 specter-diy.bin 0x410000 storage-reset.bin

Known limitations

  • PN532: NTAG backup cards have only been tested against a simulated chip.
  • Smartcard over NFC: only one card is remembered at a time. With the RFID Unit 2 the card's position on the reader is critical; an RC522 can not power the card.
  • Only ESP32-P4 chip revisions v0.x / v1.x. The flasher refuses v3.x chips.
  • No secure boot, flash encryption or secure wipe.
  • NFC key backup and the smartcard over NFC are proofs of concept with no security review. Keep another backup.
  • embit is not yet at upstream's v0.8.2; the rest of the app is at v1.10.5.
  • Signing a transaction from Specter Desktop over USB has not been tested end to end; the transport has.

Build it yourself

See the README. This bundle was built from commit f54e345 on esp32-p4-port.

SHA-256 of the zip: aa476ff73a07357c91acdfc9720aae6552f82f735e33d64556dcd75309701393

Specter-DIY for ESP32-P4 v0.1.0-alpha.5

Pre-release

Choose a tag to compare

@sandman21vs sandman21vs released this 09 Oct 22:56
5b22528

Fifth pre-release of Specter-DIY on the Waveshare ESP32-P4-WIFI6-Touch-LCD-4.3-C: the Specter smartcard read over NFC.

Warning

Development build. Do not use with real funds. No Secure Boot, no flash encryption, no eFuses burned. Everything is reversible, but the device is not protected against someone with physical access.

What's new since alpha.4

  • Smartcard keystore over NFC (experimental), with the same M5Stack RFID Unit 2 used for the key backup. The Specter smartcard (JavaCard with the MemoryCard applet) is read by the NFC reader instead of the smartcard hat. Same card, same PIN, same stored key: a card set up through the hat works over NFC and the other way round. Details in #11.
  • Data on a smartcard that the device can not read (saved as "Encrypt" by another device, or before a wipe) can now be overwritten or deleted over NFC, behind a warning.
  • The key backup screens say so when the card held to the reader is a smartcard instead of a backup card.

Smartcard over NFC

Wiring. The reader goes on the board's I2C bus, as for the key backup:

RFID Unit 2 (Grove wire) Board
SDA (yellow) GPIO7
SCL (white) GPIO8
VCC (red) 3V3, not 5 V
GND (black) GND

Turn it on. Device settings → Communication → NFC card reader → Use the smartcard over NFC, then restart.

Use it.

  • The first time, the device asks for the card before the PIN screen, to learn which card it is. Type the PIN with the card away, then hold the card against the reader once more.
  • From then on a start is the PIN and one tap. Load key from smartcard does not need the card again.
  • Each change in Smartcard storage is one tap, two to save a key.
  • Cancelling the tap at start, before any card was shown, starts the device without the smartcard.
  • A card in the hat's slot still wins.

Where the card goes. On the reader module, and it has to stay still. The reader's antenna is small: on a good spot the card works every time, a little off it is found and then drops out in the middle of a command. Over the edge of the card usually works better than over its centre. If the card slips, the screen says so and waits for it again.

What the device keeps. The public key of the card last used, in flash, so that the PIN screen can show the anti-phishing words before the card is there. The tap that follows proves the card owns that key; a different card is refused before it sees the PIN. The PIN stays in memory while the device is unlocked, because the card locks itself every time it leaves the reader, and is forgotten when the device is locked.

If the card is not found. Copy ports/esp32p4/test_nfc_javacard.py to the board and run test_nfc_javacard.go() from the serial console. It shows live whether the card answers, to find the spot, then opens the secure channel twenty times and says where it stops.

How far it was tested. On the board, with one NXP JCOP card and this exact build: starting with the PIN and one tap, loading the key, the storage menu, and cancelling the tap at start without the card. Before that, twenty secure channel openings in a row with the diagnostic script. The failure cases (a card lost mid-command, a different card, a wrong PIN whose answer is lost) ran only against a simulated reader and card. It has had very little use.

The full write-up is in the README.

Flash from the browser

  1. Plug the board into its UART USB-C port with a data cable.
  2. Open the Specter-DIY Web Flasher in Chrome, Edge or Brave (desktop). It serves this release.
  3. Tick the acknowledgement, click Connect, pick the board's serial port, then Flash.
  4. The board reboots, formats its internal storage and shows the Specter screen.

Or download specter-diy-wave_43-v0.1.0-alpha.5.zip below and load it in the flasher's Custom ZIP bundle tab. It lists:

File Address
bootloader.bin 0x2000
partition-table.bin 0x8000
specter-diy.bin 0x10000
storage-reset.bin 0x410000

Flashing this bundle wipes everything stored on the device. Keep your recovery phrase. Keys saved on a smartcard, a microSD or an NFC card are not touched - but a key saved to a smartcard as Encrypt only reads back on the device that saved it, and not after a wipe. Save it as plain text if the card has to survive a reflash.

If Connect fails, hold BOOT, tap RST, release BOOT and try again.

Flash from the command line

pip install esptool
esptool.py --chip esp32p4 -b 460800 write_flash --flash_mode dio --flash_size 16MB 0x2000 bootloader.bin 0x8000 partition-table.bin 0x10000 specter-diy.bin 0x410000 storage-reset.bin

Known limitations

  • Smartcard over NFC: the card's position on the reader is critical, and only one card is remembered at a time.
  • Only ESP32-P4 chip revisions v0.x / v1.x. The flasher refuses v3.x chips.
  • No secure boot, flash encryption or secure wipe.
  • NFC key backup and the smartcard over NFC are proofs of concept with no security review. Keep another backup.
  • embit is not yet at upstream's v0.8.2; the rest of the app is at v1.10.5.
  • Signing a transaction from Specter Desktop over USB has not been tested end to end; the transport has.

Build it yourself

See the README. This bundle was built from commit 5b22528 on esp32-p4-port.

SHA-256 of the zip: 27f68c94aa2e0d8782f44e05e471b771946f773989e8e87c6a3b3e7db5cac239

Specter-DIY for ESP32-P4 v0.1.0-alpha.4

Pre-release

Choose a tag to compare

@sandman21vs sandman21vs released this 09 Oct 20:14
df89af2

Fourth pre-release of Specter-DIY on the Waveshare ESP32-P4-WIFI6-Touch-LCD-4.3-C: key backup on NFC cards, and the app brought up to upstream v1.10.5.

Warning

Development build. Do not use with real funds. No Secure Boot, no flash encryption, no eFuses burned. Everything is reversible, but the device is not protected against someone with physical access.

What's new since alpha.3

  • Key backup on NFC cards (experimental), with an M5Stack RFID Unit 2. The recovery phrase is encrypted with a password and written to a card, and can be loaded back. Details in #8 and #10.
  • Upstream v1.10.5 (#9):
    • Change outputs are only treated as change when their derivation is verified against the wallet descriptor.
    • A warning when a transaction mixes inputs from more than one wallet.
    • Output from a stalled hardware random number generator is rejected instead of used.

NFC card reader

Wiring. The reader goes on the board's I2C bus:

RFID Unit 2 (Grove wire) Board
SDA (yellow) GPIO7
SCL (white) GPIO8
VCC (red) 3V3, not 5 V
GND (black) GND

Turn it on. NFC is off after flashing. Go to Device settings → Communication → NFC card reader, tap Test the reader to check the wiring, then Enable NFC. After that:

  • Save: Settings → Save key to NFC card, with a key loaded.
  • Load: Load key from NFC card, on the first menu.

Cards. MIFARE Classic 1K/4K (the ones sold with the reader) and NTAG213/215/216. A 48-byte Ultralight is too small. DESFire, bank cards and 125 kHz fobs do not work. A MIFARE Classic that a phone formatted has to be erased with an NFC app first.

What is on the card. The BIP39 entropy in a KEF envelope (AES-256-GCM, PBKDF2-HMAC-SHA256 with 100,000 rounds). The password is the only protection: anyone who gets the card can copy it and try passwords offline. The passphrase is not on the card. The format is shared with the NFC branches of Kern and Krux.

The full write-up is in the README.

Flash from the browser

  1. Plug the board into its UART USB-C port with a data cable.
  2. Open the Specter-DIY Web Flasher in Chrome, Edge or Brave (desktop). It serves this release.
  3. Tick the acknowledgement, click Connect, pick the board's serial port, then Flash.
  4. The board reboots, formats its internal storage and shows the Specter screen.

Or download specter-diy-wave_43-v0.1.0-alpha.4.zip below and load it in the flasher's Custom ZIP bundle tab. It lists:

File Address
bootloader.bin 0x2000
partition-table.bin 0x8000
specter-diy.bin 0x10000
storage-reset.bin 0x410000

Flashing this bundle wipes everything stored on the device. Keep your recovery phrase. Keys saved on a smartcard, a microSD or an NFC card are not touched.

If Connect fails, hold BOOT, tap RST, release BOOT and try again.

Flash from the command line

pip install esptool
esptool.py --chip esp32p4 -b 460800 write_flash --flash_mode dio --flash_size 16MB 0x2000 bootloader.bin 0x8000 partition-table.bin 0x10000 specter-diy.bin 0x410000 storage-reset.bin

Known limitations

  • Only ESP32-P4 chip revisions v0.x / v1.x. The flasher refuses v3.x chips.
  • No secure boot, flash encryption or secure wipe.
  • NFC key backup is a proof of concept with no security review. Keep another backup.
  • embit is not yet at upstream's v0.8.2; the rest of the app is at v1.10.5.
  • Signing a transaction from Specter Desktop over USB has not been tested end to end; the transport has.

Build it yourself

See the README. This bundle was built from commit df89af2 on esp32-p4-port.

SHA-256 of the zip: ac55aa86392509dfb75c7cb99042448647a9bfbf7e79c88cfc8d044b659cc7a9

Specter-DIY for ESP32-P4 v0.1.0-alpha.3

Pre-release

Choose a tag to compare

@sandman21vs sandman21vs released this 08 Oct 14:59
b28f8ca

Third pre-release of Specter-DIY on the Waveshare ESP32-P4-WIFI6-Touch-LCD-4.3-C: USB with Specter Desktop, the smartcard keystore, the battery level and a microSD fix.

Warning

Development build. Do not use with real funds. No Secure Boot, no flash encryption, no eFuses burned. Everything is reversible, but the device is not protected against someone with physical access.

What's new since alpha.2

  • USB with Specter Desktop and HWI, on the board's native USB (OTG) port. Enable it in the settings; it works once a key is loaded. Details in #5.
  • Smartcard keystore with the SEC1210 Smartcard Hat by CryptoGuide. The hat needs a small rework, see below. Details in #6.
  • Battery level in the top bar: full, half or empty.
  • microSD: the card comes back after a failed probe, and removing it is detected. Cards must be MBR + FAT32.
  • Security fix: the native USB port no longer exposes a Python console at the PIN screen.
  • Fix: the card's handshake signature is accepted when it is zero-padded. About 1 boot in 128 the card looked absent.

Smartcard hat wiring

The hat's serial lines land on GPIO37/38 on this board, which are the console and flashing pins. To use it:

  1. Lift R44 and R45 on the hat (the two 100 Ω resistors on the serial lines).
  2. Wire R44's chip-side pad to GPIO21 (header pin 15) and R45's chip-side pad to GPIO22 (header pin 17).
  3. Plug the hat onto the 40-pin header.

The card needs the Specter applet from specter-javacard. The full write-up is in #7.

Flash from the browser

  1. Plug the board into its UART USB-C port with a data cable.
  2. Open the Specter-DIY Web Flasher in Chrome, Edge or Brave (desktop). It serves this release.
  3. Tick the acknowledgement, click Connect, pick the board's serial port, then Flash.
  4. The board reboots, formats its internal storage and shows the Specter screen.

Or download specter-diy-wave_43-v0.1.0-alpha.3.zip below and load it in the flasher's Custom ZIP bundle tab. It lists:

File Address
bootloader.bin 0x2000
partition-table.bin 0x8000
specter-diy.bin 0x10000
storage-reset.bin 0x410000

Flashing this bundle wipes everything stored on the device. Keep your recovery phrase. Keys saved on a smartcard or microSD are not touched.

If Connect fails, hold BOOT, tap RST, release BOOT and try again.

Flash from the command line

pip install esptool
esptool.py --chip esp32p4 -b 460800 write_flash --flash_mode dio --flash_size 16MB 0x2000 bootloader.bin 0x8000 partition-table.bin 0x10000 specter-diy.bin 0x410000 storage-reset.bin

Known limitations

  • Only ESP32-P4 chip revisions v0.x / v1.x. The flasher refuses v3.x chips.
  • No secure boot, flash encryption or secure wipe.
  • Signing a transaction from Specter Desktop over USB has not been tested end to end; the transport has.

Build it yourself

See the README. This bundle was built from commit b28f8ca on esp32-p4-port.

SHA-256 of the zip: 11864f986dda70b1b1bfdebc51b15cace03614d8c1071a494e98b51ef88be87e

Specter-DIY for ESP32-P4 v0.1.0-alpha.2

Pre-release

Choose a tag to compare

Second pre-release of Specter-DIY on the Waveshare ESP32-P4-WIFI6-Touch-LCD-4.3-C: live camera preview, no more double taps, and a much more fluid UI. Details in #3.

Warning

Development build. Do not use with real funds. No Secure Boot, no flash encryption, no eFuses burned. Everything is reversible, but the device is not protected against someone with physical access.

What's new since alpha.1

  • Live camera preview while scanning QR codes, with the instructions below it.
  • No more double taps: typing 0 no longer produces 00.
  • Fluid UI: the main menu redraws in ~13 ms instead of 57 ms, and animations keep real time.
  • Camera fixes: the app no longer freezes if a camera frame is missing, and scanning no longer stalls the UI on start and stop.
  • Includes the PIN dialog and button flicker fixes from #2.

Flash from the browser

  1. Download specter-diy-wave_43-v0.1.0-alpha.2.zip below. Do not unzip it.

  2. Plug the board into its UART USB-C port with a data cable.

  3. Open the Kern Web Flasher in Chrome, Edge or Brave (desktop).

  4. Choose Custom ZIP Bundle and select the zip. It should list:

    File Address
    bootloader.bin 0x2000
    partition-table.bin 0x8000
    specter-diy.bin 0x10000
    storage-reset.bin 0x410000
  5. Click Connect, pick the board's serial port, then Flash.

  6. The board reboots, formats its internal storage and shows the Specter screen.

Flashing this bundle wipes everything stored on the device. Keep your recovery phrase.

If Connect fails, hold BOOT, tap RST, release BOOT and try again.

Flash from the command line

pip install esptool
esptool.py --chip esp32p4 -b 460800 write_flash --flash_mode dio --flash_size 16MB 0x2000 bootloader.bin 0x8000 partition-table.bin 0x10000 specter-diy.bin 0x410000 storage-reset.bin

Known limitations

  • Only ESP32-P4 chip revisions v0.x / v1.x. The flasher refuses v3.x chips.
  • No secure boot, flash encryption or secure wipe.

Build it yourself

See the README. This bundle was built from commit d9c0c17 on the esp32p4-ui-camera-performance branch (#3).

SHA-256 of the zip: d878666cdf90a0234c9eb8658058cde4c2de17433b124f7687875505386f8114