معرفی شرکت ها


PyECCArithmetic-1.1.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Basic arithmetic operations for points on elliptic curves.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل PyECCArithmetic-1.1.0
نام PyECCArithmetic
نسخه کتابخانه 1.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Philipp Nieting
ایمیل نویسنده developer@nieting.de
آدرس صفحه اصلی https://github.com/Kavakuo/PyECCArithmetic
آدرس اینترنتی https://pypi.org/project/PyECCArithmetic/
مجوز -
# PyECCArithmetic This package provides basic arithmethic point operations on elliptic curves. The following operations for points are available: * Addition * Subtraction * Multiplication * Division * Order of point (for fair points) * Inversion of a point * Is the point on the curve? The following curves are already implemented: * secp224r1 * secp256r1 * secp384r1 * secp521r1 * brainpoolP160r1 * brainpoolP192r1 * brainpoolP224r1 * brainpoolP256r1 * brainpoolP320r1 * brainpoolP384r1 * brainpoolP512r1 It is also possible to define your own curve. ## Installation ``` pip install PyECCArithmetic ``` ## Addition ```python from PyECCArithmetic import * p = Point(x_1, y_1, curve=Curve.secp256r1()) q = Point(x_2, y_2, curve=Curve.secp256r1()) z = p + q # z is a new point ``` ## Subtraction ```python from PyECCArithmetic import * p = Point(x_1, y_1) # curve defaults to Curve.secp256r1() q = Point(x_2, y_2) z = p - q # z = p + (-q), z is a new point ``` ## Multiplication Multiplication is realised with the double and add algorithm. ```python from PyECCArithmetic import * p = Point(x_1, y_1) # curve defaults to Curve.secp256r1() z = p * 3 # z is a new point ``` ## Division ```python from PyECCArithmetic import * p = Point(x_1, y_1) # curve defaults to Curve.secp256r1() q = Point(x_2, y_2) z = p / q # z is int, such that z * q == p ``` ## Order calculation ```python from PyECCArithmetic import * p = Point(x_1, y_1) # curve defaults to Curve.secp256r1() order = p.calcOrder(timeout=5) # tries to calculate the order for maximal timeout seconds ``` ## Custom curve definition ```python from PyECCArithmetic import * # Only curves defined as Weierstrass equation are supported # y^2 = x^3 + a * x + b mod p c = Curve(a, b, p, name='optional') ``` ## Is the point on the curve? ```python from PyECCArithmetic import * onCurve = Point(1,1).isOnCurve # true or false ```


زبان مورد نیاز

مقدار نام
>=3.0 Python


نحوه نصب


نصب پکیج whl PyECCArithmetic-1.1.0:

    pip install PyECCArithmetic-1.1.0.whl


نصب پکیج tar.gz PyECCArithmetic-1.1.0:

    pip install PyECCArithmetic-1.1.0.tar.gz