summaryrefslogtreecommitdiff
path: root/packages/taler-util/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-03-07 21:49:11 +0100
committerFlorian Dold <florian@dold.me>2022-03-07 21:49:11 +0100
commit6df92029353d70195a7e7d989719e674473b0587 (patch)
treec2ac5b6e1a2e2533a87d38eafc2489b5b3da5825 /packages/taler-util/src
parent0323868e10ca1fc5d3e10ad9e6866b986f552680 (diff)
downloadwallet-core-6df92029353d70195a7e7d989719e674473b0587.tar.gz
wallet-core-6df92029353d70195a7e7d989719e674473b0587.tar.bz2
wallet-core-6df92029353d70195a7e7d989719e674473b0587.zip
fix recoup protocol breakage
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r--packages/taler-util/src/talerTypes.ts28
1 files changed, 27 insertions, 1 deletions
diff --git a/packages/taler-util/src/talerTypes.ts b/packages/taler-util/src/talerTypes.ts
index fa544aeb6..4ea1b45fc 100644
--- a/packages/taler-util/src/talerTypes.ts
+++ b/packages/taler-util/src/talerTypes.ts
@@ -147,9 +147,31 @@ export class ExchangeAuditor {
denomination_keys: AuditorDenomSig[];
}
+export type ExchangeWithdrawValue =
+ | ExchangeRsaWithdrawValue
+ | ExchangeCsWithdrawValue;
+
+export interface ExchangeRsaWithdrawValue {
+ cipher: "RSA";
+}
+
+export interface ExchangeCsWithdrawValue {
+ cipher: "CS";
+
+ /**
+ * CSR R0 value
+ */
+ r_pub_0: string;
+
+ /**
+ * CSR R1 value
+ */
+ r_pub_1: string;
+}
+
export interface RecoupRequest {
/**
- * Hashed enomination public key of the coin we want to get
+ * Hashed denomination public key of the coin we want to get
* paid back.
*/
denom_pub_hash: string;
@@ -171,6 +193,8 @@ export interface RecoupRequest {
* Signature of TALER_RecoupRequestPS created with the coin's private key.
*/
coin_sig: string;
+
+ ewv: ExchangeWithdrawValue;
}
export interface RecoupRefreshRequest {
@@ -197,6 +221,8 @@ export interface RecoupRefreshRequest {
* the coin's private key.
*/
coin_sig: string;
+
+ ewv: ExchangeWithdrawValue;
}
/**