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

Uploaded Source

Built Distributions

chikbip158-1.2-cp311-cp311-win_amd64.whl (78.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

chikbip158-1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

chikbip158-1.2-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.2-cp311-cp311-macosx_10_14_x86_64.whl (156.0 kB view details)

Uploaded CPython 3.11 macOS 10.14+ x86-64

chikbip158-1.2-cp310-cp310-win_amd64.whl (78.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

chikbip158-1.2-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.2-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.2-cp310-cp310-macosx_10_14_x86_64.whl (156.0 kB view details)

Uploaded CPython 3.10 macOS 10.14+ x86-64

chikbip158-1.2-cp39-cp39-win_amd64.whl (78.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

chikbip158-1.2-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.2-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.2-cp39-cp39-macosx_10_14_x86_64.whl (156.2 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

chikbip158-1.2-cp38-cp38-win_amd64.whl (78.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

chikbip158-1.2-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.2-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.2-cp38-cp38-macosx_10_14_x86_64.whl (155.9 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

chikbip158-1.2-cp37-cp37m-win_amd64.whl (79.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

chikbip158-1.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

chikbip158-1.2-cp37-cp37m-macosx_10_14_x86_64.whl (155.6 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

File details

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

File metadata

  • Download URL: chikbip158-1.2.tar.gz
  • Upload date:
  • Size: 117.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for chikbip158-1.2.tar.gz
Algorithm Hash digest
SHA256 d2467c65d1e1cd57dcd8c32d41d7ad7a8fde81502d75276a3ed5d4d73c233a52
MD5 c769c649f23e86fd959a6755fc7a2350
BLAKE2b-256 a413c6492fc967fb220183065925895f58a8bcb5be107db6625e40a9228dece1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5bb9e9e5a31fc60901f30ff0ee3780304eb40b16601b8a6b0e928956253efd3e
MD5 b954dff8194065af8cb09635b49241bc
BLAKE2b-256 41a91e517d2eeee787a8f9c99c354c991656875f6c0fbc5a908dea23e2c31622

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8eabf9e9b167092f0a044a15c866b672cd6701f34ff4269d01df845e96379bb6
MD5 69b4aa8711547fb176bbbeb30f73c282
BLAKE2b-256 2cfc3bfa7f6fadb1c0d971aa861a0ceba5d16f0ba538ee150b14ad6d368915c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c4b3351d18a0ca1fab6f979eef2ea4e6c7677d341bb85b3e33b2e1d478587d29
MD5 d82f24459055c583a1efc605594f59d3
BLAKE2b-256 cab15f520b297835ed260d38280b74bfc7b768f38c1be157aeb769b42596dffe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 ff102c8bfbcaaaba571ed3bc0cd827bb759a347debeed18d4822bc01e2c46ee5
MD5 922692a1364a6560da1738eaf1ffabfb
BLAKE2b-256 c43c9271566043f0e98b811af50ad14e8c52923806cfffa1f283b0a588a228c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2c7fd375abb0102f871e24312f349aa65424054c163e40c1cd18158ce8b84f6a
MD5 1f94be6cd200394dcc2bac836ae0421b
BLAKE2b-256 cfebce9eb6241eb82ae40e8133fc6942ba3034244751e5ab99226fd74dce2cc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0192046ebfdb4df6aa107574d4e0b3e4269d2b18cffd7ec198a93d56fca48509
MD5 d249c600439dc1a6f8a784b2dd36e575
BLAKE2b-256 4f710549de65fc98a567b6d5c26741264a8cf6f21def424e674812bf351bed75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 46ad71cc8db49a7b10bf82ebdfbb2e4412540703384a45b29669666515880207
MD5 1cbbab0d53adfc974b6dddc5d3dfa3dc
BLAKE2b-256 ef7c244399a8b6766077cd523c1e673ad903c3f62e4f1fd85f465070773e84b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 161acc4c237750aa45981d934a71f54222be96afceea19fd212248f82b632b1a
MD5 5f7a8d07128d12d55b88b8b6105b3ec4
BLAKE2b-256 761136a9b93c6e64d12ce94db01a1000cb330eb3756120173729c005b6a60ec3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chikbip158-1.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 78.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for chikbip158-1.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 591ff6b6b9e8206b12a08f70af9055dbf2d959f3c93e8411ebe1d4a3e9dbb444
MD5 4baec1dff8957a25c9c11f687654fd8d
BLAKE2b-256 ee8088f56c7d18c8ae4efe35b89543ff8db17e910307b70048c1bc6d3647e876

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c7c857420f08796ddf52e7eca182a47ae29e57ad92566dcd00fc68d6c5df8487
MD5 85de1bd29e6bb7655b768c958dbbf56c
BLAKE2b-256 90dd357a04207f17142a2277860655198e8086c300d5dc7ff720f7609a408afe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 86b2b5ba4187ed429282a43659ad65ac18b5894dad2a20846074ce49dc647b14
MD5 4cc396776f036385bcd0e9ebdd119398
BLAKE2b-256 1e30af34a23fe0e2ba2b7db6fe85a22738e908271ca1e0f3c8ddb6ec19e1decd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 41483a58adfe5b1a96b74bcfc130981e2839c11579720493fdf6c1c7915dd571
MD5 fcb09cd8bcf71eb77b67cdb423c63180
BLAKE2b-256 8f394bc63f5e971f66082c6469a72c24616cdf16a24bbfef2b9c072bdc719952

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chikbip158-1.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 78.7 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for chikbip158-1.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6991331999ae971e529437f01891f7bd2ddac876fa360972bd281edc91429d1d
MD5 72fe8d93ba054587fb95e24c842a6ede
BLAKE2b-256 b1e92e6baef0effcde3a7c72f90bb964d4b48065f37e07ef38a1ad6f40572104

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 814eba4e679941d266dc815f1786d99cfd2b46142ec8ab4a16a4987faa7fc451
MD5 3ce7acd2635ff04a6c69d540ed7df662
BLAKE2b-256 074494ed163c2ed3ef69bf53ca4ed2d77db49d0cd43c64b76e4400c88bd01b31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9f00d482e35f6e4b23674f363c086e7ec4418dc63246bb928953946abedc363a
MD5 bee88c6ccb7fd998ed9c2b779e434685
BLAKE2b-256 840e47447de7f1bf9be55f23bcbc7b3e469b24be8419b1ee47316da068906bf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chikbip158-1.2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 00f726a95dcc3b619cc3ef6e5b343d965ce6627ba7007ba695c3a8ab9bf5bd8f
MD5 3e62d0bac064eed6c09f86564615495d
BLAKE2b-256 d1e046d54df397de5db67da7ef3dcd73196ac6fdd3dfb987a0ba731b836b02eb

See more details on using hashes here.

File details

Details for the file chikbip158-1.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: chikbip158-1.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 79.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for chikbip158-1.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 87901af0fda1963c661f904ae2e2c9b757c24584aa623f80b41e96c52a22d26b
MD5 fb2d40db4b3cb0f8b22603c1b8b169db
BLAKE2b-256 0e461ddeeebbe85438bcea0001e71d8ec133ba01de72d93b185901cb90da3f31

See more details on using hashes here.

File details

Details for the file chikbip158-1.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4361bdad780d7114769d653c0dfabd9932c1ca978ee591211a0800e60d8016e7
MD5 eefa3b60825251962e78a173f6f54554
BLAKE2b-256 4437c27737b47ca8bc2027f29e47ecc356cc76694711f17cccad0f785bef1b05

See more details on using hashes here.

File details

Details for the file chikbip158-1.2-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for chikbip158-1.2-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 5ff6befe1639570b8d2886767dfdf74ff690c9c1a89244d38de9f20745a196d9
MD5 789b695d6f1c0466f8001d57c9a94735
BLAKE2b-256 931c5a17cadb3d249e35231b312ae874dbe5510291b01cdea5d9d33cea8a87e0

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