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

Usage

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.1.tar.gz (7.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.1-cp38-none-win_amd64.whl (169.7 kB view details)

Uploaded CPython 3.8Windows x86-64

py_ed25519_bindings-0.1.1-cp38-cp38-manylinux1_x86_64.whl (207.1 kB view details)

Uploaded CPython 3.8

py_ed25519_bindings-0.1.1-cp38-cp38-macosx_10_7_x86_64.whl (181.4 kB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

py_ed25519_bindings-0.1.1-cp37-none-win_amd64.whl (169.7 kB view details)

Uploaded CPython 3.7Windows x86-64

py_ed25519_bindings-0.1.1-cp37-cp37m-manylinux1_x86_64.whl (207.1 kB view details)

Uploaded CPython 3.7m

py_ed25519_bindings-0.1.1-cp37-cp37m-macosx_10_7_x86_64.whl (181.4 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

py_ed25519_bindings-0.1.1-cp36-none-win_amd64.whl (169.9 kB view details)

Uploaded CPython 3.6Windows x86-64

py_ed25519_bindings-0.1.1-cp36-cp36m-manylinux1_x86_64.whl (207.4 kB view details)

Uploaded CPython 3.6m

py_ed25519_bindings-0.1.1-cp36-cp36m-macosx_10_7_x86_64.whl (181.4 kB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

py_ed25519_bindings-0.1.1-cp35-none-win_amd64.whl (170.2 kB view details)

Uploaded CPython 3.5Windows x86-64

py_ed25519_bindings-0.1.1-cp35-cp35m-manylinux1_x86_64.whl (207.3 kB view details)

Uploaded CPython 3.5m

py_ed25519_bindings-0.1.1-cp35-cp35m-macosx_10_7_x86_64.whl (181.4 kB view details)

Uploaded CPython 3.5mmacOS 10.7+ x86-64

File details

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

File metadata

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

File hashes

Hashes for py_ed25519_bindings-0.1.1.tar.gz
Algorithm Hash digest
SHA256 70a47467e2488fff3a47cb5f77980bc570dbdadda8a95caa3370154f82aeb3f6
MD5 a553065cb711d55ee683d4a852b005df
BLAKE2b-256 d1dfacdd3eef4164828ff821f58ad5bdeae29cc72bf552aec052b0dcdef413c7

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.1-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 18092533026720a06c5477a812b6706f2f202f640ffa439c5265be9ebe5675e6
MD5 68697152d331395286239697272fed58
BLAKE2b-256 4050195cb7a418c8eb66116c750af99f3395866c55a2e17d6d6d4705cfbd7cb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e124fb9e34380170248152688739a381a0b0d4a471fea00a10cf9c7e3db24093
MD5 4638d0e36466e898c1bf95c74ee21cee
BLAKE2b-256 63ca9d400b8eeed0c127a1da0ad9ea9fa7263f662aef6f761e95d219f9ac5694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b28a0197ff6bd1f21df2b32ee2f9602d5c7d48b3dd98ec15b3a5950df0db21fb
MD5 8f5274b8e0d3305920f4437826f4a627
BLAKE2b-256 7187f4fd9294729141b3ab78ebd46de9fc088f34cea17e470d8044358e37f02f

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.1-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 b95dd33290aab7c282f0e54836be957cd996e72c0e47efa6fe56ccf7ad789b5e
MD5 45e1611f7d0ad19177d1be315be97c95
BLAKE2b-256 905b20d7c994e2fc8c0072effbcdc5e884eca717deccaf01cf4918dc88640855

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b0ac8d24b4763c4e6296792515415c154b5c26c24497090c42ac8e70f0326b4a
MD5 748f18fe3ea40d0bfed8e6fe109493ed
BLAKE2b-256 f1f56f947a7f768d32b29d15d62b6b5d4796f249a12468a852beb88b3f7c2571

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 16422e365b7d03ffdff3b0b802e6f3159532b126d917f604f29e64f9c439b781
MD5 3a8bbfa807003325643436aca76cf3a5
BLAKE2b-256 cbeed19875acb269fdce5879f76a0a336dafa1cf67886e11ecd9bf8550eedfa3

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.1-cp36-none-win_amd64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 3fa75efd4c666024d1175f6ae4b58da9ca21c892e76c28f4f2accee43d3d01d3
MD5 6d1a27d4c7da9d7819e2a40f10608523
BLAKE2b-256 625154f083983d0372907c91a645d1e7bfe00db266150adaf106571f567cb283

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 39ebc60d6e79bb658ef382e65bc2edb68625e7dec7f59251b17277d2ef5a2e66
MD5 d8d57583edcbbe29a415315af821b5b5
BLAKE2b-256 d0853c02abb82b39dd5d8a1f141a6e9b81bc56f737f0b62d54a8a1e2672788e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 dd9718954d1e6cfbea91f6dda970fab59230da45c7037955c6af4a13fb86278b
MD5 d5217a6fb0480be21519ce06a662c602
BLAKE2b-256 4ba3978ab850287395c32815da06526bfd585768fc93d9a876162dbc248e9f2c

See more details on using hashes here.

File details

Details for the file py_ed25519_bindings-0.1.1-cp35-none-win_amd64.whl.

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 1aa5bb648ff3950dba2d5c1991b98921cfffe3acc2a1ecdb1d7eee61c774c330
MD5 d84568de10325b99c207ca841b63b1c1
BLAKE2b-256 d633f2d18fa7647f0bbc814c5c862f569228c3fc7851f7d28fb56fd21e5350d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e6995ee08012a339ee1c4e7519cebdaeba044a1c36e89a901357ccc7a976aac1
MD5 353d5d7837d432e7c1d1652ffaa2a11b
BLAKE2b-256 8914d9efee2d689446f0d36781813198c2f3e0ede85fc454bd9529c69ee4c485

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_ed25519_bindings-0.1.1-cp35-cp35m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 48fd6fef21ed63117edf5e68db01155beab429f62639a6ef1f1fed81b40a8954
MD5 34d3c7a93e62459215ac02a3d7bbc7d8
BLAKE2b-256 9492092f29e7dd2a32df734de2e638c96b581fbaf0fdfed4dd8134db551af3be

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