Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

py-ed25519-zebra-bindings

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

py-ed25519-zebra-bindings

Python bindings for the ed25519-zebra RUST crate

  • 1.2.0
  • PyPI
  • Socket score

Maintainers
1

py-ed25519-zebra-bindings

Python bindings for the ed25519-zebra RUST crate

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

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc