Skip to main content

BLITSkrieg: Bitcoin Lightning Integration Test Service

BLITSkrieg is a gRPC server in Python that aims to provide a set of utilities to test Bitcoin and Lightning Network services.

It uses boltlight in order to hide the differences between the different LN node implementations.

Currently the available services are:

  • bitcoind [1]
  • boltlight [2]
  • c-lightning
  • eclair
  • electrs [3]
  • electrum
  • lnd

Notes

  1. docker image always necessary
  2. docker image necessary to call LN-related commands
  3. docker image necessary to run electrum

System dependencies

  • Linux or macOS (Windows may work, but is not supported)
  • Python 3.9+
  • poetry
  • docker

Build

In order to build the docker image for BLITSkrieg, run:

# production mode
$ ./unix_helper build

# development mode
$ ./unix_helper build-dev

Production mode does not include the package dev dependencies.

Pre-built (production mode) images for the latest versions can be downloaded from GitLab's container registry.

Run

In order to launch the docker image of BLITSkrieg, run:

# production mode
$ ./unix_helper run

# development mode
$ ./unix_helper run-dev

CLI

BLITSkrieg features a Command Line Interface, named bli. It can be installed and called from the project directory.

In order to install the project, run:

$ poetry install

In order to run bli, call it via poetry:

$ poetry run bli

bli supports shell completion for bash and zsh (the shell needs to have completion support enabled). It can be enabled sourcing the appropriate file for the running shell, from the project directory:

$ . ./blitskrieg/share/complete-bli.bash
$ . ./blitskrieg/share/complete-bli.zsh

Use

In order to run a command on BLITSkrieg, you can directly call it by making a gRPC call to it, or you can use its CLI.

To get a list of available CLI commands, run:

$ poetry run bli --help

In order to perform any action in BLITSkrieg, you first need to create a LN stack. To do so, call:

$ poetry run bli createstack [--<implementation>=<number_of_nodes>]

If you do not specify any LN node, this will run a single bitcoind instance and only Bitcoin-related commands will be available.

Visit our docker repository in order to build the required services. Otherwise, if the needed docker images are not available, they will be pulled from hashbeam's GitLab container registry.

Metadata

Release files for blitskrieg 0.2.1

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

Source distribution (sdist)

Source distribution for blitskrieg 0.2.1
File Size Uploaded Provenance Actions
blitskrieg-0.2.1.tar.gz 29.9 kB Without provenance Details for blitskrieg-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for blitskrieg 0.2.1
File Interpreter ABI Platform Actions
blitskrieg-0.2.1-py3-none-any.whl Python 3 none any Details for blitskrieg-0.2.1-py3-none-any.whl

Total release size: 80.7 kB

Release files / blitskrieg-0.2.1.tar.gz

Download URL blitskrieg-0.2.1.tar.gz
Size 29.9 kB
Tags Source
SHA-256 checksum
How to use checksums
96f3ddbf930eb6ac5ac33ec898c81947d7fd011c3f28a7201d5a9239cae84319
BLAKE2b-256 checksum
How to use checksums
9a3be36cf71f19a830802234a79d83d31b0d8cb2d7ac0b96602f2020d50151fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.12 Linux/5.4.109+

Release files / blitskrieg-0.2.1-py3-none-any.whl

Download URL blitskrieg-0.2.1-py3-none-any.whl
Size 50.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86d17e6f682fa690ab3036718b214eeef17fc79f7db6892fad8339a9dd964f01
BLAKE2b-256 checksum
How to use checksums
45c2f426ae9eb98908dccba1cd7333c58859d683271152a41ebabd4928fb8a8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.12 Linux/5.4.109+

Security for blitskrieg 0.2.1

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.

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