@staticmethod
def from_bytes(b):
    ' Generates PrivateKey from the underlying bytes.\n\n        Args:\n            b (bytes): A byte stream containing a 256-bit (32-byte) integer.\n\n        Returns:\n            tuple(PrivateKey, bytes): A PrivateKey object and the remainder\n            of the bytes.\n        '
    if (len(b) < 32):
        raise ValueError('b must contain at least 32 bytes')
    return PrivateKey(int.from_bytes(b[:32], 'big'))
Generates PrivateKey from the underlying bytes.

Args:
    b (bytes): A byte stream containing a 256-bit (32-byte) integer.

Returns:
    tuple(PrivateKey, bytes): A PrivateKey object and the remainder
    of the bytes.
@staticmethod
def from_bytes(b):
    ' Generates PrivateKey from the underlying bytes.\n\n        Args:\n            b (bytes): A byte stream containing a 256-bit (32-byte) integer.\n\n        Returns:\n            tuple(PrivateKey, bytes): A PrivateKey object and the remainder\n            of the bytes.\n        '
    if (len(b) < 32):
        raise ValueError('b must contain at least 32 bytes')
    return PrivateKey(int.from_bytes(b[:32], 'big'))