From 9c8b8f2308207955570b693b43466a0fde1607f3 Mon Sep 17 00:00:00 2001 From: edac99 Date: Thu, 23 May 2024 19:21:27 +0900 Subject: [PATCH] =?UTF-8?q?modify:=20Verify=20Proof=20API=20=EC=9D=B8?= =?UTF-8?q?=EC=9E=90=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BE/service/src/dto/proof.dto.ts | 4 ++-- BE/verifier/src/dto/proof.dto.ts | 4 ++-- BE/verifier/src/verifier/verifier-api.controller.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BE/service/src/dto/proof.dto.ts b/BE/service/src/dto/proof.dto.ts index ca84e6a..37e40d5 100644 --- a/BE/service/src/dto/proof.dto.ts +++ b/BE/service/src/dto/proof.dto.ts @@ -8,10 +8,10 @@ export class ProofDto { readonly ServiceName: string; @ApiProperty({ - description: 'Holder pub key', + description: 'Issuer pub key', example: 'wakeful-cave.testnet', }) - readonly HolderPubKey: string; + readonly IssuerPubKey: string; @ApiProperty({ description: 'proof', example: '-' }) readonly proof: string; diff --git a/BE/verifier/src/dto/proof.dto.ts b/BE/verifier/src/dto/proof.dto.ts index ca84e6a..37e40d5 100644 --- a/BE/verifier/src/dto/proof.dto.ts +++ b/BE/verifier/src/dto/proof.dto.ts @@ -8,10 +8,10 @@ export class ProofDto { readonly ServiceName: string; @ApiProperty({ - description: 'Holder pub key', + description: 'Issuer pub key', example: 'wakeful-cave.testnet', }) - readonly HolderPubKey: string; + readonly IssuerPubKey: string; @ApiProperty({ description: 'proof', example: '-' }) readonly proof: string; diff --git a/BE/verifier/src/verifier/verifier-api.controller.ts b/BE/verifier/src/verifier/verifier-api.controller.ts index 338fb4b..59b6735 100644 --- a/BE/verifier/src/verifier/verifier-api.controller.ts +++ b/BE/verifier/src/verifier/verifier-api.controller.ts @@ -18,7 +18,7 @@ export class VerifierAPIController { summary: '생성된 Proof를 검증', }) async verifyProof(@Body() dto: ProofDto): Promise { - const { ServiceName, HolderPubKey, proof } = dto; + const { ServiceName, IssuerPubKey, proof } = dto; // const document = get_document(did: string): Document // const { encodedPubKey } = document.public_key; @@ -40,7 +40,7 @@ export class VerifierAPIController { try { const verifyResult = await this.verifierAPIService.loadProofResult( ServiceName, - HolderPubKey, + IssuerPubKey, ); if (!verifyResult) { throw new CustomErrorException('Verify Load Failed', 502);