Skip to content

Commit

Permalink
modify: Verify Proof API 인자 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-clipse committed May 23, 2024
1 parent fae1d76 commit 9c8b8f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions BE/service/src/dto/proof.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions BE/verifier/src/dto/proof.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions BE/verifier/src/verifier/verifier-api.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class VerifierAPIController {
summary: '생성된 Proof를 검증',
})
async verifyProof(@Body() dto: ProofDto): Promise<boolean> {
const { ServiceName, HolderPubKey, proof } = dto;
const { ServiceName, IssuerPubKey, proof } = dto;

// const document = get_document(did: string): Document
// const { encodedPubKey } = document.public_key;
Expand All @@ -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);
Expand Down

0 comments on commit 9c8b8f2

Please sign in to comment.