aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-13 21:51:45 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-13 21:51:45 +0100
commit9657e01be14fa5baa4067da65aff94faf6c973e0 (patch)
treeb0c6a7de566845dfcbf946363e774120e87f9795
parent5b18d6bd19a6af26821dfa14b8eb127f39318b6e (diff)
remove unused function
-rw-r--r--lib/wallet/cryptoApi.ts4
-rw-r--r--lib/wallet/cryptoLib.ts8
-rw-r--r--lib/wallet/types.ts2
3 files changed, 1 insertions, 13 deletions
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<string> {
- return this.doRpc("hashRsaPub", 2, rsaPub);
- }
-
isValidDenom(denom: Denomination,
masterPub: string): Promise<boolean> {
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,