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);
|
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);
|
||||||
|
@ -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();
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user