/buidl

Primary LanguagePython

THIS REPOSITORY COMES WITH ZERO GUARANTEES! USE AT YOUR OWN RISK!

buidl is a python3 bitcoin library with no dependencies, designed to make it easy to BUIDL. buidl has extensive test coverage, which you can use as documentation.

Tests

Run tests with pytest:

$ git clone git@github.com:mflaxman/buidl.git && cd buidl
$ pytest -v

Performance

You can speed this library up by using C-bindings to bitcoin core's libsecp256k1 library.

OS Installation

On Ubuntu:

$ sudo apt install libsecp256k1-dev

On MacOS (HT cuber):

$ brew tap cuber/homebrew-libsecp256k1 && brew install pkg-config libffi libsecp256k1

Python Installation

$ pip3 install cffi && cd buidl && python libsec_build.py

TODO:

  • Add back in wallet.py (see here) without PyCryptodome dependency
  • FIXME in test_network.py