Library Bitcoin package for python convert and generate wallet
Project description
Libit
Fast and easy converted and generated utils for bitcoin , ethereum and tron wallet in python
install & use
windows
pip install libit
linux & mac
pip3 install libit
generated and convert base utils key for wallet information and public , private data
how to
bytes to wif
from libit import bytes_wif
seed_bytes = b"Bytes data (32 bytes)"
# wif compressed
wif_compress = bytes_wif(seed_bytes, True)
wif_decompress = bytes_wif(seed_bytes)
bytes to address
from libit import bytes_addr
seed_bytes = b"Bytes data (32 bytes)"
# compressed
caddr = bytes_addr(seed_bytes, True)
# uncompressed
uaddr = bytes_addr(seed_bytes)
bytes to ethereum address
from libit import bytes_eth
seed_bytes = b"Bytes data (32 bytes)"
eth_addr = bytes_eth(seed_bytes)
wif to address:
convert wif key to compressed and uncompressed address wallet
import libit
wif_str = "Wif Data String"
# compressed
caddr = libit.wif_addr(wif, True)
# uncompressed
uaddr = libit.wif_addr(wif)
private key to wif
convert private key (hex) to wif compressed and uncompressed
import libit
pvk_hex = "hex private key"
# compressed
wif_compress = libit.pvk_to_wif(pvk_hex, True)
# uncompressed
wif_decompress = libit.pvk_to_wif(pvk_hex)
private key to decimal
import libit
pvk = "hex private key"
decimal = libit.pvk_to_decimal(pvk)
private key to address
import libit
pvk = "hex private key"
compress_addr = libit.privatekey_addr(pvk, True)
uncompress_addr = libit.privatekey_addr(pvk)
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
libit-1.6.9.tar.gz
(15.6 kB
view details)
Built Distribution
libit-1.6.9-py3-none-any.whl
(15.1 kB
view details)
File details
Details for the file libit-1.6.9.tar.gz
.
File metadata
- Download URL: libit-1.6.9.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d94721ec7641c8cd8ea97256a7351c7d30160d751f673312b566c592b169a37e |
|
MD5 | cdbb78587935c00124cd870b23dcfaa9 |
|
BLAKE2b-256 | 5c8001837821b629f82babf0168ee570619ed3e0c8668a12b7f5bc031e3bc4e9 |
File details
Details for the file libit-1.6.9-py3-none-any.whl
.
File metadata
- Download URL: libit-1.6.9-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66fd6b3a4e3828c9a9369a9ce0df345ef2843a0e94e39bdf5ce72f901f9cb5b9 |
|
MD5 | 9b4caa0fcf82fb43dd301c493a212bda |
|
BLAKE2b-256 | a7113bb2ca7a1d2cca4932cbfb16566679c81e5d2ffbad469070e383644f232c |