def to_b58check(self, testnet=False):
    ' Generates a Base58Check encoding of this key.\n\n        Args:\n            testnet (bool): True if the key is to be used with\n                testnet, False otherwise.\n        Returns:\n            str: A Base58Check encoded string representing the key.\n        '
    b = (self.testnet_bytes if testnet else bytes(self))
    return base58.b58encode_check(b)
Generates a Base58Check encoding of this key.

Args:
    testnet (bool): True if the key is to be used with
        testnet, False otherwise.
Returns:
    str: A Base58Check encoded string representing the key.
def to_b58check(self, testnet=False):
    ' Generates a Base58Check encoding of this key.\n\n        Args:\n            testnet (bool): True if the key is to be used with\n                testnet, False otherwise.\n        Returns:\n            str: A Base58Check encoded string representing the key.\n        '
    b = (self.testnet_bytes if testnet else bytes(self))
    return base58.b58encode_check(b)