diykey
A Safe signer you build, or try with a passkey

Build a Safe signer from a Cardputer. Or try it right here.

Not connected
The Cardputer's screen

  1. 1
    Fields over USBThis computer sends the transaction as one line of text.
  2. 2
    Hash on the deviceThe signer rebuilds the EIP-712 hash and answers with it.
  3. 3
    Every page reviewedYou page through it on its screen. Del rejects.
  4. 4
    The key signs
This computer

Pick a transaction

    Down the USB cable
    
            
    Up the USB cable
    nothing yet
    This computer claims
    ?waiting
    The Cardputer worked out
    — — — —
    send it to find out
    Signature: milestone 3

    The Cardputer's firmware doesn't sign yet. When it does, the chip's signature over the hash it worked out comes back here, checked against the key above.

    —

    What the signer says

      The fields

      How the hash is made EIP-712, Safe 1.3.0 and later

      Domain separatorkeccak256(EIP712Domain, , )
      SafeTx structkeccak256(SafeTx, to, value, keccak256(data), operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, nonce)
      safeTxHashkeccak256(0x19 0x01 ‖ domain ‖ struct)

      Firmware

      Flash a Cardputer

      Two images, each one file at address 0: the bootloader, the partition table and the program, built from this repository by web/build.sh. The browser checks its SHA-256 before writing.

      The signer reviews transactions and only reads the chip. The key ceremony is the only image that writes to the chip, locks it, and makes its key: two of its steps and the seal can't be undone (how it goes). Run it on a spare chip first, then flash the signer back.

      This replaces whatever is on the board. To keep what's there, save a full image first: esptool.py read_flash 0 ALL backup.bin.

      Image
      loading…
      Serial what goes over the cable