Skip to main content

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

Metadata

Release files for ECCArithmetic 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ECCArithmetic 1.0.0
File Size Uploaded
ECCArithmetic-1.0.0.tar.gz 14.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ECCArithmetic 1.0.0
File Interpreter ABI Platform
ECCArithmetic-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.9 kB

Release files / ECCArithmetic-1.0.0.tar.gz

Download URL ECCArithmetic-1.0.0.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
00bcdaab34fd956461743c3b1f554e26955ead6c62c23febe51607a2c1172000
BLAKE2b-256 checksum
How to use checksums
def0f5975f7b129dae5057fce3b8d60e3ad642a9f60cccae822b6cf721ac88d9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / ECCArithmetic-1.0.0-py3-none-any.whl

Download URL ECCArithmetic-1.0.0-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7712b8b595837950af21ee04fdcdaa1c18b7db07cff92a289fbd173079c68905
BLAKE2b-256 checksum
How to use checksums
cb36afd8a30c100dc217cf4e276e669bba07e1660bff00625fba8e452f0dc6d8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page