diff options
author | Florian Dold <florian@dold.me> | 2022-01-11 12:48:32 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-01-11 14:48:02 +0100 |
commit | a05e891d6e1468fdd99f710301e286857a46aea3 (patch) | |
tree | 5ea22817eb2cec888ff52a80dcd3a9986bd768fa /packages/taler-wallet-core/src/crypto/cryptoTypes.ts | |
parent | fb22009ec4799a624f00c228fbd7435b44c1cbac (diff) | |
download | wallet-core-a05e891d6e1468fdd99f710301e286857a46aea3.tar.xz |
towards new recoup API
Diffstat (limited to 'packages/taler-wallet-core/src/crypto/cryptoTypes.ts')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/cryptoTypes.ts | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/crypto/cryptoTypes.ts b/packages/taler-wallet-core/src/crypto/cryptoTypes.ts index 9b72dfbe2..5351815a7 100644 --- a/packages/taler-wallet-core/src/crypto/cryptoTypes.ts +++ b/packages/taler-wallet-core/src/crypto/cryptoTypes.ts @@ -27,7 +27,13 @@ /** * Imports. */ -import { AmountJson, DenominationPubKey, ExchangeProtocolVersion } from "@gnu-taler/taler-util"; +import { + AmountJson, + AmountString, + DenominationPubKey, + ExchangeProtocolVersion, + UnblindedSignature, +} from "@gnu-taler/taler-util"; export interface RefreshNewDenomInfo { count: number; @@ -140,3 +146,29 @@ export interface SignTrackTransactionRequest { merchantPriv: string; merchantPub: string; } + +/** + * Request to create a recoup request payload. + */ +export interface CreateRecoupReqRequest { + coinPub: string; + coinPriv: string; + blindingKey: string; + denomPub: DenominationPubKey; + denomPubHash: string; + denomSig: UnblindedSignature; + recoupAmount: AmountJson; +} + +/** + * Request to create a recoup-refresh request payload. + */ +export interface CreateRecoupRefreshReqRequest { + coinPub: string; + coinPriv: string; + blindingKey: string; + denomPub: DenominationPubKey; + denomPubHash: string; + denomSig: UnblindedSignature; + recoupAmount: AmountJson; +} |