commit 100eea2e69242014cd2f9099fe95997a70e998b5
parent 50251d1994e6719f57663d405e4c55d72d879055
Author: Shivakumar <[email protected]>
Date: Mon, 4 Aug 2025 23:13:37 +0530
add minor feature bump (ecdh)
Diffstat:
3 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/ecc/field.py b/ecc/field.py
@@ -80,6 +80,7 @@ class FieldElement:
def __pow__(self, exponent: int) -> FieldElement:
if not isinstance(exponent, int):
raise TypeError("Exponent must be an integer.")
+
# Fermat's Little Theorem
exponent = exponent % (self.prime - 1)
return FieldElement(pow(self.num, exponent, self.prime), self.prime)
diff --git a/pyproject.toml b/pyproject.toml
@@ -1,6 +1,5 @@
[project]
name = "eccrypto"
-version = "0.1.2"
description = "Pure Python library for Elliptic Curve Cryptography (ECC) — built from scratch with clarity and educational readability in mind"
readme = "README.md"
license = { text = "GPL-3.0" }
diff --git a/uv.lock b/uv.lock
@@ -112,7 +112,6 @@ toml = [
[[package]]
name = "eccrypto"
-version = "0.1.2"
source = { editable = "." }
[package.dev-dependencies]