= ed25519.Ed25519PrivateKey.generate()
pk pk
<cryptography.hazmat.bindings._rust.openssl.ed25519.Ed25519PrivateKey>
Generating a private & public key pair from scratch.
<cryptography.hazmat.bindings._rust.openssl.ed25519.Ed25519PrivateKey>
(<cryptography.hazmat.bindings._rust.openssl.ed25519.Ed25519PrivateKey>,
'25e06ab46f49f96c3a45b3a10a86d53362199cd32d7d7696c4ef08e678f2086e')
generate_keys ()
(<cryptography.hazmat.bindings._rust.openssl.ed25519.Ed25519PrivateKey>,
'3abc35f7819d7edec58658199c0116a1eabdd6b0f91a096298b8dcbb0ab581f5')
Generating a pk
instance and a public key from a private key in hex.
priv = pk.private_bytes_raw().hex()
pk = ed25519.Ed25519PrivateKey.from_private_bytes(bytes.fromhex(priv))
pk.public_key().public_bytes_raw().hex()
'25e06ab46f49f96c3a45b3a10a86d53362199cd32d7d7696c4ef08e678f2086e'
priv_key_hex (pk)
from_pk_hex (priv)