def METHOD_NAME(cls, b: bytes) -> 'BitcoinAuxPow':
    """ Convert bytes to class instance.
    """
    from hathor.merged_mining.bitcoin import read_bytes, read_nbytes, read_varint
    a = bytearray(b)
    header_head = read_nbytes(a, 36)
    coinbase_head = read_bytes(a)
    coinbase_tail = read_bytes(a)
    c = read_varint(a)
    merkle_path = []
    for _ in range(c):
        merkle_path.append(bytes(a[:32]))
        del a[:32]
    header_tail = read_nbytes(a, 12)
    return cls(
        header_head,
        coinbase_head,
        coinbase_tail,
        merkle_path,
        header_tail,
    )