decred / tinydecred

Python tools for Decred
ISC License
27 stars 14 forks source link

add Bitcoin SPV wallet #200

Open buck54321 opened 3 years ago

buck54321 commented 3 years ago

Adds support for a Bitcoin SPV wallet to the decred package. The wallet is implemented by wrapping btcwallet and compiling as a C library, and importing into Python using ctypes.

Since we're mostly concerned with faithfully transmitting data between the caller and btcwallet, our role in testing is straight-forward.

Before running tests (with poetry run pytest tests/integration/btc/ from the decred directory), build the library with either ./build-nix.sh or ./build-win.sh from the libbtcwallet directory.

You need to have Go installed to compile the library. Not certain yet how this translates to production.