diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-04-27 03:09:29 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-04-27 03:09:29 +0200 |
commit | 82b5754e157a1a3b22afe48c8366c76525eb91e3 (patch) | |
tree | c50afc6bac7535481a73ebc29049e393444f7edc /src/cryptoApi.ts | |
parent | 68e44e0e80635b00333ef2fcbb0ad937581344ba (diff) | |
download | wallet-core-82b5754e157a1a3b22afe48c8366c76525eb91e3.tar.xz |
download, store and check signatures for wire fees
Diffstat (limited to 'src/cryptoApi.ts')
-rw-r--r-- | src/cryptoApi.ts | 6 |
1 files changed, 5 insertions, 1 deletions
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<boolean>("isValidDenom", 2, denom, masterPub); } + isValidWireFee(type: string, wf: WireFee, masterPub: string): Promise<boolean> { + return this.doRpc<boolean>("isValidWireFee", 2, type, wf, masterPub); + } + isValidPaymentSignature(sig: string, contractHash: string, merchantPub: string) { return this.doRpc<PayCoinInfo>("isValidPaymentSignature", 1, sig, contractHash, merchantPub); } |