From ca2a46a8575d66d529accb1ce3aaf97be8f37e2f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 12 Dec 2017 21:54:14 +0100 Subject: precompute speculative signature for payment --- src/crypto/cryptoApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crypto/cryptoApi.ts') diff --git a/src/crypto/cryptoApi.ts b/src/crypto/cryptoApi.ts index 94083d622..d0ba6ada8 100644 --- a/src/crypto/cryptoApi.ts +++ b/src/crypto/cryptoApi.ts @@ -275,8 +275,8 @@ export class CryptoApi { return this.doRpc("isValidWireFee", 2, type, wf, masterPub); } - isValidPaymentSignature(sig: string, contractHash: string, merchantPub: string) { - return this.doRpc("isValidPaymentSignature", 1, sig, contractHash, merchantPub); + isValidPaymentSignature(sig: string, contractHash: string, merchantPub: string): Promise { + return this.doRpc("isValidPaymentSignature", 1, sig, contractHash, merchantPub); } signDeposit(contractTerms: ContractTerms, -- cgit v1.2.3