libit package for python convert and generate wallet
Project description
Libit
fast generated and convert wallet funcation 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.0.3.tar.gz
(13.6 kB
view details)
Built Distribution
libit-1.0.3-py3-none-any.whl
(12.9 kB
view details)
File details
Details for the file libit-1.0.3.tar.gz
.
File metadata
- Download URL: libit-1.0.3.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 846ea7ee5e71a356687acc311da38d8b4f24e90d69349ad3888ba374f79da078 |
|
MD5 | f4e92de729700e127ca5fe36d297d6fc |
|
BLAKE2b-256 | 4f2e84dd51b46c155472b2869b304de3242a31935144c6095e914219d40b33d4 |
File details
Details for the file libit-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: libit-1.0.3-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1b34341929955829e2ea4f3d5b2a1db5fda42f2c4e606325acd913fd20859f2 |
|
MD5 | 2eac87f0cc1e2b97d7feaa228edbf6ff |
|
BLAKE2b-256 | f54aae56063aec26235fb3acec47c1310948ad1befd76fe96b56a023f8ddd878 |