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.5.1.tar.gz (125.8 kB view details)

Uploaded Source

Built Distributions

chikbip158-1.5.1-cp312-cp312-win_amd64.whl (80.0 kB view details)

Uploaded CPython 3.12 Windows x86-64

chikbip158-1.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

chikbip158-1.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

chikbip158-1.5.1-cp312-cp312-macosx_11_0_x86_64.whl (156.6 kB view details)

Uploaded CPython 3.12 macOS 11.0+ x86-64

chikbip158-1.5.1-cp311-cp311-win_amd64.whl (79.9 kB view details)

Uploaded CPython 3.11 Windows x86-64

chikbip158-1.5.1-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.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

chikbip158-1.5.1-cp311-cp311-macosx_11_0_x86_64.whl (159.0 kB view details)

Uploaded CPython 3.11 macOS 11.0+ x86-64

chikbip158-1.5.1-cp310-cp310-win_amd64.whl (78.9 kB view details)

Uploaded CPython 3.10 Windows x86-64

chikbip158-1.5.1-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.5.1-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.5.1-cp310-cp310-macosx_11_0_x86_64.whl (157.6 kB view details)

Uploaded CPython 3.10 macOS 11.0+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

chikbip158-1.5.1-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.5.1-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.5.1-cp39-cp39-macosx_11_0_x86_64.whl (157.9 kB view details)

Uploaded CPython 3.9 macOS 11.0+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

chikbip158-1.5.1-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.5.1-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.5.1-cp38-cp38-macosx_11_0_x86_64.whl (157.5 kB view details)

Uploaded CPython 3.8 macOS 11.0+ x86-64

File details

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

File metadata

  • Download URL: chikbip158-1.5.1.tar.gz
  • Upload date:
  • Size: 125.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for chikbip158-1.5.1.tar.gz
Algorithm Hash digest
SHA256 e3b80b0962a98a7916af3433e6fb0a9415c2ab86323517a66b56637da35c501d
MD5 fb4e250dc3f15b289956170f0619620e
BLAKE2b-256 1e6e516cbb6cfedb60682bfb7311f52df98965cedc3dfbef6cc3d801136efbf4

See more details on using hashes here.

File details

Details for the file chikbip158-1.5.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b274526da0d098b1ad069b0e6365e35c5b46753c584bdbd4ca2fc395468b9244
MD5 85f40c4117e882583143b16d2853950e
BLAKE2b-256 11862047c21f28c7c99706ae4a83e4bb052a25ab9943717f7a4883c6f02a71cf

See more details on using hashes here.

File details

Details for the file chikbip158-1.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54b95387976f16c7dfa129410ebf5b76669d9a239626a4efd76983e57e0ed02a
MD5 041c500181d6a2b22f4b7c390027ce2a
BLAKE2b-256 1449270b1870aa48a8cc0e44feb55c847186d3358730115bfba7570932edcd10

See more details on using hashes here.

File details

Details for the file chikbip158-1.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e3ea94b8e5c69d94d8bd02f7ad9e8c5d24df7f7c0ef535344d960461ea2463a9
MD5 c16e95409e61370f8de9563d1cbb4ab0
BLAKE2b-256 48e4c5436e9761669f085d1ac4fb3c702a44ecb7fbc05821db7aca445ba813e9

See more details on using hashes here.

File details

Details for the file chikbip158-1.5.1-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 401cdac89f9a8a2b618fc8735887bab353943f18d79950659fdc2764ab92a759
MD5 49927d0a7a1c6609131423dba24ea184
BLAKE2b-256 d6662dda235b66fe4c6532a3166edde1b80064f4aabe9de8bc23225b229e5dca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c5db2274a114896e9344994165fd011272601ae01196bc69f133fba4c8e41fa6
MD5 b3b07be9e4cc288eabd40ce1e06f6274
BLAKE2b-256 1943a373b4612b72549c3b848b44d6a7437c9b00cee0ccd340e3caba45e6132b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c1e39d93b07a658f6f3f6d7b5dd4b943ad6c9da354df7149c55bd2499e83869f
MD5 329323ddfe299fa46a0f20a025d5712f
BLAKE2b-256 3715bf166a0b6290ff0ee70e11654caf47a9c82e43f32b4f353d444534a0e5c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 717e374f79f2b1173ec31049c279ded67644b6330f659cf28a3bd59a40f5bac2
MD5 6d646216269759405c8081fb1005adcf
BLAKE2b-256 af34cb2db5c9dcf1176c9b301161e364fe8039ef3e8ff3748d3078f38e09abc4

See more details on using hashes here.

