summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/pay.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-03-24 01:59:08 +0100
committerFlorian Dold <florian@dold.me>2022-03-24 01:59:08 +0100
commit303c6e99b34ed4e8b0272fe89f300b0838bbe5e4 (patch)
tree35f1260ea714eb4a6ac0cc7b9c7b19bf824d4fda /packages/taler-wallet-core/src/operations/pay.ts
parent454b55aa56034f0599f88e92e0475f5928486ce7 (diff)
downloadwallet-core-303c6e99b34ed4e8b0272fe89f300b0838bbe5e4.tar.gz
wallet-core-303c6e99b34ed4e8b0272fe89f300b0838bbe5e4.tar.bz2
wallet-core-303c6e99b34ed4e8b0272fe89f300b0838bbe5e4.zip
wallet: allow using RPC crypto in more places
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/pay.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts
index 97f38bae6..193ce54e2 100644
--- a/packages/taler-wallet-core/src/operations/pay.ts
+++ b/packages/taler-wallet-core/src/operations/pay.ts
@@ -927,7 +927,10 @@ async function startDownloadProposal(
let noncePair: EddsaKeypair;
if (noncePriv) {
- noncePair = await ws.cryptoApi.eddsaGetPublic({ priv: noncePriv });
+ noncePair = {
+ priv: noncePriv,
+ pub: (await ws.cryptoApi.eddsaGetPublic({ priv: noncePriv })).pub,
+ };
} else {
noncePair = await ws.cryptoApi.createEddsaKeypair({});
}