Skip to main content

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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

Details for the file btcrs-0.0.1.tar.gz.

File metadata

  • Download URL: btcrs-0.0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.13

File hashes

Hashes for btcrs-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4ac31478c6b0db5ebefa1fbeda86afc303ebaad2dff33e302775b035b8637030
MD5 e4f279a995b8257bb16de77fdbc31c6f
BLAKE2b-256 eebf9fa07dc874b110ed3bbfe8e55bcda438a645fd12f9ac48987a13e1c3c672

See more details on using hashes here.

File details

Details for the file btcrs-0.0.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for btcrs-0.0.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c7b5df5ab09a08dfc601c35e9a6010fd7011fd307579fdaabae3a83a5834dfb8
MD5 ef0d97623d33d2305ac745bf7838b413
BLAKE2b-256 e9d6954df3abfadb0f6f5e1e963c222246a8d7603ec40251a77341f5e76839aa

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page