def get_key_from_req(req: dict):
    return Request(identifier=req[f.IDENTIFIER.nm], reqId=req[f.REQ_ID.nm], operation=req[OPERATION], protocolVersion=req[f.PROTOCOL_VERSION.nm], signature=req.get(f.SIG.nm), taaAcceptance=req.get(f.TAA_ACCEPTANCE)).key
def get_key_from_req(req: dict):
    return Request(identifier=req[f.IDENTIFIER.nm], reqId=req[f.REQ_ID.nm], operation=req[OPERATION], protocolVersion=req[f.PROTOCOL_VERSION.nm], signature=req.get(f.SIG.nm), taaAcceptance=req.get(f.TAA_ACCEPTANCE)).key