Hi,
I load an ecdsa private key in my program:
secret =
load_pem_private_key(content_file.read().encode('utf-8'),
password=None,
backend=default_backend())
That's fine
I need now to get the x and y coordinates of my ecdsa key to share
Hi Olivier,
You can use the private_numbers() method:
https://cryptography.io/en/latest/hazmat/primitives/asymmetric/ec/#cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithNumbers.private_numbers
To get an EllipticCurvePrivateNumbers which has x and y attributes.
Alex
On Tu