def handleGetClaimDefReq(self, request: Request): frm = get_read_claim_def_from(request) signature_type = get_read_claim_def_signature_type(request) schema_ref = get_read_claim_def_schema_ref(request) tag = get_read_claim_def_tag(request) keys, lastSeqNo, lastUpdateTime, proof = self.getClaimDef( author=frm, schemaSeqNo=schema_ref, signatureType=signature_type, tag=tag) result = self.make_domain_result(request=request, data=keys, last_seq_no=lastSeqNo, update_time=lastUpdateTime, proof=proof) result[CLAIM_DEF_SIGNATURE_TYPE] = signature_type return result
def get_result(self, request: Request): self._validate_request_type(request) frm = get_read_claim_def_from(request) signature_type = get_read_claim_def_signature_type(request) schema_ref = get_read_claim_def_schema_ref(request) tag = get_read_claim_def_tag(request) keys, last_seq_no, last_update_time, proof = self.get_claim_def( author=frm, schema_seq_no=schema_ref, signature_type=signature_type, tag=tag) result = self.make_result(request=request, data=keys, last_seq_no=last_seq_no, update_time=last_update_time, proof=proof) result[CLAIM_DEF_SIGNATURE_TYPE] = signature_type return result
def test_get_read_claim_def_schema_ref(read_claim_def_request): assert 18 == get_read_claim_def_schema_ref(read_claim_def_request)