Referenceentitykeykey_pairOn this pageentity.key.key_pairKeyPair Objects class KeyPair() Represents a pair of public and private keys. __init__ def __init__(public_key: str, private_key: str) -> None Constructs a KeyPair object with the specified parameters.