@staticmethod
def master_key_from_seed(seed):
    ' Generates a master key from a provided seed.\n\n        Args:\n            seed (bytes or str): a string of bytes or a hex string\n\n        Returns:\n            HDPrivateKey: the master private key.\n        '
    S = get_bytes(seed)
    I = hmac.new(b'Bitcoin seed', S, hashlib.sha512).digest()
    (Il, Ir) = (I[:32], I[32:])
    parse_Il = int.from_bytes(Il, 'big')
    if ((parse_Il == 0) or (parse_Il >= bitcoin_curve.n)):
        raise ValueError('Bad seed, resulting in invalid key!')
    return HDPrivateKey(key=parse_Il, chain_code=Ir, index=0, depth=0)
Generates a master key from a provided seed.

Args:
    seed (bytes or str): a string of bytes or a hex string

Returns:
    HDPrivateKey: the master private key.
@staticmethod
def master_key_from_seed(seed):
    ' Generates a master key from a provided seed.\n\n        Args:\n            seed (bytes or str): a string of bytes or a hex string\n\n        Returns:\n            HDPrivateKey: the master private key.\n        '
    S = get_bytes(seed)
    I = hmac.new(b'Bitcoin seed', S, hashlib.sha512).digest()
    (Il, Ir) = (I[:32], I[32:])
    parse_Il = int.from_bytes(Il, 'big')
    if ((parse_Il == 0) or (parse_Il >= bitcoin_curve.n)):
        raise ValueError('Bad seed, resulting in invalid key!')
    return HDPrivateKey(key=parse_Il, chain_code=Ir, index=0, depth=0)