Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ECCArithmetic-1.0.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file ECCArithmetic-1.0.0.tar.gz.

File metadata

  • Download URL: ECCArithmetic-1.0.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for ECCArithmetic-1.0.0.tar.gz
Algorithm Hash digest
SHA256 00bcdaab34fd956461743c3b1f554e26955ead6c62c23febe51607a2c1172000
MD5 7d55577416314371718417d33e76badf
BLAKE2b-256 def0f5975f7b129dae5057fce3b8d60e3ad642a9f60cccae822b6cf721ac88d9

See more details on using hashes here.

File details

Details for the file ECCArithmetic-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ECCArithmetic-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for ECCArithmetic-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7712b8b595837950af21ee04fdcdaa1c18b7db07cff92a289fbd173079c68905
MD5 3cfff196cce5c1431871fa924c4e27d0
BLAKE2b-256 cb36afd8a30c100dc217cf4e276e669bba07e1660bff00625fba8e452f0dc6d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page