Skip to main content

Bitcoin Lightning BoltCard (NTAG 424 DNA) Read/Write library

Project description

boltlib - Bitcoin Lightning BoltCard library

Tests Version Downloads

boltlib is a Python library and command line tool for easy reading and writing of BoltCards based on pyscard

Requirements

  • Python 3.8 or higher.
  • Smart Card Reader (USB CCID class-compliant)

Tested with Identiv uTrust 3700F but should work with others like for example ACS ACR1252U or HID Omnikey 5022 CL.

Note: On Ubuntu/Debian run sudo apt-get install libpcsclite-dev swig before installation.

Installation

$ pip install boltlib

Command line usage

$ boltcard
Usage: boltcard [OPTIONS] COMMAND [ARGS]...

Options:
  --version     Show the version and exit.
  -s, --silent  Silence debug output.
  --help        Show this message and exit.

Commands:
  read   Read BoltCard UID and URI
  write  Write URI to BoltCard (unprovisioned only)

Library usage

import boltlib
uri = boltlib.read_uri()
print(uri)

Development

Requirements

Setup

git clone https://github.com/titusz/boltlib.git
cd boltlib
poetry install

Run Tasks

Before committing changes run code formatting and tests with:

poe all

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boltlib-0.2.0.tar.gz (14.3 kB view details)

Uploaded Source

File details

Details for the file boltlib-0.2.0.tar.gz.

File metadata

  • Download URL: boltlib-0.2.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.1 Windows/10

File hashes

Hashes for boltlib-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9e91cda7bcfcf1f50f6d4bed3017f1af66b0bda8caffced6cf0c6c495b1fa2c2
MD5 4df354a5822ac18cdfa489935cbb5203
BLAKE2b-256 aa9fb1390923eb97071dbdcfc7f01e883cca1c19e331498c5b3ed994a3424c76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page