remove unused function
This commit is contained in:
parent
5b18d6bd19
commit
9657e01be1
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user