chatgpt/python3-ecdsa-ecdh-tests.py

9 lines
142 B
Python
Executable File

#!/usr/bin/python3
import ecdsa
ecdh = ecdsa.ECDH(curve=ecdsa.SECP256k1)
private_key = ecdh.generate_private_key()
print(str(private_key))