@bithomp/xrpl-api
Version:
A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger
12 lines (11 loc) • 581 B
TypeScript
export declare function classicAddressFromValidatorPK(pk: string | Buffer): string | null;
export interface GenerateSecretsInterface {
key_type: string;
secret_key: string;
public_key: string;
PublicKey: string;
}
export declare function generateSecrets(): GenerateSecretsInterface;
export declare function sign(message: Buffer | string, secret: string): string;
export declare function verify(message: Buffer | string, signature: string, publicKey: string): boolean;
export declare function verify2(message: Buffer, signature: string, publicKey: string): boolean;