File details

Details for the file chikbip158-1.5.1-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 b12a0407d64f805a689f2626ceb3be0748b4a36a8ccaf1882e53dd832e2db6de
MD5 9fc33f4179060e82ac9228947106efc1
BLAKE2b-256 6ab33804016573ef90b4b928d9d4ebafc66f3b574a60653dae44e9c37107feb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d1afc760c0cdf0dda9ae165614315c91b9cd4e18a265bf2ff8d9b07d35de8098
MD5 afa01d151375f649bfe6c06460f0c169
BLAKE2b-256 ae54e0c7498689c07aff78efe300fe31849f697bb126adb8bb48a2794c4a49c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 086e19f2a353a00f73272f2efe3483ce8632dd8c02732b92ff6345c9e58bc3e2
MD5 1a5e2239f1fb626719e1456f4b07358e
BLAKE2b-256 76c6e56e11036857905199e081fb0191ddfeb680a3053dd9099e62358d928128

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3383b2492ec8971de439060faf9b99f5b881fef8cf67e78b63e5dd4df59676c8
MD5 c4b2366542a7db36cdd0fbcf851501e2
BLAKE2b-256 4af330f19b4b4434d26edeb2491bb64b87391ff6761c274e86121287d20ec8f8

See more details on using hashes here.

File details

Details for the file chikbip158-1.5.1-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 9199d51b9af4818d2d63fa86cc344e812007b11bdab453b3598bffb9b101885f
MD5 855711ea28673361d13af9a163023ff8
BLAKE2b-256 9af8ba7d0e7018abe23eddf89a52f4d5d3a5055fad119128f342742bf18402ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chikbip158-1.5.1-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/5.0.0 CPython/3.12.3

File hashes

Hashes for chikbip158-1.5.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8f0fb4a08636240f59b1e84e695e70114d6d58ef159319c6fbb0aebded9c29ff
MD5 21ba08aba0bd4eb4a94ebe9f7b1b61d6
BLAKE2b-256 d3bbb0c106aeee30bcffc1ec251c78c1d776f5b1754b6ae2786863f8bf7877aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 346a625d1a2b40cedc4698b98b73afc698cf5e1d2340d909c23746f890bf13db
MD5 015d6093696493d7b891a2915b761ba2
BLAKE2b-256 0e58b88c6f88ea490d0f8a44804dd61411c5774125be72ff0b66b22059c8de12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1079b6ac148f53760ee66636cce8e28c343c47fb5febd1223b30130c35a5c1f4
MD5 3b991e8a5bb1ede8322d2bb417bbc840
BLAKE2b-256 e576f9237988599ae84d2d420c4277e25cbb65e041f1236845157332dadbeaf1

See more details on using hashes here.

File details

Details for the file chikbip158-1.5.1-cp39-cp39-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 773ea2268bde238da410d7680b2ebf872cda247c725d6490e83d969113c56c2e
MD5 4f50dc21c93fc67966489f11885f26f2
BLAKE2b-256 3233d44e1810d46315dd5b27b34171a1b22285bc9f5b3327d9ab9b39130f8347

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chikbip158-1.5.1-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/5.0.0 CPython/3.12.3

File hashes

Hashes for chikbip158-1.5.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d0dedee245ad41806a8aa0831995de9eab3ea75d2ec08cad09992fbbb30736e3
MD5 908c8296162b6e7aa32fa8c756a474a1
BLAKE2b-256 2f94b7fce93d7973ed480dd3991a11c45428c7e93f939cac118c2ae7f55ce20b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8dc854beb84353c81983857579a3d59b5ee44384e73f5f3ae77810a8a20f9c34
MD5 a727cc44e8b93c0f13628dbd1fdd0da9
BLAKE2b-256 b626038f7f7957eb7e69d0ff18ba25793d5b96c4a90ebdfc90c350fef1b81cca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 97c7890dd7ddada84b811a969a7cfba787f52ab7aca563193594304c992ab816
MD5 18712e7e4224be931f0d40b523c318e9
BLAKE2b-256 a7a02337313b47d9da7ddb65d0ca501acb136f90d3f03fb13da286762c94fecb

See more details on using hashes here.

File details

Details for the file chikbip158-1.5.1-cp38-cp38-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.5.1-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 c3cc7ff3c1985810abaf37d1231f57d6c4241df3daf0c40eb2ea755c78ff9b42
MD5 9102a35dcee97045308d1bb4b00360e6
BLAKE2b-256 0009d15f0a1a52cff2b8fe138eafbb042d535035405e5afefa305f5dfaaf4951

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