def create_prepare(req_key, state_root, inst_id=0):
    (view_no, pp_seq_no) = req_key
    params = create_prepare_params(view_no, pp_seq_no, state_root, inst_id=inst_id)
    return Prepare(*params)
def create_prepare(req_key, state_root, inst_id=0):
    (view_no, pp_seq_no) = req_key
    params = create_prepare_params(view_no, pp_seq_no, state_root, inst_id=inst_id)
    return Prepare(*params)