diff options
author | Florian Dold <florian@dold.me> | 2020-11-03 17:39:30 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2020-11-03 17:39:30 +0100 |
commit | dffb293f2a3fa836ee007f19e36f873ed5d295e7 (patch) | |
tree | d2be687c45163c4f3fa597cf77d3aceecbd87178 /packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts | |
parent | 0d37ec5e91f6704261070e01bb77d7c46f85b7a2 (diff) | |
download | wallet-core-dffb293f2a3fa836ee007f19e36f873ed5d295e7.tar.xz |
check contract terms signature, handle errors
Diffstat (limited to 'packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts b/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts index 44de6b674..286de5a17 100644 --- a/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts +++ b/packages/taler-wallet-core/src/crypto/workers/cryptoApi.ts @@ -398,6 +398,20 @@ export class CryptoApi { ); } + isValidContractTermsSignature( + contractTermsHash: string, + sig: string, + merchantPub: string, + ): Promise<boolean> { + return this.doRpc<boolean>( + "isValidContractTermsSignature", + 4, + contractTermsHash, + sig, + merchantPub, + ); + } + createRecoupRequest(coin: CoinRecord): Promise<RecoupRequest> { return this.doRpc<RecoupRequest>("createRecoupRequest", 1, coin); } |