aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-21 12:23:48 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-21 12:23:48 +0530
commitf4a8702b3cf93f9edf96d1d1c8cb88baa309e301 (patch)
treeec8c62271e7f220da32858a04c901b1962d2b4b3 /src/crypto
parentdd2efc3d78f2dfda44f8182f9638723dcb839781 (diff)
downloadwallet-core-f4a8702b3cf93f9edf96d1d1c8cb88baa309e301.tar.xz
towards consuming new merchant API
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/workers/cryptoImplementation.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/workers/cryptoImplementation.ts b/src/crypto/workers/cryptoImplementation.ts
index 43def7b6b..979fe41d8 100644
--- a/src/crypto/workers/cryptoImplementation.ts
+++ b/src/crypto/workers/cryptoImplementation.ts
@@ -336,7 +336,7 @@ export class CryptoImplementation {
const d = buildSigPS(SignaturePurpose.WALLET_COIN_DEPOSIT)
.put(decodeCrock(depositInfo.contractTermsHash))
.put(decodeCrock(depositInfo.wireInfoHash))
- .put(hash(decodeCrock(depositInfo.denomPub)))
+ .put(decodeCrock(depositInfo.denomPubHash))
.put(timestampRoundedToBuffer(depositInfo.timestamp))
.put(timestampRoundedToBuffer(depositInfo.refundDeadline))
.put(amountToBuffer(depositInfo.spendAmount))
@@ -350,7 +350,7 @@ export class CryptoImplementation {
coin_pub: depositInfo.coinPub,
coin_sig: encodeCrock(coinSig),
contribution: Amounts.stringify(depositInfo.spendAmount),
- denom_pub: depositInfo.denomPub,
+ h_denom: depositInfo.denomPubHash,
exchange_url: depositInfo.exchangeBaseUrl,
ub_sig: depositInfo.denomSig,
};