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 7, 2024
1 parent 7ddb755 commit 6057434
Show file tree
Hide file tree
Showing 8 changed files with 1,730 additions and 63 deletions.
355 changes: 344 additions & 11 deletions BE/service/package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions BE/service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@
"@nestjs/swagger": "^7.3.0",
"@nestjs/typeorm": "^10.0.2",
"@types/bcryptjs": "^2.4.6",
"@types/snarkjs": "^0.7.8",
"bcryptjs": "^2.4.3",
"joi": "^17.12.3",
"moment": "^2.30.1",
"mysql2": "^3.9.2",
"nest-winston": "^1.9.4",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.2.0",
"snarkjs": "^0.7.4",
"swagger-ui-express": "^5.0.0",
"typeorm": "^0.3.20",
"uuid": "^9.0.1",
Expand Down
2 changes: 1 addition & 1 deletion BE/service/src/api/service/service-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class ServiceAPIService {
async verifyProof(dto: ProofDto): Promise<boolean> {
return lastValueFrom(
this.httpService
.post(this.VERIFY_PROOF, { params: { ...dto } })
.post(this.VERIFY_PROOF, { ...dto })
.pipe(map((response) => response.data)),
);
}
Expand Down
19 changes: 8 additions & 11 deletions BE/service/src/dto/proof.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@ import { ApiProperty } from '@nestjs/swagger';
export class ProofDto {
@ApiProperty({
description: 'Service Name',
example: 'One-sided love paper boat',
example: 'kataomoi-boat',
})
readonly ServiceName: string;

@ApiProperty({ description: 'Holder pub key', example: 'hpubkey' })
@ApiProperty({
description: 'Holder pub key',
example: 'honorable-muscle.testnet',
})
readonly HolderPubKey: string;

@ApiProperty({ description: 'Proof (by json)', example: 'proof' })
@ApiProperty({ description: 'proof', example: '-' })
readonly proof: string;

@ApiProperty({ description: 'Issuer pub key (by json)', example: 'ipubkey' })
readonly IssuerPubKey: string;

// @ApiProperty({ description: 'user pk', example: 'pk' })
// readonly pk: string;

@ApiProperty({ description: 'VKey (by json)', example: 'vkey' })
readonly vKey: string;
@ApiProperty({ description: 'publicSignals', example: '-' })
readonly publicSignals: string;
}
Loading

0 comments on commit 6057434

Please sign in to comment.