summaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-05-08 07:01:17 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-05-08 07:01:17 +0200
commitd25628ab024025a964c2c440da90e3424550e3d7 (patch)
tree86eacbb03430169d06f100b2bdb74399a5277d5b /src/crypto
parentab2726848a547bd135212359545c5246b2303659 (diff)
downloadwallet-core-d25628ab024025a964c2c440da90e3424550e3d7.tar.gz
wallet-core-d25628ab024025a964c2c440da90e3424550e3d7.tar.bz2
wallet-core-d25628ab024025a964c2c440da90e3424550e3d7.zip
adjust to exchange protocol changes
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/cryptoWorker.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/crypto/cryptoWorker.ts b/src/crypto/cryptoWorker.ts
index 11b21190d..5013e3acf 100644
--- a/src/crypto/cryptoWorker.ts
+++ b/src/crypto/cryptoWorker.ts
@@ -96,11 +96,13 @@ namespace RpcFunctions {
amountWithFee.add(new native.Amount(denom.feeWithdraw));
const withdrawFee = new native.Amount(denom.feeWithdraw);
+ const denomPubHash = denomPub.encode().hash();
+
// Signature
const withdrawRequest = new native.WithdrawRequestPS({
amount_with_fee: amountWithFee.toNbo(),
h_coin_envelope: ev.hash(),
- h_denomination_pub: denomPub.encode().hash(),
+ h_denomination_pub: denomPubHash,
reserve_pub: reservePub,
withdraw_fee: withdrawFee.toNbo(),
});
@@ -113,7 +115,8 @@ namespace RpcFunctions {
coinPriv: coinPriv.toCrock(),
coinPub: coinPub.toCrock(),
coinValue: denom.value,
- denomPub: denomPub.encode().toCrock(),
+ denomPub: denomPub.toCrock(),
+ denomPubHash: denomPubHash.toCrock(),
exchangeBaseUrl: reserve.exchange_base_url,
isFromTip: false,
reservePub: reservePub.toCrock(),