diff options
author | Florian Dold <florian@dold.me> | 2021-08-04 17:14:52 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-04 17:14:52 +0200 |
commit | f88e14f66d37c339816cb9ba73a84491e7133307 (patch) | |
tree | a6709627512ff9f7e6fd4a14d7a99669c9a95949 /packages/taler-util/src | |
parent | 18c8cebbcd85e7345607572be4c66dff940ad776 (diff) | |
download | wallet-core-f88e14f66d37c339816cb9ba73a84491e7133307.tar.xz |
towards exchange linting
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/talerTypes.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/taler-util/src/talerTypes.ts b/packages/taler-util/src/talerTypes.ts index 0df46c6db..56110ec1e 100644 --- a/packages/taler-util/src/talerTypes.ts +++ b/packages/taler-util/src/talerTypes.ts @@ -1429,3 +1429,25 @@ export const codecForTalerConfigResponse = (): Codec<TalerConfigResponse> => .property("version", codecForString()) .property("currency", codecOptional(codecForString())) .build("TalerConfigResponse"); + +export interface FutureKeysResponse { + future_denoms: any[]; + + future_signkeys: any[]; + + master_pub: string; + + denom_secmod_public_key: string; + + // Public key of the signkey security module. + signkey_secmod_public_key: string; +} + +export const codecForKeysManagementResponse = (): Codec<FutureKeysResponse> => + buildCodecForObject<FutureKeysResponse>() + .property("master_pub", codecForString()) + .property("future_signkeys", codecForList(codecForAny())) + .property("future_denoms", codecForList(codecForAny())) + .property("denom_secmod_public_key", codecForAny()) + .property("signkey_secmod_public_key", codecForAny()) + .build("FutureKeysResponse"); |