1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
How to Install
pip install py_eth_pairing
How to Build from Source
- Install Cargo for Rust
curl https://sh.rustup.rs -sSf | sh
- Install Maturin
pip install Maturin
- Compile it
maturin develop --release
How to Use
Please check test.py as an example
from py_eth_pairing import curve_add, curve_mul, pairing2, curve_negate
from py_ecc.bn128 import G1, G2
curve_add(G1, G1)
sk = 100
g1_pk = curve_mul(G1, sk)
actual = pairing2(curve_negate(G1), G2, G1, G2)
Performance
The unit of time is second.
curve_add
6.985664367675781e-05
curev_mul
0.00014019012451171875
pairing2
0.0034821033477783203
Metadata
Release files for py-eth-pairing 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_eth_pairing-0.1.4-cp36-cp36m-manylinux1_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.5+ x86-64 | Details for py_eth_pairing-0.1.4-cp36-cp36m-manylinux1_x86_64.whl |
| py_eth_pairing-0.1.4-cp36-cp36m-macosx_10_15_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | macOS 10.15+ x86-64 | Details for py_eth_pairing-0.1.4-cp36-cp36m-macosx_10_15_x86_64.whl |
Total release size: 1.4 MB
Release files / py_eth_pairing-0.1.4-cp36-cp36m-manylinux1_x86_64.whl
| Download URL | py_eth_pairing-0.1.4-cp36-cp36m-manylinux1_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
92e06a091d307c39b7201539cccada5a50eacba7fd0c6144be448569059e9454
|
|
BLAKE2b-256 checksum How to use checksums |
47d9da5ce2e16c8216826c8e9939952897f041ed816992dfb9486060f52aeb6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.10
|
Release files / py_eth_pairing-0.1.4-cp36-cp36m-macosx_10_15_x86_64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | py_eth_pairing-0.1.4-cp36-cp36m-macosx_10_15_x86_64.whl |
|---|---|
| Size | 413.1 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
7869299456d7f10a89625f0105457a83035fdb8e34935c5b5c11820d597e01d0
|
|
BLAKE2b-256 checksum How to use checksums |
15718290bff3a7f8979077da801bf9f1034a5634c09933bc1cafc59f4f3b4aa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.10
|
Security for py-eth-pairing 0.1.4
Upload timing
Release file added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
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.