Skip to main content
nem-ed25519
===========
NEM implementation ed26619 encryption modules for Python.
NEM use Keccak hash function, not same SHA3.

Require
-------
Python3 (>=3.5)

how to use
-----
Please look [test codes folder.](test)

Install
------
```commandline
pip install nem-ed25519
or
pip install git+https://github.com/namuyan/nem-ed25519.git
```

This version need GMP.
*For Linux*
```
apt-get install python3-gmpy2 libgmp3-dev libmpc-dev
apt install libmpfr-dev
pip install gmpy2
```

*For windows*
Download [pythonlibs](https://www.lfd.uci.edu/~gohlke/pythonlibs/#gmpy)
`pip install gmpy2‑2.0.8‑cp36‑cp36m‑win_amd64.whl` If you use Python3.6 64bit

Samples1
------
```python
from nem_ed25519.key import secret_key, public_key, get_address
# secret key
sk = secret_key()
# public key
pk = public_key(sk)
# compressed key
ck = get_address(pk, main_net=True)

from nem_ed25519.signature import sign, verify
# sign message
sign = sign(msg=b'hello world', sk=sk, pk=pk)
# verify message
verify(msg=b'hello world', sign=sign, pk=pk)

from nem_ed25519.encrypt import encrypt, decrypt
# encrypt/decrypt message
sk1 = secret_key()
pk1 = public_key(sk1)
enc = encrypt(sk=sk, pk=pk1, msg=b'Hot potato.')
dec = decrypt(sk=sk1, pk=pk, enc=enc)
```

Samples2
--------
Import setting at first, and you can select encode mode.
Please look at [allinone.py](test/allinone.py)
```python
from nem_ed25519.base import Encryption
ecc = Encryption()
```

Author
------
[@namuyan_mine](http://twitter.com/namuyan_mine/)

Licence
-------
MIT

Metadata

Release files for nem-ed25519 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nem-ed25519 0.0.11
File Size Uploaded Provenance Actions
nem_ed25519-0.0.11.tar.gz 6.6 kB Without provenance Details for nem_ed25519-0.0.11.tar.gz

Release files / nem_ed25519-0.0.11.tar.gz

Download URL nem_ed25519-0.0.11.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4606c8ac5e3fb568ebabd6ee2973fdbbdf2928ce3cb5fddbd0d64d31e27b0ea4
BLAKE2b-256 checksum
How to use checksums
b6743bd694d8ecf362b539082c3f813e4d2d4de4f0de0cbcc7f46ef05b3331fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.0

Security for nem-ed25519 0.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page