py-ed25519-zebra-bindings-1.3.0


توضیحات

Python bindings for the ed25519-zebra RUST crate
ویژگی مقدار
سیستم عامل -
نام فایل py-ed25519-zebra-bindings-1.3.0
نام py-ed25519-zebra-bindings
نسخه کتابخانه 1.3.0
نگهدارنده []
ایمیل نگهدارنده ['JAMdot Technologies <devops@jamdot.tech>']
نویسنده -
ایمیل نویسنده JAMdot Technologies <devops@jamdot.tech>
آدرس صفحه اصلی https://github.com/polkascan/py-ed25519-zebra-bindings
آدرس اینترنتی https://pypi.org/project/py-ed25519-zebra-bindings/
مجوز -
# py-ed25519-zebra-bindings Python bindings for the [ed25519-zebra RUST crate](https://crates.io/crates/ed25519-dalek/3.0.0) ## Documentation https://docs.rs/py-ed25519-zebra-bindings ## Installation ### Install from PyPI ``` pip install py-ed25519-zebra-bindings ``` ### Compile for local development ``` pip install -r requirements.txt maturin develop ``` ### Build wheels ``` pip install -r requirements.txt # Build local OS wheel maturin build --release # Build manylinux1 wheel docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin build --release ``` ## Usage ```python import bip39 import ed25519_zebra message = b"test" # Get private and public key from seed seed = bip39.bip39_to_mini_secret('daughter song common combine misery cotton audit morning stuff weasel flee field','') private_key, public_key = ed25519_zebra.ed_from_seed(bytes(seed)) # Generate signature signature = ed25519_zebra.ed_sign(private_key, message) # Verify message with signature if ed25519_zebra.ed_verify(signature, message, public_key): print('Verified') ``` ## License https://github.com/polkascan/py-ed25519-zebra-bindings/blob/master/LICENSE


زبان مورد نیاز

مقدار نام
>=3.9 Python


نحوه نصب


نصب پکیج whl py-ed25519-zebra-bindings-1.3.0:

    pip install py-ed25519-zebra-bindings-1.3.0.whl


نصب پکیج tar.gz py-ed25519-zebra-bindings-1.3.0:

    pip install py-ed25519-zebra-bindings-1.3.0.tar.gz