From 82b5754e157a1a3b22afe48c8366c76525eb91e3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 27 Apr 2017 03:09:29 +0200 Subject: download, store and check signatures for wire fees --- src/cryptoApi.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/cryptoApi.ts') diff --git a/src/cryptoApi.ts b/src/cryptoApi.ts index 98fc2c66a..5657d74d6 100644 --- a/src/cryptoApi.ts +++ b/src/cryptoApi.ts @@ -28,7 +28,7 @@ import { import {OfferRecord} from "./wallet"; import {CoinWithDenom} from "./wallet"; import {PayCoinInfo} from "./types"; -import {RefreshSessionRecord} from "./types"; +import {RefreshSessionRecord, WireFee} from "./types"; interface WorkerState { @@ -235,6 +235,10 @@ export class CryptoApi { return this.doRpc("isValidDenom", 2, denom, masterPub); } + isValidWireFee(type: string, wf: WireFee, masterPub: string): Promise { + return this.doRpc("isValidWireFee", 2, type, wf, masterPub); + } + isValidPaymentSignature(sig: string, contractHash: string, merchantPub: string) { return this.doRpc("isValidPaymentSignature", 1, sig, contractHash, merchantPub); } -- cgit v1.2.3