diff options
author | Florian Dold <florian@dold.me> | 2022-03-24 01:59:08 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-03-24 01:59:08 +0100 |
commit | 303c6e99b34ed4e8b0272fe89f300b0838bbe5e4 (patch) | |
tree | 35f1260ea714eb4a6ac0cc7b9c7b19bf824d4fda /packages/taler-wallet-core/src/operations | |
parent | 454b55aa56034f0599f88e92e0475f5928486ce7 (diff) | |
download | wallet-core-303c6e99b34ed4e8b0272fe89f300b0838bbe5e4.tar.xz |
wallet: allow using RPC crypto in more places
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay.ts | 5 |
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({}); } |