Skip to main content

Chik BIP158 (wraps C++)

Project description

Chik BIP158

Build PyPI PyPI - Format GitHub

Total alerts Language grade: Python Language grade: C/C++

This implements the compact block filter construction in BIP 158. The code is not used anywhere in the Bitcoin Core code base yet. The next step towards BIP 157 support would be to create an indexing module similar to TxIndex that constructs the basic and extended filters for each validated block.

Install

python3 -m venv venv
. venv/bin/activate
pip3 install .

Run python tests

python3 tests/simple_test.py

Installation steps on a fresh OSX image

Install brew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew install python3  
brew install boost  

At this point the only error is can’t find boost_thread lib

The issue is the homebrew boost ships libboost_thread-mt libs but doesn’t include plain libboost_thread, so clang can’t find it. Interestingly, homebrew boost does have both plain and -mt files for the libboost_system libraries.

$ find /usr/local/lib/ | grep boost_thread  
libboost_thread-mt.a  
libboost_thread-mt.dylib  

Solution, with no guarantees that this is "the Right Way to do things", but appears to work fine for the configure stage:

cd /usr/local/lib  
ln -s libboost_thread-mt.a libboost_thread.a  
ln -s libboost_thread-mt.dylib libboost_thread.dylib  

ci Building

The primary build process for this repository is to use GitHub Actions to build binary wheels for MacOS, Linux (x64 and aarch64), and Windows and publish them with a source wheel on PyPi. See .github/workflows/build.yml. CMake uses FetchContent to download pybind11. Building is then managed by cibuildwheel. Further installation is then available via pip install chikbip158 e.g.

Contributing and workflow

Contributions are welcome and more details are available in chik-blockchain's CONTRIBUTING.md.

The master branch is usually the currently released latest version on PyPI. Note that at times chikbip158 will be ahead of the release version that chik-blockchain requires in it's master/release version in preparation for a new chik-blockchain release. Please branch or fork master and then create a pull request to the master branch. Linear merging is enforced on master and merging requires a completed review. PRs will kick off a GitHub actions ci build and analysis of chikbip158 at lgtm.com. Please make sure your build is passing and that it does not increase alerts at lgtm.

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

chikbip158-1.3.tar.gz (117.1 kB view details)

Uploaded Source

Built Distributions

chikbip158-1.3-cp311-cp311-win_amd64.whl (80.2 kB view details)

Uploaded CPython 3.11 Windows x86-64

chikbip158-1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

chikbip158-1.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

chikbip158-1.3-cp311-cp311-macosx_10_14_x86_64.whl (157.4 kB view details)

Uploaded CPython 3.11 macOS 10.14+ x86-64

