Skip to content

Commit 9a1e4be

Browse files
committed
fix: import paths in unused crypto utils
Signed-off-by: exploreriii <[email protected]>
1 parent e3c2c05 commit 9a1e4be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hiero_sdk_python/utils/crypto_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from cryptography.hazmat.primitives.asymmetric import ec
66
from cryptography.hazmat.backends import default_backend
7+
from cryptography.hazmat.primitives import serialization
78

89
try:
910
from Crypto.Hash import keccak
@@ -60,6 +61,7 @@ def compress_with_cryptography(encoded: bytes) -> bytes:
6061
"""
6162
pub = ec.EllipticCurvePublicKey.from_encoded_point(SECP256K1_CURVE, encoded)
6263
compressed = pub.public_bytes(
63-
ec.Encoding.X962, ec.PublicFormat.CompressedPoint
64+
encoding=serialization.Encoding.X962,
65+
format=serialization.PublicFormat.CompressedPoint,
6466
)
6567
return compressed

0 commit comments

Comments
 (0)