From 9657e01be14fa5baa4067da65aff94faf6c973e0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 13 Nov 2016 21:51:45 +0100 Subject: remove unused function --- lib/wallet/cryptoApi.ts | 4 ---- lib/wallet/cryptoLib.ts | 8 -------- lib/wallet/types.ts | 2 +- 3 files changed, 1 insertion(+), 13 deletions(-) (limited to 'lib/wallet') diff --git a/lib/wallet/cryptoApi.ts b/lib/wallet/cryptoApi.ts index 4a507074a..31407b74a 100644 --- a/lib/wallet/cryptoApi.ts +++ b/lib/wallet/cryptoApi.ts @@ -222,10 +222,6 @@ export class CryptoApi { return this.doRpc("hashString", 1, str); } - hashRsaPub(rsaPub: string): Promise { - return this.doRpc("hashRsaPub", 2, rsaPub); - } - isValidDenom(denom: Denomination, masterPub: string): Promise { return this.doRpc("isValidDenom", 2, denom, masterPub); diff --git a/lib/wallet/cryptoLib.ts b/lib/wallet/cryptoLib.ts index d7d1905f9..6cb5b79d1 100644 --- a/lib/wallet/cryptoLib.ts +++ b/lib/wallet/cryptoLib.ts @@ -152,14 +152,6 @@ namespace RpcFunctions { } - export function hashRsaPub(rsaPub: string): string { - return native.RsaPublicKey.fromCrock(rsaPub) - .encode() - .hash() - .toCrock(); - } - - export function createEddsaKeypair(): {priv: string, pub: string} { const priv = native.EddsaPrivateKey.create(); const pub = priv.getPublicKey(); diff --git a/lib/wallet/types.ts b/lib/wallet/types.ts index 4695bcedc..39d374069 100644 --- a/lib/wallet/types.ts +++ b/lib/wallet/types.ts @@ -439,7 +439,7 @@ export namespace Amounts { saturated: boolean; } - function getMaxAmount(currency: string): AmountJson { + export function getMaxAmount(currency: string): AmountJson { return { currency, value: Number.MAX_SAFE_INTEGER, -- cgit v1.2.3