-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
23 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,24 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class ProofDto { | ||
@ApiProperty({ | ||
description: 'Service Name', | ||
example: 'One-sided love paper boat', | ||
}) | ||
readonly ServiceName: string; | ||
|
||
@ApiProperty({ description: 'Holder pub key', example: 'hpubkey' }) | ||
readonly HolderPubKey: string; | ||
|
||
@ApiProperty({ description: 'Proof', example: 'proof' }) | ||
@ApiProperty({ description: 'Proof (by json)', example: 'proof' }) | ||
readonly proof: string; | ||
|
||
@ApiProperty({ description: 'Issuer pub key', example: 'ipubkey' }) | ||
@ApiProperty({ description: 'Issuer pub key (by json)', example: 'ipubkey' }) | ||
readonly IssuerPubKey: string; | ||
|
||
// TODO: might be deprecated | ||
@ApiProperty({ description: 'Major code', example: '12' }) | ||
readonly majorCode: string; | ||
|
||
@ApiProperty({ description: 'Message', example: 'message' }) | ||
readonly message: string; | ||
|
||
@ApiProperty({ | ||
description: 'Params', | ||
type: 'object', | ||
example: { data: 'something' }, | ||
}) | ||
params: object; | ||
|
||
@ApiProperty({ description: 'VKey(Uint8Array -> String)', example: 'vkey' }) | ||
vkey: string; | ||
// @ApiProperty({ description: 'user pk', example: 'pk' }) | ||
// readonly pk: string; | ||
|
||
@ApiProperty({ | ||
description: 'Strategy(Uint8Array -> String)', | ||
example: 'strategy', | ||
}) | ||
strategy: string; | ||
@ApiProperty({ description: 'VKey (by json)', example: 'vkey' }) | ||
readonly vKey: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters