ECCArithmetic-1.0.0
توضیحات
Python Elliptic Curve Arithmetic Library.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ECCArithmetic-1.0.0 |
| نام | ECCArithmetic |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Parthkumar Rathod, Rakshit Joshi, Mahesh Hegde |
| ایمیل نویسنده | parthcrathod@gmail.com, rakshitjoshi211997@gmail.com, maheshhegde113@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/ECCArithmetic/ |
| مجوز | - |
# ECCArithmetic
## Installation
```
pip install ECCArithmetic
```
## Generate the Curve
```
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
```
## PickGenerator
```python
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
G = Curve.pickGenerator()
```
## PickPoint
```python
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
P = Curve.pickPoint()
```
## isPointOnEC
Multiplication is realised with the double and add algorithm.
```python
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
G = Curve.isPointOnEC([14967, 14215])
```
## Identity Element
```python
from ECCArithmetic.ec import *
O = ECPt.identity()
```
## Find All Points
```python
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
all = Curve.enumerateAllPoints()
```
## Addition
```python
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
P = Curve.pickPoint()
Q = Curve.pickPoint()
S = P + Q
```
## Subtraction
```python
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
P = Curve.pickPoint()
Q = Curve.pickPoint()
S = P - Q
```
## Multiplication
```python
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
P = Curve.pickPoint()
Q = Curve.pickPoint()
S = P * Q
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.0 | Python |
نحوه نصب
نصب پکیج whl ECCArithmetic-1.0.0:
pip install ECCArithmetic-1.0.0.whl
نصب پکیج tar.gz ECCArithmetic-1.0.0:
pip install ECCArithmetic-1.0.0.tar.gz