@classmethod
def raw_parse(cls, s):
    'Returns a HDPrivateKey from a stream'
    version = s.read(4)
    if (version in (TESTNET_XPRV, TESTNET_YPRV, TESTNET_ZPRV)):
        testnet = True
    elif (version in (MAINNET_XPRV, MAINNET_YPRV, MAINNET_ZPRV)):
        testnet = False
    else:
        raise ValueError('not an xprv, yprv or zprv: {}'.format(version))
    depth = byte_to_int(s.read(1))
    parent_fingerprint = s.read(4)
    child_number = big_endian_to_int(s.read(4))
    chain_code = s.read(32)
    if (byte_to_int(s.read(1)) != 0):
        raise ValueError('private key should be preceded by a zero byte')
    private_key = PrivateKey(secret=big_endian_to_int(s.read(32)))
    return cls(private_key=private_key, chain_code=chain_code, depth=depth, parent_fingerprint=parent_fingerprint, child_number=child_number, testnet=testnet)
Returns a HDPrivateKey from a stream
@classmethod
def raw_parse(cls, s):
    
    version = s.read(4)
    if (version in (TESTNET_XPRV, TESTNET_YPRV, TESTNET_ZPRV)):
        testnet = True
    elif (version in (MAINNET_XPRV, MAINNET_YPRV, MAINNET_ZPRV)):
        testnet = False
    else:
        raise ValueError('not an xprv, yprv or zprv: {}'.format(version))
    depth = byte_to_int(s.read(1))
    parent_fingerprint = s.read(4)
    child_number = big_endian_to_int(s.read(4))
    chain_code = s.read(32)
    if (byte_to_int(s.read(1)) != 0):
        raise ValueError('private key should be preceded by a zero byte')
    private_key = PrivateKey(secret=big_endian_to_int(s.read(32)))
    return cls(private_key=private_key, chain_code=chain_code, depth=depth, parent_fingerprint=parent_fingerprint, child_number=child_number, testnet=testnet)