Skip to main content

boltlib - Bitcoin Lightning BoltCard library

Tests

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

Metadata

Release files for boltlib 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boltlib 0.1.0
File Size Uploaded Provenance Actions
boltlib-0.1.0.tar.gz 13.9 kB Without provenance Details for boltlib-0.1.0.tar.gz

Release files / boltlib-0.1.0.tar.gz

Download URL boltlib-0.1.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ef3fe08d07df51a5a9c2be9ee3761551dc99cadb4d1589f0f580ae7cce68087f
BLAKE2b-256 checksum
How to use checksums
0b240a8af17bf8b5163110dd8a0906061fc7d8d7508542010e61b73292855ce7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.10.1 Windows/10

Security for boltlib 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page