Skip to main content

Python bindings for the ed25519-dalek RUST crate

Project description

py-ed25519-bindings

Python bindings for the ed25519-dalek RUST crate

Installation

Install from PyPI

pip install py-ed25519-bindings

Compile for local development

pip install -r requirements.txt
maturin develop

Build wheelhouses

pip install -r requirements.txt

# Build local OS wheelhouse
maturin build

# Build manylinux1 wheelhouse
docker build . --tag polkasource/maturin
docker run --rm -i -v $(pwd):/io polkasource/maturin build

Examples

import bip39
import ed25519

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.ed_from_seed(bytes(seed))

# Generate signature
signature = ed25519.ed_sign(public_key, private_key, message)
print(signature.hex())

# Verify message with signature
if ed25519.ed_verify(signature, message, public_key):
    print('Verified')

License

https://github.com/polkascan/py-ed25519-bindings/blob/master/LICENSE

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

py_ed25519_bindings-0.1.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distributions

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

py_ed25519_bindings-0.1.0-cp38-cp38-manylinux1_x86_64.whl (204.4 kB view details)

Uploaded CPython 3.8

py_ed25519_bindings-0.1.0-cp38-cp38-macosx_10_7_x86_64.whl (178.6 kB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

py_ed25519_bindings-0.1.0-cp37-cp37m-manylinux1_x86_64.whl (204.4 kB view details)

Uploaded CPython 3.7m

py_ed25519_bindings-0.1.0-cp37-cp37m-macosx_10_7_x86_64.whl (178.6 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

py_ed25519_bindings-0.1.0-cp36-cp36m-manylinux1_x86_64.whl (204.6 kB view details)

Uploaded CPython 3.6m

py_ed25519_bindings-0.1.0-cp36-cp36m-macosx_10_7_x86_64.whl (178.8 kB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

py_ed25519_bindings-0.1.0-cp35-cp35m-manylinux1_x86_64.whl (204.4 kB view details)

Uploaded CPython 3.5m

py_ed25519_bindings-0.1.0-cp35-cp35m-macosx_10_7_x86_64.whl (178.7 kB view details)

Uploaded CPython 3.5mmacOS 10.7+ x86-64

File details

Details for the file py_ed25519_bindings-0.1.0.tar.gz.

File metadata

  • Download URL: py_ed25519_bindings-0.1.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.8.1

File hashes

Hashes for py_ed25519_bindings-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f0325fd2b81831482e7c89085ef24fa3350d9ad0b833245f6267308a72c6c274
MD5 8690328189f25059d18df3a89c5c5ec9
BLAKE2b-256 dec12cab65e7339686b14b57068f40f917daf85a77e4fb5964047e7a3c324d28

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.0-cp38-cp38-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e264bbc45c5c8a6e9c65071e53f234fc66b24c06f7846dec242de82ad5792605
MD5 a722cab50e59a7ee23ce6cb526c567f3
BLAKE2b-256 255f1dfe9521ae4def95c0f728d1121a3d04a30655f3de44eae4069d85fd6503

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.0-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 4725e9d25e986f8d2ac631c87d4c0d6d1fc936b81f783a3aa25036633fa0ff1d
MD5 4baa060bc997a252471b12a3c2dc3955
BLAKE2b-256 219c99ad937c57f981eba7f9f4cd22a497b827fa6172c87c805df26ebec97aac

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f8d7d2faef515a2ad90cfe7365c1aa93bafe59ae97abd5b9ce96788112e3a6bd
MD5 28c07badb73706e71d769a292f2af1db
BLAKE2b-256 1b8397d90a5c8e3b2ecbabe9f830bd63f61c1225835a447548b04543ff7ee3bc

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.0-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 6773290cf72d569aaae619331fc04e27f366d207e95ebb2e128e6a25bd8b137f
MD5 95ae23b89b0f73a95e040f6548716bdb
BLAKE2b-256 f64c3086d9fc24b62c2c11afe204e953468aea5758891fc0e5777db4714c3ec4

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7f1382c3ec1bf04c17e03d24df79b6a9ad086aeac6c47189c4f27514d773ef61
MD5 4dcd9be4bf575ff93424435455dc4d7d
BLAKE2b-256 6453fa882571c13cfe23bf799aad69d6d41bebd9a00fef3cfe7423105d5ac635

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.0-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a6f216c6655c9387abf7b5de674181592747cbc70a5ed6234b80874549961ffd
MD5 a9f7fd1c713e9d1546f0c6c0873fedd0
BLAKE2b-256 cff2d9c7548066746137c4123805866344c55dabb99b47029ca81feeaee03957

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1557fa39685a1621d59962efb9e4d2e905e3413af07d06a23edaa11a6f8549d8
MD5 65391c1a144ec34db32af5e0d2c7785b
BLAKE2b-256 3ad25814a162f85ab43be57d2b2bef434fe8f6c54dcf7e825ae01f49d971ba48

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.0-cp35-cp35m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.0-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 0d214ab5d196555d963429fbcf5150857788a72da0e2df67262b0028e297ba08
MD5 d6ef5f3a233958cb8948b49310c63d9a
BLAKE2b-256 e047206bbbf5068449ca914b431c0e523542b342f471f45c871b1a3565fed3b1

See more details on using hashes here.

Supported by

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