aboutsummaryrefslogtreecommitdiff
path: root/src/emscriptif.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/emscriptif.ts')
-rw-r--r--src/emscriptif.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/emscriptif.ts b/src/emscriptif.ts
index 347ee54a0..caa0fb8cc 100644
--- a/src/emscriptif.ts
+++ b/src/emscriptif.ts
@@ -208,6 +208,7 @@ export enum SignaturePurpose {
TEST = 4242,
MERCHANT_PAYMENT_OK = 1104,
MASTER_WIRE_FEES = 1028,
+ WALLET_COIN_PAYBACK = 1203,
}
@@ -966,6 +967,32 @@ export class WithdrawRequestPS extends SignatureStruct {
}
+export interface PaybackRequestPS_args {
+ coin_pub: EddsaPublicKey;
+ h_denom_pub: HashCode;
+ coin_blind: RsaBlindingKeySecret;
+}
+
+
+export class PaybackRequestPS extends SignatureStruct {
+ constructor(w: PaybackRequestPS_args) {
+ super(w);
+ }
+
+ purpose() {
+ return SignaturePurpose.WALLET_COIN_PAYBACK;
+ }
+
+ fieldTypes() {
+ return [
+ ["coin_pub", EddsaPublicKey],
+ ["h_denom_pub", HashCode],
+ ["coin_blind", RsaBlindingKeySecret],
+ ];
+ }
+}
+
+
interface RefreshMeltCoinAffirmationPS_Args {
session_hash: HashCode;
amount_with_fee: AmountNbo;