chikbip158-1.3-cp310-cp310-win_amd64.whl (79.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

chikbip158-1.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

chikbip158-1.3-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.12+ x86-64

chikbip158-1.3-cp310-cp310-macosx_10_14_x86_64.whl (155.9 kB view details)

Uploaded CPython 3.10 macOS 10.14+ x86-64

chikbip158-1.3-cp39-cp39-win_amd64.whl (79.1 kB view details)

Uploaded CPython 3.9 Windows x86-64

chikbip158-1.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

chikbip158-1.3-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

chikbip158-1.3-cp39-cp39-macosx_10_14_x86_64.whl (156.1 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

chikbip158-1.3-cp38-cp38-win_amd64.whl (78.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

chikbip158-1.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

chikbip158-1.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

chikbip158-1.3-cp38-cp38-macosx_10_14_x86_64.whl (155.8 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

File details

Details for the file chikbip158-1.3.tar.gz.

File metadata

  • Download URL: chikbip158-1.3.tar.gz
  • Upload date:
  • Size: 117.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for chikbip158-1.3.tar.gz
Algorithm Hash digest
SHA256 5328c45d2a5bdefe9662a412a8e03334a62688b91c89df55e89835fccb59de3a
MD5 ced693a3e81d8c81b8793ea1bb28a3a5
BLAKE2b-256 de6da6a26a668614349c7e56a4c2f1e3248c8f26d6ba4fe08cf148aee5dce30a

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: chikbip158-1.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 80.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for chikbip158-1.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3e39a160b3d354346e5cb951615706e49e61646e2315e618caf1a8de8ea9b69a
MD5 274d3dbc3eec94738a0728e0e10b3899
BLAKE2b-256 79575844d837fdef996eaaac1ee6a85287edf4ad02df2f005b00cff16fee2c54

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ac18013a8f2bba3cf323eda27ba2499c908c587b53f5b0d3f25bb66b4167e0b6
MD5 aef810278ae8b5eaddc86e43f10af56e
BLAKE2b-256 3d9627ccb91f876e894f4473f2c5d99bfcab587825807c8006f97cae3de48786

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d5e5ddfd56d54d6a9483fa950d54892678ed2ab8c831137a0097d86d3cd7fbbb
MD5 133572e2d58d73f8bbba5a57f5d741f7
BLAKE2b-256 a572b1d25b0e4e3e7a18fa38fef4a0e0ce55ee63df56de983f1a96f194dd947c

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 d670fc0af17133d7cd9b30b640743ecb5a85d376a2f214aeba55151f14361e4c
MD5 1efa9f6a4aa9f4fa2d79fcac5eddad3a
BLAKE2b-256 85e1bfefc6922d3d35b3714e05954b6b338e0cf2ee7042aefd7a9d030ac260b6

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: chikbip158-1.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 79.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for chikbip158-1.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 22cd45ee26fece851067af19be630078854bda2d2df35bc049392cf7cde4440c
MD5 e31a92166e8e5d7edfc4f50e2a203b70
BLAKE2b-256 08c19e7cf00606dfc028c2de55a19c2a9d573f34a4e2245094356d53c9ad93dc

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 17363daa4355a4ce6a496538c666ec72585e96bb064b7039a9793c1331289643
MD5 74f1c0ac5924760dcab588eb86663ac5
BLAKE2b-256 7186e06549f2b1268bbe17b43514848fe8f960770dba151cc8a925f6ace8b9a8

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4ef9f5636c350e05c4daf8ccf8f8938bc7773d1911cc3494d13633684fa2ce7b
MD5 0ae0ea70b7b571a5fddde54415eb1861
BLAKE2b-256 5cd16183bd57768a9edb92c53726a08a6a276b61b1c9c7e0e74efbf052c5d290

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 d95c38c17b4cfc8375f3ddc9476d5437239b139a578afd8f720b20805059dda5
MD5 c5ff55d8f687b20055b2600a4755c95f
BLAKE2b-256 f1274ae59aa25217b5da5a50a24e89c99555491ad7be8c06878c7552558ada42

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: chikbip158-1.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 79.1 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for chikbip158-1.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ed776a929bbecae79bb93ad407b7750ae6535ccc79cd0497cf34c8074e279919
MD5 803d3f7489ec8161ec0a7f9b6a1ecc4d
BLAKE2b-256 ddbd0c383623deacd02df474a2b36bdc1b0266b320082769a8e61b758b48105b

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 572e321de493a8023fb8073929ec4e550f6a000f78b1bed2b036bbab7cb48b1f
MD5 9f2f7b1d62424700a24ab7f242eb63e0
BLAKE2b-256 5ee199b77f8f2f131a42f2465ca582465ff38b7fcbb6029fb6be089bb004c9db

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ba73015d1a0c5dc881faae642891e9e87e602311aad1897756577d4152b2cc7d
MD5 65a9dd1f940a133b3138f6679326f81c
BLAKE2b-256 8ba524a0c4845417854f3c05fa5910314fb3cee08c8fa21b06951451aa55a343

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 09734c444f6a8c774f5c6ede75577f4e04dbe751af035061ca89d8e30b90ec7d
MD5 28349b92716b26b41a831e441516a55e
BLAKE2b-256 0dba16482940d6fe1f116cfed4224e901cf0c116b1f086c56b3c9b767b417747

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: chikbip158-1.3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 78.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for chikbip158-1.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 19395f2fb3d08a42b2a09dcffb9920996940c70fdcf17777e6f64eae6974c8a2
MD5 065dc9b7b2eaea2ae7f35062cb191c48
BLAKE2b-256 5fbccedae4870b9cbf29d10a1471d214ee063d262dffa576919e45cf9f709542

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e355cb432bdd711b3543739f6bb3b762d7515b86e73ea483035f8abc84fae2bc
MD5 5995650ce97a9d68a8a0529899c8fe62
BLAKE2b-256 b30f8447d233d296c5f75adb98867aa9413b0fe46c8e0a23ecb872a55bcf2e88

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2dae44d7e47a9608d7b61cd9fa626982c69bc30be55064a68bf7689af4d71b44
MD5 44b7f536f59eca67e1a0d8dd6014bc81
BLAKE2b-256 e75def9b274015b29e8130d25e8e29ba42d413d3a8ba6ee5be4319c1476b96b7

See more details on using hashes here.

File details

Details for the file chikbip158-1.3-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.3-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 2c2f118a19bd0fc17c083aafc12d100533a88960a3d217a2944b688587279771
MD5 7540ab2894b8e64878de326556cfe19a
BLAKE2b-256 21fcef413651d302903a9a04dc5ee93591aaf3781cacfec1d28f6c1fd3a30b7d

See more details on using hashes here.

Supported by

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