diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-06-04 18:46:32 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-06-04 18:46:32 +0200 |
commit | 8edbf426f7cf468c041cf0f87a44a68d1f6acd46 (patch) | |
tree | 9fd492e2930a934034786958773be722c2360b47 /src/types.ts | |
parent | c88bcce9987d4b5cc8123002485a928ff4191e94 (diff) | |
download | wallet-core-8edbf426f7cf468c041cf0f87a44a68d1f6acd46.tar.xz |
nicer auditor display on withdraw
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/src/types.ts b/src/types.ts index 0f817ccb6..7120f64cc 100644 --- a/src/types.ts +++ b/src/types.ts @@ -424,23 +424,45 @@ export class Denomination { /** - * Auditor information. + * Signature by the auditor that a particular denomination key is audited. */ -export interface Auditor { +@Checkable.Class() +export class AuditorDenomSig { /** - * Official name. + * Denomination public key's hash. */ - name: string; + @Checkable.String + denom_pub_h: string; /** + * The signature. + */ + @Checkable.String + auditor_sig: string; +} + +/** + * Auditor information as given by the exchange in /keys. + */ +@Checkable.Class() +export class Auditor { + /** * Auditor's public key. */ + @Checkable.String auditor_pub: string; /** * Base URL of the auditor. */ - url: string; + @Checkable.String + auditor_url: string; + + /** + * List of signatures for denominations by the auditor. + */ + @Checkable.List(Checkable.Value(AuditorDenomSig)) + denomination_keys: AuditorDenomSig[]; } @@ -528,6 +550,14 @@ export interface ReserveCreationInfo { * The earliest deposit expiration of the selected coins. */ earliestDepositExpiration: number; + /** + * Number of currently offered denominations. + */ + numOfferedDenoms: number; + /** + * Public keys of trusted auditors for the currency we're withdrawing. + */ + trustedAuditorPubs: string[]; } |