Skip to main content

No project description provided

Project description

btcrs

Needed to use some existing bitcoin-rust stuff from python.

For now, just wraps address validation and generation. Will add more as needed.

>>> import btcrs
>>> btcrs.address.is_valid("hello")
False
>>> btcrs.address.is_valid("bc1pzwu7ucw9ra9pdcu6h522zcaunz95csa6fl80uq4mun2g27r8zfcqkvnm6w")
True
>>> some_address = btcrs.address.random()
>>> some_address
'bc1py0sspskhml0t5v6w09pz08wuzyv2fh8q66s0g9vgxdn9qdjdzyfqmj8hvd'
>>> btcrs.address.is_valid(some_address)
True
>>> btcrs.address.is_valid(some_address, is_testnet=True)
False

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

btcrs-0.0.1.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

btcrs-0.0.1-cp310-cp310-manylinux_2_34_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

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