Skip to content

Instantly share code, notes, and snippets.

@iWarpBTC
Last active April 29, 2023 19:11
Show Gist options
  • Save iWarpBTC/b88d9aed6ce29d227d68410dada4cd7b to your computer and use it in GitHub Desktop.
Save iWarpBTC/b88d9aed6ce29d227d68410dada4cd7b to your computer and use it in GitHub Desktop.

Card settings

  • I better restart the Boltcard NFC Programmer app.
  • In LNbits, I create (open) a wallet and enable the Boltcards extension (if not).
  • I click + (plus) to open the new card dialog, select wallet, limits and name.
    • If I'm doing this on android in Chrome I can directly scan the card UID by clicking on the NFC icon.
    • Otherwise I read the UID in the Boltcard NFC Programmer app (Advanced -> Read NFC) and copy it from there to LNbits.
  • CREATE CARD
  • I use the QR icon to open the card details and back up the displayed data, especially the UID and Lock (k0), Meta (k1 and k3), File (k2 and k4) keys.
    • If I am doing this on android I copy the link into the Boltcard NFC Programmer app by clicking on KEYS/AUTH LINK. In the app Create Bolt Card -> PASTE AUTH URL
    • Otherwise I scan the Create Bolt Card -> SCAN QR CODE into the app
  • I click WRITE CARD NOW, attach the card and leave it attached until eight green checks appear.

Reset the card

  • I better restart the Boltcard NFC Programmer app.
  • On the Advanced -> Reset Keys screen, I manually copy the keys (remembering that k3 = k1; k4 = k2).
  • I attach the card and leave it attached until the result of the action is displayed.
  • In NFC TagWriter by NXP, I click Write tags -> New dataset -> Link
  • I leave the Description empty, I leave the URI type as Custom URL
    • In the URI data, I will either write something that I can visually verify the immutability of.
      • E.g. '000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    • Or maybe just a static LNURLw, which I can check for functionality.
      • So something like 'lightning:LNURL1XXXXXXXXXXXXXXXXXXXX'
  • In Configure Mirroring Options I select Select Card Type: NTAG 424 DNA
  • The URI/URL should carry over from the previous page.
  • Enable SDM Mirroring is UNchecked.
  • OK -> SAVE & WRITE -> WRITE -> attach card -> without detaching it click TAP TO CONFIRM STORE

Note

  • The Boltcard NFC Programmer app occasionally screws up and shows bullshit like there are default keys when there aren't, etc. That's why it pays of to restart it mercilessly before every action.

Translated with www.DeepL.com/Translator (free version)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment