@staticmethod
def from_base64(b64str, testnet=False):
    ' Generates a public key object from a Base64 encoded string.\n\n        Args:\n            b64str (str): A Base64-encoded string.\n            testnet (bool) (Optional): If True, changes the version that\n               is prepended to the key.\n\n        Returns:\n            PublicKey: A PublicKey object.\n        '
    return PublicKey.from_bytes(base64.b64decode(b64str))
Generates a public key object from a Base64 encoded string.

Args:
    b64str (str): A Base64-encoded string.
    testnet (bool) (Optional): If True, changes the version that
       is prepended to the key.

Returns:
    PublicKey: A PublicKey object.
@staticmethod
def from_base64(b64str, testnet=False):
    ' Generates a public key object from a Base64 encoded string.\n\n        Args:\n            b64str (str): A Base64-encoded string.\n            testnet (bool) (Optional): If True, changes the version that\n               is prepended to the key.\n\n        Returns:\n            PublicKey: A PublicKey object.\n        '
    return PublicKey.from_bytes(base64.b64decode(b64str))