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);
}
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);

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} {
const priv = native.EddsaPrivateKey.create();
const pub = priv.getPublicKey();

View File

@ -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,