def extract_merkle(content):
    """
    extracts the merkle root
    """
    if 'params' not in content:
        logging.info('Malformed sendwork')
        return None
    if len(content['params']) != 1:
        logging.info('Malformed sendwork')
        return None
    if len(content['params'][0])<136:
        logging.info('Malformed sendwork')
        return None
        
    merkle = content['params'][0][72:136]
    return merkle
dataset/ETHPy150Open c00w/bitHopper/bitHopper/util.py/extract_merkle/original