remove unused function

This commit is contained in:
Florian Dold 2016-11-13 21:51:45 +01:00
parent 5b18d6bd19
commit 9657e01be1
3 changed files with 1 additions and 13 deletions

View File

@ -222,10 +222,6 @@ export class CryptoApi {
return this.doRpc("hashString", 1, str); return this.doRpc("hashString", 1, str);
} }
hashRsaPub(rsaPub: string): Promise<string> {
return this.doRpc("hashRsaPub", 2, rsaPub);
}
isValidDenom(denom: Denomination, isValidDenom(denom: Denomination,
masterPub: string): Promise<boolean> { masterPub: string): Promise<boolean> {
return this.doRpc("isValidDenom", 2, denom, masterPub); return this.doRpc("isValidDenom", 2, denom, masterPub);

View File

@ -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} { export function createEddsaKeypair(): {priv: string, pub: string} {
const priv = native.EddsaPrivateKey.create(); const priv = native.EddsaPrivateKey.create();
const pub = priv.getPublicKey(); const pub = priv.getPublicKey();

View File

@ -439,7 +439,7 @@ export namespace Amounts {
saturated: boolean; saturated: boolean;
} }
function getMaxAmount(currency: string): AmountJson { export function getMaxAmount(currency: string): AmountJson {
return { return {
currency, currency,
value: Number.MAX_SAFE_INTEGER, value: Number.MAX_SAFE_INTEGER,