Skip to main content

Chinilla BIP158 (wraps C++)

Project description

Chinilla 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 chinillabip158 e.g.

Contributing and workflow

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

The master branch is usually the currently released latest version on PyPI. Note that at times chinillabip158 will be ahead of the release version that chinilla-blockchain requires in it's master/release version in preparation for a new chinilla-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 chinillabip158 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

chinillabip158-1.2.1.tar.gz (117.3 kB view details)

Uploaded Source

Built Distributions

chinillabip158-1.2.1-cp311-cp311-win_amd64.whl (82.5 kB view details)

Uploaded CPython 3.11 Windows x86-64

chinillabip158-1.2.1-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

chinillabip158-1.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

chinillabip158-1.2.1-cp311-cp311-macosx_11_0_arm64.whl (151.2 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

chinillabip158-1.2.1-cp311-cp311-macosx_10_14_x86_64.whl (154.3 kB view details)

Uploaded CPython 3.11 macOS 10.14+ x86-64

chinillabip158-1.2.1-cp310-cp310-win_amd64.whl (82.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

chinillabip158-1.2.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

chinillabip158-1.2.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

chinillabip158-1.2.1-cp310-cp310-macosx_11_0_arm64.whl (151.2 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

chinillabip158-1.2.1-cp310-cp310-macosx_10_14_x86_64.whl (154.4 kB view details)

Uploaded CPython 3.10 macOS 10.14+ x86-64

chinillabip158-1.2.1-cp39-cp39-win_amd64.whl (82.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

chinillabip158-1.2.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

chinillabip158-1.2.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

chinillabip158-1.2.1-cp39-cp39-macosx_11_0_arm64.whl (151.5 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

chinillabip158-1.2.1-cp39-cp39-macosx_10_14_x86_64.whl (154.5 kB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

chinillabip158-1.2.1-cp38-cp38-win_amd64.whl (82.5 kB view details)

Uploaded CPython 3.8 Windows x86-64

chinillabip158-1.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

chinillabip158-1.2.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

chinillabip158-1.2.1-cp38-cp38-macosx_11_0_arm64.whl (151.2 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

chinillabip158-1.2.1-cp38-cp38-macosx_10_14_x86_64.whl (154.4 kB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

chinillabip158-1.2.1-cp37-cp37m-win_amd64.whl (83.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

chinillabip158-1.2.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

chinillabip158-1.2.1-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

chinillabip158-1.2.1-cp37-cp37m-macosx_10_14_x86_64.whl (153.8 kB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

File details

Details for the file chinillabip158-1.2.1.tar.gz.

File metadata

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

File hashes

Hashes for chinillabip158-1.2.1.tar.gz
Algorithm Hash digest
SHA256 02580e268eae07511e85b4b3ad6f81eaf66b2df19fdff5ad12b03e663e0903d1
MD5 1975bd3ad0d803cf5ff7e8f9c07cf205
BLAKE2b-256 d9b58bdc501e7e71f845c0c7e34125084817f640b928e82fb3272c57dcab0fb2

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 80bbf0bb3c8ec662103aee47b1aa62fd2ac339f2c86306732d26cd12d01d7502
MD5 3f641df422e50fa88be3cb78cf3dc6af
BLAKE2b-256 6508f42805415159658dcc2bd8efca769b2c69f192a4cb270c4fbd4017db8ec5

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1361eca0df68efdbd19af11347793884ee1ec3d06331caee8cd40035a62cb51c
MD5 d3d9d727b6f760155b20fff8cf141d0b
BLAKE2b-256 d89ad57aa09b165df62c854a5f99f73b4397db06325822e86ee5726f419f7871

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ac4bde378b3aca4fc4b0224352c11c2479d2c4350553aec191c7cb4664610918
MD5 b877e48c80598b158cb6f7c348a410bd
BLAKE2b-256 773b0eb984a5756d39b71f85695a15e5fad0b045b61c7670b3d9bc9de138b7d4

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bfca655c74351781e2c2d614a2180b2805d021bedaf3084e2a7e0d0277c665f
MD5 d05a6d71f2d0bcf1754d7ebd743b7838
BLAKE2b-256 c8e89514636b48f0086c4a80174572d916dc215c42f2c91ecf329b089c4fc3fb

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 ead6c3aede1b4d42b9c01d4b01e0feb893b0ffcb6a9847cceb1a4edd8095c8b1
MD5 0e1f4aa4381eefe57e0851554c5785f6
BLAKE2b-256 9f5174367cda5e67bdc0330fa1e0cd05f49b6c5e45614d22f969fe4912b52d75

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5237a5ddf938a825c50d896c3fcd6a1238eaa258cd1bea227e9cabfcd524eef2
MD5 4c4db5e6f4d6c240c55810f7bdac9415
BLAKE2b-256 fecbc53ba5d941f5aba1e88267bc90d54ef8b8247eb93e627a70a0e37ebbbde3

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ea74f10d127772c95393f1ac3696f7bc782e2a3da914786f2c955b128bb37fd9
MD5 945eede4a79654101aab35b8b9fd9cec
BLAKE2b-256 45b780edefc9bde2e1e6b0854dfe77910687e22b0ebba07b310cefc2ae57f67c

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4272428e36b91b7c74588a2b6006fb2a99c8602571d342c8454c5b9403764704
MD5 2e97a48c48a08a376b1e9274cd0f6894
BLAKE2b-256 ec01ae87a8232b53fa5ae04137f79529251511303fdf309dbf7232c0dce42e91

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68ec763af46ef32aeabed49ed3820ec12cf372ffde49a3c4de5fb4adee95d3ad
MD5 8256cc06827ace030b88e5d8d4e0bf23
BLAKE2b-256 c71dfc2179669f0f33a89acd059cc64f207d4e67b27161e3789b7eb339acc4d5

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 f6184d31c82b36c73ff88dc4c06bab951e94badc83212f922e1a5d8d34085f97
MD5 b79ae349c56de2553edefaefd87e96aa
BLAKE2b-256 c6c9083375a3363b62460e67e345394441081b9ca09b5d3b12d062e78a6bcc96

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ea307fda917269e519e55fb82cae837b710cc45fd6a699226e5b93063c3a6b32
MD5 dacb46b7618b1342c5fa558084b07a01
BLAKE2b-256 79e71d07abb9949f8fa6df36e00e7eccd0b06642164455e276cecd77a9e4eb66

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 66c771fd157d3623aebeb8578b1740c18e0018eb3184af7c537be14ca06cc795
MD5 a3961b5112df0f90065b6494e93298a3
BLAKE2b-256 2ccd36c45d37071d2cce5bbc27cca22533625b7528aa0f75a2f750a7e94367c8

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ea1f47c5f2b91ba1b1b150b7af32729012d2d48b46738a50baf40909da0a6dcf
MD5 2c0222578f0d11c7f41842f2a4f5ac79
BLAKE2b-256 536067deb61bbc682455ec9dbdc415afb66ff919ce1fe711a0c65baee196ad73

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b4219172c12eeafe1de0e47fe516aff4e27e08d9e0e128b29fb14cd06344bda
MD5 159453b65e97d6ef4e79fe0d261e6e75
BLAKE2b-256 1a3c46bc36550ba2f0148b7cd19e9678a4738643c02c364a77c8024f77a44e8e

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1e9ef0ce058401375cf0bc2820b62a2b264aef8a01296dbca076f5bfef2f6fce
MD5 6260af826ad0f36fd87f72c95217894c
BLAKE2b-256 7e76ea8b8d3f256dd05dabf6936efe7f57c04486132be5cb0c267530b4fac39f

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7e3b049cf9e7ef5b6b02898040f5da0ace8a3a7215c693f5c8e5efcbec091911
MD5 c9be49584d7deed26c9a4702d53071f1
BLAKE2b-256 85b90c7dc918c140ca5d510a6d998f1fef4005e0b9151317893055b35ec7f647

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 767c320b7af8f4245539a715481aaaa901f5e585a5176e0ea506f9417dcfe40d
MD5 703398d4f46bc33427899f2342500581
BLAKE2b-256 96edf1479edd23916dc98b591e76e0dde3bf110fbe72d430a24505b90674e5a5

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 97cfda1cf56c9ae614bd04a3358c8be4e70913f86417222dd129bc4b3a91acd1
MD5 bdc6bfda989d5e461b4fd0cff6424205
BLAKE2b-256 d345d0b1d1217d4bda0d70a4832ddb12d13bc89b39695c0c9e415776cbfa49e5

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 497299443529534a1d2ef102321ef75edebaf369261e0a415c36632e47c80938
MD5 63457a61588a5898ffd67c8e875ea647
BLAKE2b-256 580a5399654cb0efeb073896a9ac5a7c0462027e80cc47fd39311b0bda7d3cd6

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 b343f2a447d329f113c1d495c752e70d920603978bab68dff92acb83cc1d0ce7
MD5 b32845195c8dfe9d9a752f16d555c160
BLAKE2b-256 92808f322937c11eb212971cb8e1daf7baefe840346549f154b8a6ef419dcc8d

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 07ac3506bcb2a81e02b1028c4091b9da83a593c9b6ef82eb1afe29402fa3abc9
MD5 b22b78594d1e679103b456312bbe58b5
BLAKE2b-256 38c44f654b88055ede15dfa7dd8d5ff8df00f4908970b8ea86988bf09279309a

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 677f59c44e80375ed204b36b4a9fedd3b4961ff2a8e7a4729b056348ed87f436
MD5 3eaa237efa78fe6d387a2c6cb214a55e
BLAKE2b-256 4ed92dc4653446feaadf710cd733768e858de978bd67397ee2dbc41eccf28de5

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5351d1e4b3f3c921d6a49f93894ec10ba1b8bcd4a9c12f0ebaab5bfdb7c6d6b6
MD5 5e8e10b951841bcb8061cb9dc62305ad
BLAKE2b-256 0ec7c5b7497b13052e9747f74aed2ec75780d426171550f45e0d8a513f4e1b9f

See more details on using hashes here.

File details

Details for the file chinillabip158-1.2.1-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for chinillabip158-1.2.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 1696998dc7f7f883e0cf64fdec51ae619c45af32d714bb0d177cf4e267a14d3b
MD5 d859e55d8bd44621de2f515f1f686fac
BLAKE2b-256 c451a38ffc7834a9257c132d7468f0ecc41006c54bc34b07f68df7e495b0aa4e

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