@staticmethod
def from_private_key(private_key):
    ' Generates a public key object from a PrivateKey object.\n\n        Args:\n            private_key (PrivateKey): The private key object from\n               which to derive this object.\n\n        Returns:\n            PublicKey: A PublicKey object.\n        '
    return private_key.public_key
Generates a public key object from a PrivateKey object.

Args:
    private_key (PrivateKey): The private key object from
       which to derive this object.

Returns:
    PublicKey: A PublicKey object.
@staticmethod
def from_private_key(private_key):
    ' Generates a public key object from a PrivateKey object.\n\n        Args:\n            private_key (PrivateKey): The private key object from\n               which to derive this object.\n\n        Returns:\n            PublicKey: A PublicKey object.\n        '
    return private_key.public_key