Python Elliptic Curve Arithmetic Library.
Project description
ECCArithmetic
Installation
pip install ECCArithmetic
Generate the Curve
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
PickGenerator
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
G = Curve.pickGenerator()
PickPoint
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
P = Curve.pickPoint()
isPointOnEC
Multiplication is realised with the double and add algorithm.
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
G = Curve.isPointOnEC([14967, 14215])
Identity Element
from ECCArithmetic.ec import *
O = ECPt.identity()
Find All Points
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
all = Curve.enumerateAllPoints()
Addition
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
P = Curve.pickPoint()
Q = Curve.pickPoint()
S = P + Q
Subtraction
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
P = Curve.pickPoint()
Q = Curve.pickPoint()
S = P - Q
Multiplication
from ECCArithmetic.ec import *
Curve = EC(0, 5, 2, 23981)
P = Curve.pickPoint()
Q = Curve.pickPoint()
S = P * Q
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ECCArithmetic-1.0.0.tar.gz
(14.6 kB
view hashes)
Built Distribution
Close
Hashes for ECCArithmetic-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7712b8b595837950af21ee04fdcdaa1c18b7db07cff92a289fbd173079c68905 |
|
MD5 | 3cfff196cce5c1431871fa924c4e27d0 |
|
BLAKE2b-256 | cb36afd8a30c100dc217cf4e276e669bba07e1660bff00625fba8e452f0dc6d8 |