Skip to main content

bech32m_chia for python

A BIP350 compatible Bech32m encoding/decoding library for chia.

install

pip install bech32m-chia

Use

import

from bech32m_chia import bech32m

Example

print(bech32m.encode("7382e99e0679b68b6e8211c48224c99fc941a5f035bd85f9f32c4a8f48d3bb29","xch"))
print(bech32m.encode("0x7382e99e0679b68b6e8211c48224c99fc941a5f035bd85f9f32c4a8f48d3bb29","xch"))
print(bech32m.encode("7382e99e0679b68b6e8211c48224c99fc941a5f035bd85f9f32c4a8f48d3bb29",""))
print(bech32m.encode("7382e99e0679b68b6e8211c48224c99fc941a5f035bd85f9f32c4a8f48d3bb29","nft"))
# xch1wwpwn8sx0xmgkm5zz8zgyfxfnly5rf0sxk7ct70n939g7jxnhv5smryxmv
# xch1wwpwn8sx0xmgkm5zz8zgyfxfnly5rf0sxk7ct70n939g7jxnhv5smryxmv
# xch1wwpwn8sx0xmgkm5zz8zgyfxfnly5rf0sxk7ct70n939g7jxnhv5smryxmv
# nft1wwpwn8sx0xmgkm5zz8zgyfxfnly5rf0sxk7ct70n939g7jxnhv5sam5p80
print(bech32m.decode("xch1wwpwn8sx0xmgkm5zz8zgyfxfnly5rf0sxk7ct70n939g7jxnhv5smryxmv"))
# 7382e99e0679b68b6e8211c48224c99fc941a5f035bd85f9f32c4a8f48d3bb29

Support

XCH: xch1crwg0ryz5rf90a6xmmspza2jmhc437sllnen8m7nu2dlx7ugjs9qaxgyjw

pawket: hezuoshe.xch

Release files for bech32m-chia 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bech32m-chia 1.0.3
File Size Uploaded
bech32m_chia-1.0.3.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bech32m-chia 1.0.3
File Interpreter ABI Platform
bech32m_chia-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / bech32m_chia-1.0.3.tar.gz

Download URL bech32m_chia-1.0.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0e8b31d5a50c8c8905dc2c18406c1ac7cf796dabe33a5382fce103c7c36cfa73
BLAKE2b-256 checksum
How to use checksums
63c168cd105dcbc30808454b9b739306cfb059e5feeca86940e088544af91d2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / bech32m_chia-1.0.3-py3-none-any.whl

Download URL bech32m_chia-1.0.3-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bff6ec635ba5b28cef38e9dd4df8e2796eb2557d64f79ea2d217d370c99b7e97
BLAKE2b-256 checksum
How to use checksums
f9f2ae8c985de8e9c251d667907a5309ed0ffe38964d22d27aecc6028459576d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page