Skip to content

Repository files navigation

TagID Extension - LNbits extension

Forked from lnbits/boltcards
Extended with PIN limit protection and failed-payment daily-limit fix.

Self custody NFC Bolt Cards with one-time LNURLw links — now with optional PIN verification and accurate daily spend tracking.

Check out lnbits.com & join the Telegram support group Makerbits

Original authors: dni, prusnak, talvasconcelos, arbadacarbaYK, gorrdy, arcbtc / TagID extension: AxelHamburch

Extension manifest source for LNbits: https://raw.githubusercontent.com/AxelHamburch/tagid_extension/main/manifest.json


Added Features

PIN Limit (optional per-card PIN protection)

  • Set a PIN threshold (sat): any withdrawal at or above this amount requires the card holder to enter a 4-digit PIN.
  • The PIN is stored as a salted PBKDF2-SHA256 hash — never in plaintext.
  • After 3 wrong PIN attempts across taps the card is automatically disabled and must be re-enabled by the wallet owner.
  • Attempt counter resets when the card is re-enabled or when a correct PIN is entered.

Failed-Payment Daily Limit Fix

  • Limit checks (tx limit & daily limit) now happen before the hit is marked as spent, so a rejected payment does not consume the daily budget.
  • When a payment fails after the invoice was accepted, the hit amount is zeroed so it does not count towards the daily limit.

About

The World of NFC Tags

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages